ekg2  GIT master
Struktury danych | Definicje | Wyliczenia | Funkcje | Zmienne
Dokumentacja pliku remote.c
#include "ekg2.h"
#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>
Wykres zależności załączania dla remote.c:

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

static int remote_plugin_destroy ()
 
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_trc_input_find (const char *path)
 
static watch_trc_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 gint remote_statusbar_timer (gint type, gpointer data)
 
static void rc_variable_set (const char *var, const char *val)
 
static int rc_config_read (const char *plugin)
 
 __attribute__ ((visibility("default")))
 

Zmienne

plugin_t remote_plugin = { .name = "remote", .pclass = PLUGIN_UI , .destroy = remote_plugin_destroy, .theme_init = NULL }
 
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
 

Dokumentacja definicji

◆ BGCOLOR

#define BGCOLOR (   x)    -1

◆ config_backlog_size

#define config_backlog_size   -1

◆ cur

#define cur   attr[i]

◆ FGCOLOR

#define FGCOLOR (   x)    ((!(x & FSTR_NORMAL)) ? (x & FSTR_FOREMASK) : -1)

◆ fix

#define fix (   x)    ((x) ? x : "")

◆ prev

#define prev   attr[i-1]

◆ UI_VAR

#define UI_VAR (   name,
  defval 
)    { name, defval, NULL, 0 }

Dokumentacja typów wyliczanych

◆ rc_input_type_t

Wartości wyliczeń
RC_INPUT_PIPE 
RC_INPUT_UDP 
RC_INPUT_TCP 
RC_INPUT_UNIX 
RC_INPUT_TCP_CLIENT 
RC_INPUT_UNIX_CLIENT 
RC_INPUT_PIPE 
RC_INPUT_UDP 
RC_INPUT_TCP 
RC_INPUT_UNIX 
RC_INPUT_TCP_CLIENT 
RC_INPUT_UNIX_CLIENT 

Dokumentacja funkcji

◆ __attribute__()

__attribute__ ( (visibility("default"))  )

◆ array_make_count()

static char** array_make_count ( const char *  string,
char  sep,
int *  arrcnt 
)
static

◆ rc_config_read()

static int rc_config_read ( const char *  plugin)
static

◆ rc_detach_changed()

static void rc_detach_changed ( const char *  name)
static

◆ rc_fstring_reverse()

static char* rc_fstring_reverse ( fstring_t fstr)
static

◆ rc_input_close()

static void rc_input_close ( rc_input_t r)
static

◆ rc_input_find()

static rc_input_t* rc_input_find ( const char *  path)
static

◆ rc_input_handler_accept()

static int rc_input_handler_accept ( int  type,
int  fd,
watch_type_t  watch,
void *  data 
)
static

◆ rc_input_handler_line()

static int rc_input_handler_line ( int  type,
int  fd,
const char *  watch,
void *  data 
)
static

◆ rc_input_new_inet()

static int rc_input_new_inet ( const char *  path,
int  type 
)
static

◆ rc_input_new_pipe()

static int rc_input_new_pipe ( const char *  path)
static

◆ rc_input_new_tcp()

static int rc_input_new_tcp ( const char *  path)
static

◆ rc_input_new_udp()

static int rc_input_new_udp ( const char *  path)
static

◆ rc_input_new_unix()

static int rc_input_new_unix ( const char *  path)
static

◆ rc_paths_changed()

static void rc_paths_changed ( const char *  name)
static

◆ rc_theme_enumerate()

int rc_theme_enumerate ( const char *  name,
const char *  value 
)

◆ rc_var_get_value()

static const char* rc_var_get_value ( variable_t v)
static

◆ rc_variable_set()

static void rc_variable_set ( const char *  var,
const char *  val 
)
static

◆ rc_watch_find()

static watch_t* rc_watch_find ( int  fd)
static

◆ remote_all_contacts_changed()

static int remote_all_contacts_changed ( void *  data,
va_list  ap 
)
static

◆ remote_backlog_add()

static void remote_backlog_add ( window_t w,
remote_backlog_t str 
)
static

◆ remote_broadcast()

static int remote_broadcast ( char *  what,
  ... 
)
static

◆ remote_plugin_destroy()

static int remote_plugin_destroy ( )
static

◆ remote_postinit()

static int remote_postinit ( void *  data,
va_list  ap 
)
static

◆ remote_protocol_connected()

static int remote_protocol_connected ( void *  data,
va_list  ap 
)
static

◆ remote_protocol_disconnected()

static int remote_protocol_disconnected ( void *  data,
va_list  ap 
)
static

◆ remote_session_added()

static int remote_session_added ( void *  data,
va_list  ap 
)
static

◆ remote_session_changed()

static int remote_session_changed ( void *  data,
va_list  ap 
)
static

◆ remote_session_renamed()

static int remote_session_renamed ( void *  data,
va_list  ap 
)
static

◆ remote_statusbar_timer()

static gint remote_statusbar_timer ( gint  type,
gpointer  data 
)
static

◆ remote_ui_beep()

static int remote_ui_beep ( void *  data,
va_list  ap 
)
static

◆ remote_ui_is_initialized()

static int remote_ui_is_initialized ( void *  data,
va_list  ap 
)
static

◆ remote_ui_window_act_changed()

static int remote_ui_window_act_changed ( void *  data,
va_list  ap 
)
static

◆ remote_ui_window_clear()

static int remote_ui_window_clear ( void *  data,
va_list  ap 
)
static

◆ remote_ui_window_kill()

static int remote_ui_window_kill ( void *  data,
va_list  ap 
)
static

◆ remote_ui_window_new()

static int remote_ui_window_new ( void *  data,
va_list  ap 
)
static

◆ remote_ui_window_print()

static int remote_ui_window_print ( void *  data,
va_list  ap 
)
static

◆ remote_ui_window_switch()

static int remote_ui_window_switch ( void *  data,
va_list  ap 
)
static

◆ remote_ui_window_target_changed()

static int remote_ui_window_target_changed ( void *  data,
va_list  ap 
)
static

◆ remote_userlist_changed()

static int remote_userlist_changed ( void *  data,
va_list  ap 
)
static

◆ remote_userlist_refresh()

static int remote_userlist_refresh ( void *  data,
va_list  ap 
)
static

◆ remote_variable_changed()

static int remote_variable_changed ( void *  data,
va_list  ap 
)
static

◆ remote_what_to_write()

static string_t remote_what_to_write ( char *  what,
va_list  ap 
)
static

◆ remote_window_kill()

static void remote_window_kill ( window_t w)
static

◆ remote_window_new()

static int remote_window_new ( window_t w)
static

◆ remote_writefd()

static int remote_writefd ( int  fd,
char *  what,
  ... 
)
static

Dokumentacja zmiennych

◆ name

const char* name

◆ rc_detach

int rc_detach = 0
static

◆ rc_first

int rc_first = 1
static

◆ rc_inputs

list_t rc_inputs = NULL
static

◆ rc_last_mail_count

int rc_last_mail_count = -1
static

◆ rc_password

char* rc_password = NULL
static

◆ rc_paths

char* rc_paths = NULL
static

◆ rc_theme_enumerate_fd

int rc_theme_enumerate_fd = -1
static

◆ remote_plugin

plugin_t remote_plugin = { .name = "remote", .pclass = PLUGIN_UI , .destroy = remote_plugin_destroy, .theme_init = NULL }

◆ ui_vars

struct { ... } ui_vars[]

◆ used

int used

◆ value_def

char* value_def

◆ value_ptr

char* value_ptr