ekg2
|
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <errno.h>
#include <stdarg.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/un.h>
#include <ekg/debug.h>
#include <ekg/dynstuff.h>
#include <ekg/plugins.h>
#include <ekg/stuff.h>
#include <ekg/themes.h>
#include <ekg/vars.h>
#include <ekg/xmalloc.h>
#include <ekg/queries.h>
#include <ekg/commands.h>
#include "compat/strlcpy.h"
Struktury danych | |
struct | rc_input_t |
struct | remote_backlog_t |
struct | remote_window_t |
Definicje | |
#define | UI_VAR(name, defval) { name, defval, NULL, 0 } |
#define | prev attr[i-1] |
#define | cur attr[i] |
#define | BGCOLOR(x) -1 |
#define | FGCOLOR(x) ((!(x & FSTR_NORMAL)) ? (x & FSTR_FOREMASK) : -1) |
#define | fix(x) ((x) ? x : "") |
#define | config_backlog_size -1 |
Wyliczenia | |
enum | rc_input_type_t { RC_INPUT_PIPE = 1, RC_INPUT_UDP, RC_INPUT_TCP, RC_INPUT_UNIX, RC_INPUT_TCP_CLIENT, RC_INPUT_UNIX_CLIENT, RC_INPUT_PIPE = 1, RC_INPUT_UDP, RC_INPUT_TCP, RC_INPUT_UNIX, RC_INPUT_TCP_CLIENT, RC_INPUT_UNIX_CLIENT } |
Funkcje | |
PLUGIN_DEFINE (remote, PLUGIN_UI, NULL) | |
static void | rc_input_close (rc_input_t *r) |
static const char * | rc_var_get_value (variable_t *v) |
static char * | rc_fstring_reverse (fstring_t *fstr) |
static string_t | remote_what_to_write (char *what, va_list ap) |
static int | remote_broadcast (char *what,...) |
static int | remote_writefd (int fd, char *what,...) |
int | rc_theme_enumerate (const char *name, const char *value) |
static char ** | array_make_count (const char *string, char sep, int *arrcnt) |
static int | rc_input_handler_line (int type, int fd, const char *watch, void *data) |
static int | rc_input_handler_accept (int type, int fd, watch_type_t watch, void *data) |
static rc_input_t * | rc_input_find (const char *path) |
static watch_t * | rc_watch_find (int fd) |
static int | rc_input_new_inet (const char *path, int type) |
static int | rc_input_new_tcp (const char *path) |
static int | rc_input_new_udp (const char *path) |
static int | rc_input_new_pipe (const char *path) |
static int | rc_input_new_unix (const char *path) |
static void | rc_detach_changed (const char *name) |
static void | rc_paths_changed (const char *name) |
static int | remote_window_new (window_t *w) |
static void | remote_backlog_add (window_t *w, remote_backlog_t *str) |
static void | remote_window_kill (window_t *w) |
static int | remote_postinit (void *data, va_list ap) |
static int | remote_ui_is_initialized (void *data, va_list ap) |
static int | remote_ui_window_clear (void *data, va_list ap) |
static int | remote_ui_window_new (void *data, va_list ap) |
static int | remote_ui_window_kill (void *data, va_list ap) |
static int | remote_ui_window_switch (void *data, va_list ap) |
static int | remote_ui_window_print (void *data, va_list ap) |
static int | remote_session_added (void *data, va_list ap) |
static int | remote_ui_beep (void *data, va_list ap) |
static int | remote_variable_changed (void *data, va_list ap) |
static int | remote_protocol_connected (void *data, va_list ap) |
static int | remote_protocol_disconnected (void *data, va_list ap) |
static int | remote_ui_window_target_changed (void *data, va_list ap) |
static int | remote_ui_window_act_changed (void *data, va_list ap) |
static int | remote_session_changed (void *data, va_list ap) |
static int | remote_session_renamed (void *data, va_list ap) |
static int | remote_userlist_changed (void *data, va_list ap) |
static int | remote_userlist_refresh (void *data, va_list ap) |
static int | remote_all_contacts_changed (void *data, va_list ap) |
static int | remote_statusbar_timer (int type, void *data) |
static void | rc_variable_set (const char *var, const char *val) |
static int | rc_config_read (const char *plugin) |
EXPORT int | remote_plugin_init (int prio) |
static int | remote_plugin_destroy () |
Zmienne | |
static list_t | rc_inputs = NULL |
static char * | rc_paths = NULL |
static char * | rc_password = NULL |
static int | rc_first = 1 |
static int | rc_detach = 0 |
static int | rc_last_mail_count = -1 |
struct { | |
const char * name | |
char * value_def | |
char * value_ptr | |
int used | |
} | ui_vars [] |
static int | rc_theme_enumerate_fd = -1 |
#define BGCOLOR | ( | x | ) | -1 |
#define config_backlog_size -1 |
#define cur attr[i] |
#define FGCOLOR | ( | x | ) | ((!(x & FSTR_NORMAL)) ? (x & FSTR_FOREMASK) : -1) |
#define fix | ( | x | ) | ((x) ? x : "") |
#define prev attr[i-1] |
enum rc_input_type_t |
static char** array_make_count | ( | const char * | string, |
char | sep, | ||
int * | arrcnt | ||
) | [static] |
PLUGIN_DEFINE | ( | remote | , |
PLUGIN_UI | , | ||
NULL | |||
) |
static int rc_config_read | ( | const char * | plugin | ) | [static] |
static void rc_detach_changed | ( | const char * | name | ) | [static] |
static char* rc_fstring_reverse | ( | fstring_t * | fstr | ) | [static] |
static void rc_input_close | ( | rc_input_t * | r | ) | [static] |
static rc_input_t* rc_input_find | ( | const char * | path | ) | [static] |
static int rc_input_handler_accept | ( | int | type, |
int | fd, | ||
watch_type_t | watch, | ||
void * | data | ||
) | [static] |
static int rc_input_handler_line | ( | int | type, |
int | fd, | ||
const char * | watch, | ||
void * | data | ||
) | [static] |
static int rc_input_new_inet | ( | const char * | path, |
int | type | ||
) | [static] |
static int rc_input_new_pipe | ( | const char * | path | ) | [static] |
static int rc_input_new_tcp | ( | const char * | path | ) | [static] |
static int rc_input_new_udp | ( | const char * | path | ) | [static] |
static int rc_input_new_unix | ( | const char * | path | ) | [static] |
static void rc_paths_changed | ( | const char * | name | ) | [static] |
int rc_theme_enumerate | ( | const char * | name, |
const char * | value | ||
) |
static const char* rc_var_get_value | ( | variable_t * | v | ) | [static] |
static void rc_variable_set | ( | const char * | var, |
const char * | val | ||
) | [static] |
static watch_t* rc_watch_find | ( | int | fd | ) | [static] |
static int remote_all_contacts_changed | ( | void * | data, |
va_list | ap | ||
) | [static] |
static void remote_backlog_add | ( | window_t * | w, |
remote_backlog_t * | str | ||
) | [static] |
static int remote_broadcast | ( | char * | what, |
... | |||
) | [static] |
static int remote_plugin_destroy | ( | ) | [static] |
EXPORT int remote_plugin_init | ( | int | prio | ) |
static int remote_postinit | ( | void * | data, |
va_list | ap | ||
) | [static] |
static int remote_protocol_connected | ( | void * | data, |
va_list | ap | ||
) | [static] |
static int remote_protocol_disconnected | ( | void * | data, |
va_list | ap | ||
) | [static] |
static int remote_session_added | ( | void * | data, |
va_list | ap | ||
) | [static] |
static int remote_session_changed | ( | void * | data, |
va_list | ap | ||
) | [static] |
static int remote_session_renamed | ( | void * | data, |
va_list | ap | ||
) | [static] |
static int remote_statusbar_timer | ( | int | type, |
void * | data | ||
) | [static] |
static int remote_ui_beep | ( | void * | data, |
va_list | ap | ||
) | [static] |
static int remote_ui_is_initialized | ( | void * | data, |
va_list | ap | ||
) | [static] |
static int remote_ui_window_act_changed | ( | void * | data, |
va_list | ap | ||
) | [static] |
static int remote_ui_window_clear | ( | void * | data, |
va_list | ap | ||
) | [static] |
static int remote_ui_window_kill | ( | void * | data, |
va_list | ap | ||
) | [static] |
static int remote_ui_window_new | ( | void * | data, |
va_list | ap | ||
) | [static] |
static int remote_ui_window_print | ( | void * | data, |
va_list | ap | ||
) | [static] |
static int remote_ui_window_switch | ( | void * | data, |
va_list | ap | ||
) | [static] |
static int remote_ui_window_target_changed | ( | void * | data, |
va_list | ap | ||
) | [static] |
static int remote_userlist_changed | ( | void * | data, |
va_list | ap | ||
) | [static] |
static int remote_userlist_refresh | ( | void * | data, |
va_list | ap | ||
) | [static] |
static int remote_variable_changed | ( | void * | data, |
va_list | ap | ||
) | [static] |
static string_t remote_what_to_write | ( | char * | what, |
va_list | ap | ||
) | [static] |
static void remote_window_kill | ( | window_t * | w | ) | [static] |
static int remote_window_new | ( | window_t * | w | ) | [static] |
static int remote_writefd | ( | int | fd, |
char * | what, | ||
... | |||
) | [static] |
const char* name |
int rc_detach = 0 [static] |
int rc_first = 1 [static] |
int rc_last_mail_count = -1 [static] |
char* rc_password = NULL [static] |
char* rc_paths = NULL [static] |
int rc_theme_enumerate_fd = -1 [static] |
struct { ... } ui_vars[] [static] |
int used |
char* value_def |
char* value_ptr |