ekg2
 All Struktury Danych Pliki Funkcje Zmienne Definicje typów Wyliczenia Wartości wyliczeń Definicje Grupay Strony
Funkcje | Zmienne
Dokumentacja pliku log.c
#include "ekg2-config.h"
#include <sys/types.h>
#include <time.h>
#include "dynstuff.h"
#include "dynstuff_inline.h"
#include "log.h"
#include "xmalloc.h"

Funkcje

static LIST_FREE_ITEM (list_last_free, struct last *)
 
 DYNSTUFF_LIST_DECLARE_WC (lasts, struct last, list_last_free, static __DYNSTUFF_LIST_ADD, static __DYNSTUFF_LIST_REMOVE_ITER, __DYNSTUFF_LIST_DESTROY, static __DYNSTUFF_LIST_COUNT) void last_add(int type
 
 if (config_last_size<=0) return
 
 if (config_last &2) count
 
 if (count >=config_last_size)
 
 lasts_add (ll)
 
void last_del (const char *uid)
 
int last_count (const char *uid)
 
static int xml_escape_l (const char znak)
 
static const char * xml_escape_c (const char znak)
 
char * xml_escape (const char *text)
 

Zmienne

struct lastlasts = NULL
 
int config_last_size = 10
 
int config_last = 0
 
const char * uid = xstrdup(uid)
 
const char time_t t
 
const char time_t time_t st
 
const char time_t time_t const
char * 
msg
 
int count = 0
 
 ll = xmalloc(sizeof(struct last))
 
ll type = type
 
ll time = t
 
ll sent_time = st
 
ll message = xstrdup(msg)
 

Dokumentacja funkcji

DYNSTUFF_LIST_DECLARE_WC ( lasts  ,
struct last  ,
list_last_free  ,
static  __DYNSTUFF_LIST_ADD,
static  __DYNSTUFF_LIST_REMOVE_ITER,
__DYNSTUFF_LIST_DESTROY  ,
static  __DYNSTUFF_LIST_COUNT 
)
if ( config_last_size<=  0)
if ( config_last 2)
if ( count >=  config_last_size)
int last_count ( const char *  uid)
void last_del ( const char *  uid)
lasts_add ( ll  )
static LIST_FREE_ITEM ( list_last_free  ,
struct last  
)
static
char* xml_escape ( const char *  text)
static const char* xml_escape_c ( const char  znak)
static
static int xml_escape_l ( const char  znak)
static

Dokumentacja zmiennych

int config_last = 0
int config_last_size = 10
else count = 0
struct last* lasts = NULL
ll = xmalloc(sizeof(struct last))
ll message = xstrdup(msg)
const char time_t time_t const char* msg
Wartość początkowa:
{
struct last *ll
ll sent_time = st
const char time_t time_t st
const char time_t t
ll time = t
d type = type
d uid = xstrdup(uid)