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