3 /* Copyright (C) 2009 Trend Micro Inc.
6 * This program is a free software; you can redistribute it
7 * and/or modify it under the terms of the GNU General Public
8 * License (version 2) as published by the FSF - Free Software
11 * License details at the LICENSE file included with OSSEC or
12 * online at: http://www.ossec.net/en/licensing.html
22 #include "config/dbd-config.h"
27 /* Read database config */
28 int OS_ReadDBConf(int test_config, char *cfgfile, DBConfig *db_config);
31 /* Inserts server info to the db. */
32 int OS_Server_ReadInsertDB(void *db_config);
35 /* Insert rules in to the database */
36 int OS_InsertRulesDB(DBConfig *db_config);
40 int OS_SelectMaxID(DBConfig *db_config);
43 /* Insert alerts in to the database */
44 int OS_Alert_InsertDB(alert_data *al_data, DBConfig *db_config);
47 /* Database inserting main function */
48 void OS_DBD(DBConfig *db_config);
51 /* Setting config pointer for osbd_op */
52 void osdb_setconfig(DBConfig *db_config);