summaryrefslogtreecommitdiff
path: root/muggle-plugin/mg_tools.h
diff options
context:
space:
mode:
authorLarsAC <LarsAC@e10066b5-e1e2-0310-b819-94efdf66514b>2004-02-01 18:22:52 +0000
committerLarsAC <LarsAC@e10066b5-e1e2-0310-b819-94efdf66514b>2004-02-01 18:22:52 +0000
commit9ffff4626dbb713e2fa6e025868928393ebf2ae7 (patch)
treeebe95d53808375beaed9f2c4ea2d17e7e8cb01de /muggle-plugin/mg_tools.h
parent717ec9a2d6e43a61ccff152a8d887fdb8e8f303e (diff)
downloadvdr-plugin-muggle-9ffff4626dbb713e2fa6e025868928393ebf2ae7.tar.gz
vdr-plugin-muggle-9ffff4626dbb713e2fa6e025868928393ebf2ae7.tar.bz2
Initial revision
git-svn-id: https://vdr-muggle.svn.sourceforge.net/svnroot/vdr-muggle/trunk@3 e10066b5-e1e2-0310-b819-94efdf66514b
Diffstat (limited to 'muggle-plugin/mg_tools.h')
-rw-r--r--muggle-plugin/mg_tools.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/muggle-plugin/mg_tools.h b/muggle-plugin/mg_tools.h
new file mode 100644
index 0000000..68c8104
--- /dev/null
+++ b/muggle-plugin/mg_tools.h
@@ -0,0 +1,31 @@
+/*******************************************************************/
+/*! \file muggle_tools.h
+ * \brief A few util functions for standalone and plugin messaging
+ * for the vdr muggle plugindatabase
+ ********************************************************************
+ * \version $Revision: 1.1 $
+ * \date $Date: 2004/02/01 18:22:53 $
+ * \author Ralf Klueber, Lars von Wedel, Andreas Kellner
+ * \author file owner: $Author: LarsAC $
+ *
+ */
+/*******************************************************************/
+/* makes sur we dont use parse the same declarations twice */
+#ifndef _MUGGLE_TOOLS_H
+#define _MUGGLE_TOOLS_H
+
+#include "mysql/mysql.h"
+
+#define STANDALONE 1
+
+void mgSetDebugLevel(int new_level);
+void mgDebug(int level, const char *fmt, ...);
+void mgDebug( const char *fmt, ... );
+void mgWarning(const char *fmt, ...);
+void mgError(const char *fmt, ...);
+
+
+MYSQL_RES* mgSqlReadQuery(MYSQL *db, const char *fmt, ...);
+void mgSqlWriteQuery(MYSQL *db, const char *fmt, ...);
+
+#endif