#include "ekg2-config.h"#include <ekg/win32.h>#include <stdint.h>#include <ekg/debug.h>#include <ekg/dynstuff.h>#include <ekg/log.h>#include <ekg/plugins.h>#include <ekg/protocol.h>#include <ekg/sessions.h>#include <ekg/stuff.h>#include <ekg/themes.h>#include <ekg/vars.h>#include <ekg/windows.h>#include <ekg/userlist.h>#include <ekg/xmalloc.h>#include <ekg/queries.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 "compat/strlcat.h"#include "compat/strlcpy.h"#include "main.h"Definicje | |
| #define | _XOPEN_SOURCE 600 |
| #define | __EXTENSIONS__ |
| #define | prev attr[i-1] |
| #define | cur attr[i] |
| #define | BGCOLOR(x) -1 |
| #define | FGCOLOR(x) ((!(x & FSTR_NORMAL)) ? (x & FSTR_FOREMASK) : -1) |
Funkcje | |
| PLUGIN_DEFINE (logs, PLUGIN_LOG, NULL) | |
| 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_t * | logs_log_find (const char *session, const char *uid, int create) |
| static logs_log_t * | logs_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) |
| EXPORT int | logs_plugin_init (int prio) |
| static int | logs_plugin_destroy () |
Zmienne | |
| static struct buffer_info | buffer_lograw = { NULL, 0, 0 } |
| static logs_log_t * | log_curlog = NULL |
| #define __EXTENSIONS__ |
| #define _XOPEN_SOURCE 600 |
| #define BGCOLOR | ( | x | ) | -1 |
| #define cur attr[i] |
| #define FGCOLOR | ( | x | ) | ((!(x & FSTR_NORMAL)) ? (x & FSTR_FOREMASK) : -1) |
| #define prev attr[i-1] |
| 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] |
| EXPORT int logs_plugin_init | ( | int | prio | ) |
| 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_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] |
| PLUGIN_DEFINE | ( | logs | , | |
| PLUGIN_LOG | , | |||
| NULL | ||||
| ) |
| static const char* prepare_timestamp_format | ( | const char * | format, | |
| time_t | t | |||
| ) | [static] |
struct buffer_info buffer_lograw = { NULL, 0, 0 } [static] |
logs_log_t* log_curlog = NULL [static] |
1.7.1