|
ekg2
|
#include "ekg2-config.h"#include <sys/types.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include "commands.h"#include "dynstuff.h"#include "windows.h"#include "userlist.h"#include "sessions.h"#include "themes.h"#include "stuff.h"#include "xmalloc.h"#include "dynstuff_inline.h"#include "queries.h"Zmienne | |
| int | window_last_id = -1 |
| window_t * | windows = NULL |
| int | config_display_crap = 1 |
| window_t * | window_current = NULL |
| window_t * | window_status = NULL |
| window_t * | window_debug = NULL |
| window_lastlog_t * | lastlog_current = NULL |
|
static |
| int cmd_window | ( | const char * | name, |
| const char ** | params, | ||
| session_t * | session, | ||
| const char * | target, | ||
| int | quiet | ||
| ) |
|
static |
| window_t* window_exist | ( | int | id) |
check if window with id exist
| id | - id of window. |
Seeks for an window with given target
Wrapper to: window_find_sa(NULL, target, 0);
| target | - window target |
it's search over window list and checks if param w is still on that list.
| w | - window to look for. |
| window_t* window_find_sa | ( | session_t * | session, |
| const char * | target, | ||
| int | session_null_means_no_session | ||
| ) |
Search for an window with given target and session
| session | - window session to search [See also @ session_null_means_no_session] |
| target | - window target to search |
| session_null_means_no_session | - if you know that this window must belong to given session [NULL, or whatever] so this should be 1. else NULL @ session will mean that you don't know which session should it be. And it'll search/check all sessions |
window_find_sa(session, target, 1) window_find_sa(NULL, target, 0)| void window_kill | ( | window_t * | w) |
Remove given window.
If it's __status window, and w->target than display nice message about closing talk, else display message about no possibility to close status window
| w | - given window. |
| int window_lock_dec | ( | window_t * | w) |
| int window_lock_inc | ( | window_t * | w) |
|
static |
swap windows (swap windows id -> change sequence of them in UI)
| first | - 1st window id. |
| second | - 2nd window id. |
Create new window_t, with given new_id (if new_id != 0)
| target | - name of window |
| session | - session of this window |
| new_id | - if different than 0, than window will take this id. |
| void window_next | ( | ) |
| void window_prev | ( | ) |
Print fstring_t line to window
| w | - window |
| line | - line |
|
static |
| int window_session_cycle | ( | window_t * | w) |
Change session of given window to next good one (based on config_window_session_allow value)
| w | - window |
| void window_switch | ( | int | id) |
| char* window_target | ( | window_t * | window) |
| window | - window |
| int config_display_crap = 1 |
| window_lastlog_t* lastlog_current = NULL |
| int window_last_id = -1 |
1.8.4