#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <time.h>
#include <inttypes.h>
#include <pthread.h>
#include <ulogd/ulogd.h>
#include <ulogd/db.h>
Macros | |
#define | SQL_INSERTTEMPL "SELECT P(Y)" |
#define | SQL_VALSIZE 100 |
Functions | |
int | ulogd_db_interp (struct ulogd_pluginstance *upi) |
int | ulogd_db_configure (struct ulogd_pluginstance *upi, struct ulogd_pluginstance_stack *stack) |
int | ulogd_db_start (struct ulogd_pluginstance *upi) |
int | ulogd_db_stop (struct ulogd_pluginstance *upi) |
void | ulogd_db_signal (struct ulogd_pluginstance *upi, int signal) |
#define SQL_INSERTTEMPL "SELECT P(Y)" |
#define SQL_VALSIZE 100 |
int ulogd_db_configure | ( | struct ulogd_pluginstance * | upi, |
struct ulogd_pluginstance_stack * | stack | ||
) |
References db_instance::backlog, db_instance::backlog_full, db_instance::backlog_memcap, backlog_memcap_ce, db_instance::backlog_memusage, db_instance::backlog_oneshot, backlog_oneshot_ce, db_driver::close_db, ulogd_pluginstance::config_kset, config_parse_file(), db_instance::driver, db_driver::get_columns, ulogd_pluginstance::id, INIT_LLIST_HEAD, db_driver::open_db, ulogd_pluginstance::private, db_instance::ring, ringsize_ce, db_stmt_ring::size, ULOGD_ERROR, ulogd_log, and ULOGD_NOTICE.
int ulogd_db_interp | ( | struct ulogd_pluginstance * | upi | ) |
References db_instance::interp, and ulogd_pluginstance::private.
void ulogd_db_signal | ( | struct ulogd_pluginstance * | upi, |
int | signal | ||
) |
References db_instance::db_thread_id, NULL, ulogd_pluginstance::private, db_instance::ring, s, db_stmt_ring::size, ulogd_db_start(), ULOGD_ERROR, and ulogd_log.
int ulogd_db_start | ( | struct ulogd_pluginstance * | upi | ) |
References db_driver::close_db, db_stmt_ring::cond, db_instance::db_thread_id, db_instance::driver, db_instance::interp, db_stmt_ring::length, db_stmt_ring::mutex, NULL, db_driver::open_db, ulogd_pluginstance::private, db_stmt_ring::ring, db_instance::ring, db_stmt_ring::size, db_instance::stmt, ulogd_log, ULOGD_NOTICE, and db_stmt_ring::wr_place.
Referenced by ulogd_db_signal().
int ulogd_db_stop | ( | struct ulogd_pluginstance * | upi | ) |
References ulogd_pluginstance::input, ulogd_keyset::keys, and NULL.