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