X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2FmysqlConn.h;h=3af13c26e7032d72c671fb4f3f25ea3487ac9f82;hb=55831bf424312a6908ca07a904f288fba0919a9a;hp=b74c1dca852bed277101189b4610272d635652c6;hpb=c575e458c6257e75b97884847143b20965a5dfda;p=NeonServV5.git diff --git a/src/mysqlConn.h b/src/mysqlConn.h index b74c1dc..3af13c2 100644 --- a/src/mysqlConn.h +++ b/src/mysqlConn.h @@ -1,5 +1,5 @@ -/* mysqlConn.h - NeonServ v5.2 - * Copyright (C) 2011 Philipp Kreil (pk910) +/* mysqlConn.h - NeonServ v5.3 + * 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