ekg2
Struktury danych | Definicje | Wyliczenia | Funkcje | Zmienne
Dokumentacja pliku plugins/logs/main.h
#include "ekg2-config.h"
#include <stdio.h>
#include <ekg/sessions.h>
#include <ekg/plugins.h>
#include <ekg/protocol.h>

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

Struktury danych

struct  log_window_t
struct  logs_log_t

Definicje

#define IRSSI_LOG_EKG2_OPENED   "--- Log opened %a %b %d %H:%M:%S %Y"
#define IRSSI_LOG_EKG2_CLOSED   "--- Log closed %a %b %d %H:%M:%S %Y"
#define IRSSI_LOG_DAY_CHANGED   "--- Day changed %a %b %d %Y"

Wyliczenia

enum  log_format_t {
  LOG_FORMAT_NONE = 0, LOG_FORMAT_SIMPLE, LOG_FORMAT_XML, LOG_FORMAT_IRSSI,
  LOG_FORMAT_RAW
}

Funkcje

static char * logs_prepare_path (session_t *session, const char *logs_path, const char *uid, time_t sent)
static const char * prepare_timestamp_format (const char *format, time_t t)
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 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)

Zmienne

static list_t log_logs = NULL
static int config_logs_log
static int config_logs_log_raw
static int config_logs_log_ignored
static int config_logs_log_status
static int config_logs_remind_number = 0
static int config_logs_max_files = 7
static char * config_logs_path
static char * config_logs_timestamp

Dokumentacja definicji

#define IRSSI_LOG_DAY_CHANGED   "--- Day changed %a %b %d %Y"
#define IRSSI_LOG_EKG2_CLOSED   "--- Log closed %a %b %d %H:%M:%S %Y"
#define IRSSI_LOG_EKG2_OPENED   "--- Log opened %a %b %d %H:%M:%S %Y"

Dokumentacja typów wyliczanych

Wartości wyliczeń:
LOG_FORMAT_NONE 
LOG_FORMAT_SIMPLE 
LOG_FORMAT_XML 
LOG_FORMAT_IRSSI 
LOG_FORMAT_RAW 

Dokumentacja funkcji

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 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 char* logs_prepare_path ( session_t session,
const char *  logs_path,
const char *  uid,
time_t  sent 
) [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 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

int config_logs_log [static]
int config_logs_log_raw [static]
int config_logs_log_status [static]
int config_logs_max_files = 7 [static]
char* config_logs_path [static]
int config_logs_remind_number = 0 [static]
char* config_logs_timestamp [static]
list_t log_logs = NULL [static]
 All Struktury Danych Pliki Funkcje Zmienne Definicje typów Wyliczenia Wartości wyliczeń Definicje