ekg2
GIT master
|
#include "ekg2.h"
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.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_unlink (window_t *elem) |
static void | windows_remove (window_t *elem) |
void | windows_destroy (void) |
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) |
void | window_switch (int id) |
window_t * | window_new (const char *target, session_t *session, int new_id) |
void | window_print (window_t *w, fstring_t *line) |
void | window_next () |
void | window_prev () |
void | window_kill (window_t *w) |
window_t * | window_exist (int id) |
static void | window_move (int first, int second) |
static void | window_real_move (int source, int dest) |
char * | window_target (window_t *window) |
int | cmd_window (const char *name, const char **params, session_t *session, const char *target, int quiet) |
void | window_session_set (window_t *w, session_t *new_session) |
int | window_session_cycle (window_t *w) |
int | window_lock_inc (window_t *w) |
int | window_lock_dec (window_t *w) |
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 |
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. |
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. |
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 | ( | ) |
|
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 |
|
static |
void windows_destroy | ( | void | ) |
|
static |
|
static |
int config_display_crap = 1 |
int window_last_id = -1 |