summaryrefslogtreecommitdiffstats
path: root/include/zbxdb.h
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-07-03 13:27:18 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-07-03 13:27:18 +0000
commit47322761508080983273ad33f8edeb065d999ecc (patch)
tree0da1057db0231b9e503b6d80e156fd3df00f8b6c /include/zbxdb.h
parentc3fafe63847c8ae87162cd63b518660ad5681d2f (diff)
downloadzabbix-47322761508080983273ad33f8edeb065d999ecc.tar.gz
zabbix-47322761508080983273ad33f8edeb065d999ecc.tar.xz
zabbix-47322761508080983273ad33f8edeb065d999ecc.zip
- fixed ODBC monitoring (Eugene)
- added selfvalidation code for functions with variable argument list (Eugene) git-svn-id: svn://svn.zabbix.com/trunk@4419 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'include/zbxdb.h')
-rw-r--r--include/zbxdb.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/zbxdb.h b/include/zbxdb.h
index e5413632..f6afda79 100644
--- a/include/zbxdb.h
+++ b/include/zbxdb.h
@@ -117,7 +117,13 @@ void zbx_db_close(void);
void zbx_db_vacuum(void);
int zbx_db_vexecute(const char *fmt, va_list args);
-int zbx_db_execute(const char *fmt, ...);
+
+#ifdef HAVE___VA_ARGS__
+# define zbx_db_execute(fmt, ...) __zbx_zbx_db_execute(ZBX_CONST_STRING(fmt), ##__VA_ARGS__)
+#else
+# define zbx_db_execute __zbx_zbx_db_execute
+#endif /* HAVE___VA_ARGS__ */
+int __zbx_zbx_db_execute(const char *fmt, ...);
DB_RESULT zbx_db_vselect(const char *fmt, va_list args);
DB_RESULT zbx_db_select_n(char *query, int n);