ekg2
Definicje | Funkcje | Zmienne
Dokumentacja pliku remote/ekg-remote.c
#include "ekg2-config.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/un.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <sys/select.h>
#include <errno.h>
#include <fcntl.h>
#include "compat/getopt.h"
#include <limits.h>
#include <locale.h>
#include <stdio.h>
#include <signal.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include "commands.h"
#include "debug.h"
#include "plugins.h"
#include "compat/strlcpy.h"
#include "sessions.h"
#include "recode.h"
#include "stuff.h"
#include "themes.h"
#include "userlist.h"
#include "vars.h"
#include "windows.h"
#include "xmalloc.h"
#include "queries.h"

Definicje

#define _XOPEN_SOURCE   600
#define __EXTENSIONS__
#define __USE_BSD
#define EKG_USAGE

Funkcje

static void config_postread ()
static int config_read (const char *filename)
static int session_read (const char *filename)
static int metacontact_read ()
static void metacontact_init ()
static void metacontacts_destroy ()
void * metacontact_find_prio (void *m)
void * newconference_find (session_t *s, const char *name)
static void newconferences_destroy ()
static void conferences_destroy ()
void changed_theme (const char *var)
const char * prepare_path (const char *filename, int do_mkdir)
int session_check (session_t *s, int need_private, const char *protocol)
void ekg_loop ()
static void handle_sighup ()
static void handle_sigsegv ()
static int handle_stderr (int type, int fd, const char *watch, void *data)
EXPORTNOT void ekg_debug_handler (int level, const char *format, va_list ap)
int remote_connect (const char *path)
int remote_connect2 (int fd, const char *password)
int remote_connect3 ()
void remote_print_stats ()
static int remote_irc_topic_helper (void *data, va_list ap)
static int remote_mail_count_helper (void *data, va_list ap)
int main (int argc, char **argv)
void ekg_exit ()

Zmienne

EXPORTNOT int ekg_watches_removed
static char argv0 [100]
static int stderr_backup = -1
int no_mouse = 0
char * events_all [] = { "protocol-message", "event_avail", "event_away", "event_na", "event_online", "event_descr", NULL }
void * metacontacts
void * newconferences
void * conferences
struct option ekg_options []
int remote_mail_count

Dokumentacja definicji

#define __EXTENSIONS__
#define __USE_BSD
#define _XOPEN_SOURCE   600
#define EKG_USAGE
Wartość:
N_( \
"Usage: %s [OPTIONS] REMOTE-ENDPOINT\n" \
"  -c, --charset=CHARSET       forces charset to use\n" \
"  -p, --password=PASSWD       sets password\n" \
"  -T, --test=NAME             same as -F, but runs in test mode - for debugging\n" \
"  -F, --frontend=NAME         uses NAME frontend (default is ncurses)\n" \
"  -m, --no-mouse              does not load mouse support\n" \
"  -U, --unicode               forces unicode support\n" \
\
"  -h, --help                  displays this help message\n" \
"  -v, --version               displays program version and exits\n" \
"\n" )

Dokumentacja funkcji

void changed_theme ( const char *  var)
static void conferences_destroy ( ) [static]
static void config_postread ( ) [static]
static int config_read ( const char *  filename) [static]
EXPORTNOT void ekg_debug_handler ( int  level,
const char *  format,
va_list  ap 
)

ekg_debug_handler()

debug message [if config_debug set] coming direct from libgadu (by libgadu_debug_handler()) or by debug() or by debug_ext()
XXX, doc more. But function now is ok.

Zobacz również:
debug_ext()
Błąd:
It can happen than internal string_t line will be not freed.
Parametry:
level
format
ap
void ekg_exit ( )
void ekg_loop ( )
static void handle_sighup ( ) [static]
static void handle_sigsegv ( ) [static]
static int handle_stderr ( int  type,
int  fd,
const char *  watch,
void *  data 
) [static]
int main ( int  argc,
char **  argv 
)
void* metacontact_find_prio ( void *  m)
static void metacontact_init ( ) [static]
static int metacontact_read ( ) [static]
static void metacontacts_destroy ( ) [static]
void* newconference_find ( session_t s,
const char *  name 
)
static void newconferences_destroy ( ) [static]
const char* prepare_path ( const char *  filename,
int  do_mkdir 
)
int remote_connect ( const char *  path)
int remote_connect2 ( int  fd,
const char *  password 
)
int remote_connect3 ( )
static int remote_irc_topic_helper ( void *  data,
va_list  ap 
) [static]
static int remote_mail_count_helper ( void *  data,
va_list  ap 
) [static]
void remote_print_stats ( )
int session_check ( session_t s,
int  need_private,
const char *  protocol 
)
static int session_read ( const char *  filename) [static]

Dokumentacja zmiennych

char argv0[100] [static]
void* conferences
struct option ekg_options[]
Wartość początkowa:
 {
        { "charset",  required_argument, 0, 'c' },
        { "password", required_argument, 0, 'p' },
        { "test",     required_argument, 0, 'T' },
        { "frontend", required_argument, 0, 'F' },
        { "no-mouse", no_argument, 0, 'm' },
        { "unicode",  no_argument, 0, 'U' },
        { "help",     no_argument, 0, 'h' },
        { "version",  no_argument, 0, 'v' },

        { 0, 0, 0, 0 }
}
EXPORTNOT int ekg_watches_removed
char* events_all[] = { "protocol-message", "event_avail", "event_away", "event_na", "event_online", "event_descr", NULL }
void* metacontacts
int no_mouse = 0
int stderr_backup = -1 [static]
 All Struktury Danych Pliki Funkcje Zmienne Definicje typów Wyliczenia Wartości wyliczeń Definicje