ekg2
 All Struktury Danych Pliki Funkcje Zmienne Definicje typów Wyliczenia Wartości wyliczeń Definicje Grupay Strony
Struktury danych | Definicje | Definicje typów | Funkcje | Zmienne
Dokumentacja pliku stuff.h
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>
#include <ctype.h>
#include <stdarg.h>
#include <stdio.h>
#include "plugins.h"
#include "sessions.h"

Idź do kodu źródłowego tego pliku.

Struktury danych

struct  binding
struct  binding_added
struct  timer

Definicje

#define BINDING_FUNCTION(x)   void x(const char *arg)
#define TIMER(x)   int x(int type, void *data)
#define xisxdigit(c)   isxdigit((int) (unsigned char) c)
#define xisdigit(c)   isdigit((int) (unsigned char) c)
#define xisalpha(c)   isalpha_pl((int) (unsigned char) c)
#define xisalnum(c)   isalnum((int) (unsigned char) c)
#define xisspace(c)   isspace((int) (unsigned char) c)
#define xtolower(c)   tolower((int) (unsigned char) c)
#define xtoupper(c)   toupper((int) (unsigned char) c)

Definicje typów

typedef struct binding_added binding_added_t

Funkcje

void binding_free ()
void changed_theme (const char *var)
const char * compile_time ()
void iso_to_ascii (unsigned char *buf)
char * saprintf (const char *format,...)
const char * timestamp (const char *format)
const char * timestamp_time (const char *format, time_t t)
int isalpha_pl (unsigned char c)
struct timertimer_add (plugin_t *plugin, const char *name, unsigned int period, int persist, int(*function)(int, void *), void *data)
struct timertimer_add_ms (plugin_t *plugin, const char *name, unsigned int period, int persist, int(*function)(int, void *), void *data)
int timer_remove (plugin_t *plugin, const char *name)
struct timertimers_removei (struct timer *t)
void timers_destroy ()
const char * ekg_status_string (const int status, const int cmd)
void ekg_exit ()
void ekg_debug_handler (int level, const char *format, va_list ap)
int ekg_write (int fd, const char *buf, int len)
int remote_request (char *what,...)

Zmienne

char * config_console_charset
char * server_console_charset
int config_use_unicode
int config_use_iso
struct bindingbindings
struct timertimers
binding_added_tbindings_added
int config_debug
int config_display_welcome
int config_query_commands
int config_slash_messages
int config_display_color
int config_display_pl_chars
int config_display_crap
int config_default_status_window
char * config_timestamp
int config_timestamp_show
int config_history_savedups
int config_make_window
int config_sort_windows
int config_send_white_lines
char * config_tab_command
int config_save_quit
int config_lastlog_noitems
int config_lastlog_case
int config_lastlog_display_all
char * config_completion_char
int config_changed
int no_mouse
int old_stderr
int in_autoexec

Dokumentacja definicji

#define BINDING_FUNCTION (   x)    void x(const char *arg)
#define TIMER (   x)    int x(int type, void *data)
#define xisalnum (   c)    isalnum((int) (unsigned char) c)
#define xisalpha (   c)    isalpha_pl((int) (unsigned char) c)
#define xisdigit (   c)    isdigit((int) (unsigned char) c)
#define xisspace (   c)    isspace((int) (unsigned char) c)
#define xisxdigit (   c)    isxdigit((int) (unsigned char) c)
#define xtolower (   c)    tolower((int) (unsigned char) c)
#define xtoupper (   c)    toupper((int) (unsigned char) c)

Dokumentacja definicji typów


Dokumentacja funkcji

void binding_free ( )

binding_free()

Free memory allocated for key bindings.

void changed_theme ( const char *  var)
const char* compile_time ( )
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 ( )
const char* ekg_status_string ( const int  status,
const int  cmd 
)
int ekg_write ( int  fd,
const char *  buf,
int  len 
)

ekg_write()

write data to given fd, if it cannot be done [because system buffer is too small. it'll create watch, and write as soon as possible] XXX, for now it'll always create watch. (You can be notified about state of buffer when you call ekg_write(fd, NULL, -1))

Nota:
This should be used as replacement for write()
int isalpha_pl ( unsigned char  c)
void iso_to_ascii ( unsigned char *  buf)
int remote_request ( char *  what,
  ... 
)
char* saprintf ( const char *  format,
  ... 
)
struct timer* timer_add ( plugin_t plugin,
const char *  name,
unsigned int  period,
int  persist,
int(*)(int, void *)  function,
void *  data 
)
read
struct timer* timer_add_ms ( plugin_t plugin,
const char *  name,
unsigned int  period,
int  persist,
int(*)(int, void *)  function,
void *  data 
)
read
int timer_remove ( plugin_t plugin,
const char *  name 
)
void timers_destroy ( )
struct timer* timers_removei ( struct timer t)
read
const char* timestamp ( const char *  format)
const char* timestamp_time ( const char *  format,
time_t  t 
)

Dokumentacja zmiennych

struct binding* bindings
binding_added_t* bindings_added
int config_changed
char* config_completion_char
char* config_console_charset
int config_debug
int config_default_status_window
int config_display_color
int config_display_crap
int config_display_pl_chars
int config_display_welcome
int config_history_savedups
int config_lastlog_case
int config_lastlog_display_all
int config_lastlog_noitems
int config_make_window
int config_query_commands
int config_save_quit
int config_send_white_lines
int config_slash_messages
int config_sort_windows
char* config_tab_command
char* config_timestamp
int config_timestamp_show
int config_use_iso
int config_use_unicode
int in_autoexec
int no_mouse
int old_stderr
char* server_console_charset
struct timer* timers