51c0af46c421a0208b33d37f56960ff68661493a
[ossec-hids.git] / src / config / dbd-config.h
1 /* @(#) $Id$ */
2
3 /* Copyright (C) 2009 Trend Micro Inc.
4  * All right reserved.
5  *
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
9  * Foundation
10  */
11
12  
13
14 #ifndef _DBDCONFIG__H
15 #define _DBDONFIG__H
16
17
18 /* Database config structure */
19 typedef struct _DBConfig
20 {
21     unsigned int db_type;
22     unsigned int alert_id;
23     unsigned int server_id;
24     unsigned int error_count;
25     unsigned int maxreconnect;
26     unsigned int port;
27
28     char *host;
29     char *user;
30     char *pass;
31     char *db;
32     char *sock;
33     
34     void *conn;
35     void *location_hash;
36
37     char **includes;
38 }DBConfig;
39
40
41 #define MYSQLDB 0x002
42 #define POSTGDB 0x004
43
44 #endif