ekg2
GIT master
|
#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 (const window_t *data1, const window_t *data2) |
static void | list_window_free (window_t *data) |
static void | windows_add (window_t *new) |
static void | windows_remove (window_t *elem) |
__attribute__ ((visibility("hidden"))) | |
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) |
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) |
static void | window_prev () |
void | window_kill (window_t *w) |
window_t * | window_exist (int id) |
char * | window_target (window_t *window) |
void | window_switch (int id) |
int | window_session_cycle (window_t *w) |
Zmienne | |
int | window_last_id = -1 |
window_t * | windows = NULL |
__attribute__ | ( | (visibility("hidden")) | ) |
|
static |
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 |
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 |
|
static |
|
static |
int window_last_id = -1 |