e576bb2002-10-11Martin Nilsson /* || This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information. */
1b10db2002-10-08Martin Nilsson 
ab6aec1997-02-11Fredrik Hübinette (Hubbe) /* * SQL database connectivity for Pike * */ #ifndef PRECOMPILED_MYSQL_H #define PRECOMPILED_MYSQL_H /* * Includes */ #ifdef HAVE_CONFIG_H #include "config.h" #endif /* HAVE_CONFIG_H */
bfbae31998-09-01Fredrik Hübinette (Hubbe) #ifdef HAVE_WINSOCK_H #include <winsock.h> #endif
ab6aec1997-02-11Fredrik Hübinette (Hubbe) /* From the mysql-dist */
1caf511998-02-08Henrik Grubbström (Grubba) /* Workaround for versions prior to 3.20.0 not beeing protected against
ab6aec1997-02-11Fredrik Hübinette (Hubbe)  * multiple inclusion. */ #ifndef _mysql_h #ifdef HAVE_MYSQL_H #include <mysql.h> #else #ifdef HAVE_MYSQL_MYSQL_H #include <mysql/mysql.h> #else
a4a1722000-12-05Per Hedbor #error Need mysql.h header-file
ab6aec1997-02-11Fredrik Hübinette (Hubbe) #endif /* HAVE_MYSQL_MYSQL_H */ #endif /* HAVE_MYSQL_H */ #ifndef _mysql_h #define _mysql_h #endif #endif /*
0160732015-06-09Henrik Grubbström (Grubba)  * Macros
ab6aec1997-02-11Fredrik Hübinette (Hubbe)  */
0160732015-06-09Henrik Grubbström (Grubba) #define PIKE_MYSQL_FLAG_STORE_RESULT 1 #define PIKE_MYSQL_FLAG_TYPED_RESULT 2
ab6aec1997-02-11Fredrik Hübinette (Hubbe)  /* * Prototypes */ /* From result.c */
13b40b2016-03-26Henrik Grubbström (Grubba) struct object *make_mysql_result(MYSQL_RES *result, int flags);
ab6aec1997-02-11Fredrik Hübinette (Hubbe) void init_mysql_res_efuns(void); void init_mysql_res_programs(void); void exit_mysql_res(void);
08885f1997-04-20Henrik Grubbström (Grubba) void mysqlmod_parse_field(MYSQL_FIELD *field, int support_default);
ab6aec1997-02-11Fredrik Hübinette (Hubbe)  #endif /* PRECOMPILED_MYSQL_H */