summaryrefslogtreecommitdiffstats
path: root/include/db.h
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2003-12-23 21:06:12 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2003-12-23 21:06:12 +0000
commitfd7188f71af0796d782bcc9dffacdd5c8d29f009 (patch)
tree8ef67765bb611ab78cef77cca64cf9789ff20133 /include/db.h
parent50606d595edf27f5c0f096768f8c0d128ba93dab (diff)
- processing of DB stopped situations for MySQL (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@1096 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'include/db.h')
-rw-r--r--include/db.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/db.h b/include/db.h
index 7173cf5d..d9e1a297 100644
--- a/include/db.h
+++ b/include/db.h
@@ -28,12 +28,20 @@
#ifdef HAVE_MYSQL
#include "mysql.h"
+ #include "errmsg.h"
+ #include "mysqld_error.h"
#endif
#ifdef HAVE_PGSQL
#include "libpq-fe.h"
#endif
+extern char *CONFIG_DBHOST;
+extern char *CONFIG_DBNAME;
+extern char *CONFIG_DBUSER;
+extern char *CONFIG_DBPASSWORD;
+extern char *CONFIG_DBSOCKET;
+
#define DB_HOST struct host_type
#define DB_ITEM struct item_type
#define DB_TRIGGER struct trigger_type
@@ -167,7 +175,7 @@ DB_ALERT
int retries;
};
-void DBconnect(char *dbhost, char *dbname, char *dbuser, char *dbpassword, char *dbsocket);
+void DBconnect(void);
void DBclose(void);
void DBvacuum(void);