|
ekg2
|
#include "ekg2-config.h"#include <sys/types.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include <time.h>#include "commands.h"#include "debug.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 |
| EXPORTNOT int | config_display_crap = 1 |
| window_t * | window_current = NULL |
| window_t * | window_status = NULL |
| EXPORTNOT window_t * | window_debug = NULL |
| window_lastlog_t * | lastlog_current = NULL |
|
static |
|
static |
| EXPORTNOT void remote_window_kill | ( | int | id | ) |
| EXPORTNOT void remote_window_switch | ( | int | id | ) |
| 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. |
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. |
|
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 | ) |
|
static |
| char* window_target | ( | window_t * | window | ) |
| window | - window |
| EXPORTNOT void windows_lock_all | ( | ) |
| EXPORTNOT void windows_unlock_all | ( | ) |
| EXPORTNOT int config_display_crap = 1 |
| window_lastlog_t* lastlog_current = NULL |
| int window_last_id = -1 |
1.8.1.2