tried to reorder the program structure and build process
[NeonServV5.git] / src / mysqlConn.h
diff --git a/src/mysqlConn.h b/src/mysqlConn.h
new file mode 100644 (file)
index 0000000..4ed6655
--- /dev/null
@@ -0,0 +1,21 @@
+#ifndef _MySQLConn_h
+#define _MySQLConn_h
+
+#include "main.h"
+#include <mysql.h>
+#include <mysql/errmsg.h>
+
+#define MYSQLMAXLEN 1024
+
+extern MYSQL *mysql_conn;
+
+void check_mysql();
+MYSQL_RES *mysql_use();
+void mysql_free();
+void init_mysql();
+void free_mysql();
+void show_mysql_error();
+void printf_mysql_query(const char *text, ...) PRINTF_LIKE(1, 2);
+char* escape_string(const char *str);
+
+#endif
\ No newline at end of file