netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
db.h File Reference
#include <ulogd/ulogd.h>
Include dependency graph for db.h:
This graph shows which files directly or indirectly include this file:

Data Structures

struct  db_driver
 
struct  db_stmt_ring
 
struct  db_stmt
 
struct  db_instance
 

Macros

#define TIME_ERR   ((time_t)-1) /* Be paranoid */
 
#define RECONNECT_DEFAULT   2
 
#define MAX_ONESHOT_REQUEST   10
 
#define RING_BUFFER_DEFAULT_SIZE   0
 
#define DB_CES
 
#define DB_CE_NUM   7
 
#define table_ce(x)   (x->ces[0])
 
#define reconnect_ce(x)   (x->ces[1])
 
#define timeout_ce(x)   (x->ces[2])
 
#define procedure_ce(x)   (x->ces[3])
 
#define backlog_memcap_ce(x)   (x->ces[4])
 
#define backlog_oneshot_ce(x)   (x->ces[5])
 
#define ringsize_ce(x)   (x->ces[6])
 

Enumerations

enum  {
  RING_NO_QUERY,
  RING_QUERY_READY
}
 

Functions

void ulogd_db_signal (struct ulogd_pluginstance *upi, int signal)
 
int ulogd_db_start (struct ulogd_pluginstance *upi)
 
int ulogd_db_stop (struct ulogd_pluginstance *upi)
 
int ulogd_db_interp (struct ulogd_pluginstance *upi)
 
int ulogd_db_configure (struct ulogd_pluginstance *upi, struct ulogd_pluginstance_stack *stack)
 

Macro Definition Documentation

#define backlog_memcap_ce (   x)    (x->ces[4])

Referenced by ulogd_db_configure().

#define backlog_oneshot_ce (   x)    (x->ces[5])

Referenced by ulogd_db_configure().

#define DB_CE_NUM   7
#define DB_CES
#define MAX_ONESHOT_REQUEST   10
#define procedure_ce (   x)    (x->ces[3])
#define reconnect_ce (   x)    (x->ces[1])
#define RECONNECT_DEFAULT   2
#define RING_BUFFER_DEFAULT_SIZE   0
#define ringsize_ce (   x)    (x->ces[6])

Referenced by ulogd_db_configure().

#define table_ce (   x)    (x->ces[0])
#define TIME_ERR   ((time_t)-1) /* Be paranoid */
#define timeout_ce (   x)    (x->ces[2])

Enumeration Type Documentation

anonymous enum
Enumerator
RING_NO_QUERY 
RING_QUERY_READY 

Function Documentation

int ulogd_db_interp ( struct ulogd_pluginstance upi)
void ulogd_db_signal ( struct ulogd_pluginstance upi,
int  signal 
)
int ulogd_db_stop ( struct ulogd_pluginstance upi)