Functions | Variables

db.c File Reference

#include "spp_ai.h"
#include "db.h"
#include <unistd.h>
#include <time.h>
#include <pthread.h>

Functions

void * AI_mysql_alertparser_thread (void *arg)
 Thread for parsing alerts from MySQL database.
PRIVATE AI_snort_alert_AI_mysql_copy_alerts (AI_snort_alert *node)
 Create a copy of the alert log struct (this is done for leaving the alert log structure in this file as read-only).
AI_snort_alertAI_mysql_get_alerts ()
 Return the alerts parsed so far as a linked list.

Variables

PRIVATE AI_configconfig
PRIVATE AI_snort_alertalerts = NULL
PRIVATE pthread_mutex_t db_mutex = PTHREAD_MUTEX_INITIALIZER
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines