stats.h File Reference

stats More...

Go to the source code of this file.

Defines

#define STATS_SESSION_CREATED   (1 << 0)
#define STATS_SESSION_OK   (1 << 1)
#define STATS_SESSION_ERR   (1 << 2)
#define STATS_CONNECTION_ESTABLISHED   (1 << 3)
#define STATS_COOKIES   (1 << 4)
#define STATS_ALL
#define STATS_DECLARE_INCR(name)   void (*stats_log_##name)(void)
#define STATS_DECLARE_LINT(name)   void(*stats_log_##name)(long int)
#define STATS_DECLARE_UINT(name)   void(*stats_log_##name)(unsigned int)
#define STATS_LOG(name, params...)   if (stats_log_##name) stats_log_##name(params)
#define STATS_LOG_IF(cond, name, params...)   if (stats_log_##name && (cond)) stats_log_##name(params)

Functions

void stats_activate (long unsigned int mask)
 STATS_DECLARE_INCR (session_created)
 STATS_DECLARE_INCR (session_ok)
 STATS_DECLARE_INCR (connection_established)
 STATS_DECLARE_LINT (cookies)
 STATS_DECLARE_UINT (session_err)


Detailed Description

stats

Author:
Name   <sorry guy>

Definition in file stats.h.


Define Documentation

#define STATS_ALL

#define STATS_CONNECTION_ESTABLISHED   (1 << 3)

Definition at line 22 of file stats.h.

#define STATS_COOKIES   (1 << 4)

Definition at line 23 of file stats.h.

#define STATS_DECLARE_INCR ( name   )     void (*stats_log_##name)(void)

Definition at line 30 of file stats.h.

#define STATS_DECLARE_LINT ( name   )     void(*stats_log_##name)(long int)

Definition at line 36 of file stats.h.

#define STATS_DECLARE_UINT ( name   )     void(*stats_log_##name)(unsigned int)

Definition at line 40 of file stats.h.

#define STATS_LOG ( name,
params...   )     if (stats_log_##name) stats_log_##name(params)

Definition at line 44 of file stats.h.

#define STATS_LOG_IF ( cond,
name,
params...   )     if (stats_log_##name && (cond)) stats_log_##name(params)

Definition at line 45 of file stats.h.

#define STATS_SESSION_CREATED   (1 << 0)

Definition at line 19 of file stats.h.

#define STATS_SESSION_ERR   (1 << 2)

Definition at line 21 of file stats.h.

#define STATS_SESSION_OK   (1 << 1)

Definition at line 20 of file stats.h.


Function Documentation

void stats_activate ( long unsigned int  mask  ) 

STATS_DECLARE_INCR ( connection_established   ) 

STATS_DECLARE_INCR ( session_ok   ) 

STATS_DECLARE_INCR ( session_created   ) 

STATS_DECLARE_LINT ( cookies   ) 

STATS_DECLARE_UINT ( session_err   ) 


Generated on Sat Nov 1 15:55:53 2008 for FreePOPs by  doxygen 1.5.6