1 /* Copyright (C) 2009 Trend Micro Inc.
4 * This program is a free software; you can redistribute it
5 * and/or modify it under the terms of the GNU General Public
6 * License (version 2) as published by the FSF - Free Software
15 #include "config/dbd-config.h"
19 /* Read database config */
20 int OS_ReadDBConf(int test_config, const char *cfgfile, DBConfig *db_config) __attribute__((nonnull));
22 /* Inserts server info to the db */
23 int OS_Server_ReadInsertDB(const DBConfig *db_config) __attribute__((nonnull));
25 /* Insert rules in to the database */
26 int OS_InsertRulesDB(DBConfig *db_config) __attribute__((nonnull));
29 int OS_SelectMaxID(const DBConfig *db_config) __attribute__((nonnull));
31 /* Insert alerts in to the database */
32 int OS_Alert_InsertDB(const alert_data *al_data, DBConfig *db_config) __attribute__((nonnull));
34 /* Database inserting main function */
35 void OS_DBD(DBConfig *db_config) __attribute__((nonnull)) __attribute__((noreturn));
37 /* Set config pointer for osbd_op */
38 void osdb_setconfig(DBConfig *db_config);