ekg2  GIT master
 All Struktury Danych Pliki Funkcje Zmienne Definicje typów Wyliczenia Wartości wyliczeń Definicje Grupay Strony
Definicje | Funkcje | Zmienne
Dokumentacja pliku main.c
#include "ekg2.h"
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <arpa/inet.h>
#include <errno.h>
#include <string.h>
#include <unistd.h>
#include <zlib.h>
#include "main.h"

Definicje

#define prev   attr[i-1]
 
#define cur   attr[i]
 
#define BGCOLOR(x)   -1
 
#define FGCOLOR(x)   ((!(x & FSTR_NORMAL)) ? (x & FSTR_FOREMASK) : -1)
 

Funkcje

static int logs_plugin_destroy ()
 
static char * log_escape (const char *str)
 
static char * fstring_reverse (fstring_t *fstr)
 
static int logs_log_format (session_t *s)
 
static int logs_window_check (logs_log_t *ll, time_t t)
 
static FILE * logs_window_close (logs_log_t *l, int close)
 
static logs_log_tlogs_log_find (const char *session, const char *uid, int create)
 
static logs_log_tlogs_log_new (logs_log_t *l, const char *session, const char *uid)
 
static void logs_window_new (window_t *w)
 
static void logs_changed_path (const char *var)
 
static void logs_changed_raw (const char *var)
 
static int logs_print_window (session_t *s, window_t *w, const char *line, time_t ts)
 
static int logs_buffer_raw_display (const char *file, int items)
 
static char * logs_prepare_path (session_t *session, const char *logs_path, const char *uid, time_t sent)
 
static FILE * logs_open_file (char *path, int ff)
 
static void logs_simple (FILE *file, const char *session, const char *uid, const char *text, time_t sent, msgclass_t class, const char *status)
 
static void logs_xml (FILE *file, const char *session, const char *uid, const char *text, time_t sent, msgclass_t class)
 
static void logs_irssi (FILE *file, const char *session, const char *uid, const char *text, time_t sent, msgclass_t class)
 
static const char * prepare_timestamp_format (const char *format, time_t t)
 
static int logs_handler (void *data, va_list ap)
 
static int logs_status_handler (void *data, va_list ap)
 
static int logs_handler_irc (void *data, va_list ap)
 
static int logs_handler_raw (void *data, va_list ap)
 
static int logs_handler_newwin (void *data, va_list ap)
 
static int logs_postinit (void *data, va_list ap)
 
static int logs_handler_killwin (void *data, va_list ap)
 
static int logs_setvar_default (void *data, va_list ap)
 
 __attribute__ ((visibility("default")))
 

Zmienne

plugin_t logs_plugin = { .name = "logs", .pclass = PLUGIN_LOG , .destroy = logs_plugin_destroy, .theme_init = NULL }
 
static struct buffer_info buffer_lograw = { NULL, 0, 0 }
 
static logs_log_tlog_curlog = NULL
 

Dokumentacja definicji

#define BGCOLOR (   x)    -1
#define cur   attr[i]
#define FGCOLOR (   x)    ((!(x & FSTR_NORMAL)) ? (x & FSTR_FOREMASK) : -1)
#define prev   attr[i-1]

Dokumentacja funkcji

__attribute__ ( (visibility("default"))  )
static char* fstring_reverse ( fstring_t fstr)
static
static char* log_escape ( const char *  str)
static
static int logs_buffer_raw_display ( const char *  file,
int  items 
)
static
static void logs_changed_path ( const char *  var)
static
static void logs_changed_raw ( const char *  var)
static
static int logs_handler ( void *  data,
va_list  ap 
)
static

glowny handler

static int logs_handler_irc ( void *  data,
va_list  ap 
)
static
static int logs_handler_killwin ( void *  data,
va_list  ap 
)
static
static int logs_handler_newwin ( void *  data,
va_list  ap 
)
static
static int logs_handler_raw ( void *  data,
va_list  ap 
)
static
static void logs_irssi ( FILE *  file,
const char *  session,
const char *  uid,
const char *  text,
time_t  sent,
msgclass_t  class 
)
static
static logs_log_t* logs_log_find ( const char *  session,
const char *  uid,
int  create 
)
static
static int logs_log_format ( session_t s)
static
static logs_log_t* logs_log_new ( logs_log_t l,
const char *  session,
const char *  uid 
)
static
static FILE* logs_open_file ( char *  path,
int  ff 
)
static
static int logs_plugin_destroy ( )
static
static int logs_postinit ( void *  data,
va_list  ap 
)
static
static char* logs_prepare_path ( session_t session,
const char *  logs_path,
const char *  uid,
time_t  sent 
)
static
static int logs_print_window ( session_t s,
window_t w,
const char *  line,
time_t  ts 
)
static
static int logs_setvar_default ( void *  data,
va_list  ap 
)
static
static void logs_simple ( FILE *  file,
const char *  session,
const char *  uid,
const char *  text,
time_t  sent,
msgclass_t  class,
const char *  status 
)
static
static int logs_status_handler ( void *  data,
va_list  ap 
)
static
static int logs_window_check ( logs_log_t ll,
time_t  t 
)
static
static FILE * logs_window_close ( logs_log_t l,
int  close 
)
static
static void logs_window_new ( window_t w)
static
static void logs_xml ( FILE *  file,
const char *  session,
const char *  uid,
const char *  text,
time_t  sent,
msgclass_t  class 
)
static
static const char* prepare_timestamp_format ( const char *  format,
time_t  t 
)
static

Dokumentacja zmiennych

struct buffer_info buffer_lograw = { NULL, 0, 0 }
static
logs_log_t* log_curlog = NULL
static
plugin_t logs_plugin = { .name = "logs", .pclass = PLUGIN_LOG , .destroy = logs_plugin_destroy, .theme_init = NULL }