#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"
Funkcje | |
static int | window_new_compare (window_t *data1, window_t *data2) |
static | LIST_FREE_ITEM (list_window_free, window_t *) |
static | __DYNSTUFF_LIST_ADD_SORTED (windows, window_t, window_new_compare) |
static | __DYNSTUFF_LIST_REMOVE_SAFE (windows, window_t, list_window_free) |
EXPORTNOT | __DYNSTUFF_LIST_DESTROY (windows, window_t, list_window_free) |
window_t * | window_find_ptr (window_t *w) |
window_t * | window_find_sa (session_t *session, const char *target, int session_null_means_no_session) |
window_t * | window_find (const char *target) |
static void | window_switch_c (int id) |
EXPORTNOT void | remote_window_switch (int id) |
static window_t * | window_new_c (const char *target, session_t *session, int new_id) |
window_t * | window_new (const char *target, session_t *session, int new_id) |
EXPORTNOT window_t * | remote_window_new (int id, const char *target) |
static void | window_prev () |
void | window_kill (window_t *w) |
EXPORTNOT void | remote_window_kill (int id) |
window_t * | window_exist (int id) |
char * | window_target (window_t *window) |
EXPORTNOT void | window_session_set (window_t *w, session_t *new_session) |
void | window_switch (int id) |
int | window_session_cycle (window_t *w) |
EXPORTNOT void | windows_lock_all () |
EXPORTNOT void | windows_unlock_all () |
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 LIST_FREE_ITEM | ( | list_window_free | , | |
window_t * | ||||
) | [static] |
EXPORTNOT void remote_window_kill | ( | int | id | ) |
EXPORTNOT window_t* remote_window_new | ( | int | id, | |
const char * | target | |||
) |
EXPORTNOT void remote_window_switch | ( | int | id | ) |
window_t* window_exist | ( | int | id | ) |
check if window with id exist
id | - id of window. |
window_t* window_find | ( | const char * | target | ) |
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 void window_prev | ( | ) | [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 void window_switch_c | ( | 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 |
window_t* window_current = NULL |
EXPORTNOT window_t* window_debug = NULL |
int window_last_id = -1 |
window_t* window_status = NULL |