added experimental multi thread support
[NeonServV5.git] / src / mysqlConn.h
index 19946bd5e515fb0a7eddb212c1fd7554b45548d1..3af13c26e7032d72c671fb4f3f25ea3487ac9f82 100644 (file)
@@ -1,5 +1,5 @@
 /* mysqlConn.h - NeonServ v5.3
- * Copyright (C) 2011  Philipp Kreil (pk910)
+ * Copyright (C) 2011-2012  Philipp Kreil (pk910)
  * 
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -23,8 +23,6 @@
 
 #define MYSQLMAXLEN 1024
 
-extern MYSQL *mysql_conn;
-
 void check_mysql();
 MYSQL_RES *mysql_use();
 void mysql_free();
@@ -32,6 +30,8 @@ void init_mysql(char *host, int port, char *user, char *pass, char *base);
 void free_mysql();
 void show_mysql_error();
 void printf_mysql_query(const char *text, ...) PRINTF_LIKE(1, 2);
+void printf_long_mysql_query(int len, const char *text, ...) PRINTF_LIKE(2, 3);
 char* escape_string(const char *str);
+MYSQL *get_mysql_conn();
 
 #endif
\ No newline at end of file