1 /* @(#) $Id: ./src/os_dbd/dbd.h, 2011/09/08 dcid Exp $
4 /* Copyright (C) 2009 Trend Micro Inc.
7 * This program is a free software; you can redistribute it
8 * and/or modify it under the terms of the GNU General Public
9 * License (version 2) as published by the FSF - Free Software
12 * License details at the LICENSE file included with OSSEC or
13 * online at: http://www.ossec.net/en/licensing.html
23 #include "config/dbd-config.h"
28 /* Read database config */
29 int OS_ReadDBConf(int test_config, char *cfgfile, DBConfig *db_config);
32 /* Inserts server info to the db. */
33 int OS_Server_ReadInsertDB(void *db_config);
36 /* Insert rules in to the database */
37 int OS_InsertRulesDB(DBConfig *db_config);
41 int OS_SelectMaxID(DBConfig *db_config);
44 /* Insert alerts in to the database */
45 int OS_Alert_InsertDB(alert_data *al_data, DBConfig *db_config);
48 /* Database inserting main function */
49 void OS_DBD(DBConfig *db_config);
52 /* Setting config pointer for osbd_op */
53 void osdb_setconfig(DBConfig *db_config);