#include <stdlib.h>
#include <string.h>
#include <arpa/inet.h>
#include <ulogd/ulogd.h>
#include <ulogd/conffile.h>
#include <sqlite3.h>
#include <sys/queue.h>
| #define _SQLITE3_INSERTTEMPL "insert into X (Y) values (Z)" |
| #define buffer_ce |
( |
|
pi | ) |
(pi)->config_kset->ces[2].u.value |
| #define CFG_BUFFER_DEFAULT 10 |
| #define db_ce |
( |
|
pi | ) |
(pi)->config_kset->ces[0].u.string |
| #define DEBUGP |
( |
|
x, |
|
|
|
args... |
|
) |
| |
| #define SELECT_ALL_STR "select * from " |
| #define SQLITE3_BUSY_TIMEOUT 300 |
| #define table_ce |
( |
|
pi | ) |
(pi)->config_kset->ces[1].u.string |
| #define tailq_for_each |
( |
|
pos, |
|
|
|
head, |
|
|
|
link |
|
) |
| for (pos = (head).tqh_first; pos != NULL; pos = pos->link.tqe_next) |
| TAILQ_HEAD |
( |
field_lh |
, |
|
|
field |
|
|
) |
| |