Kannel: Open Source WAP and SMS gateway  svn-r5262
sqlbox_sql.c
Go to the documentation of this file.
1 #define sqlbox_sql_c
2 #include "sqlbox_sql.h"
3 
5 {
6  struct server_type *res = NULL;
7 
8 #ifdef HAVE_MSSQL
9  res = (struct server_type *)sqlbox_init_mssql(cfg);
10  if (res) {
11  return res;
12  }
13 #endif
14 #ifdef HAVE_MYSQL
15  res = (struct server_type *)sqlbox_init_mysql(cfg);
16  if (res) {
17  return res;
18  }
19 #endif
20 #ifdef HAVE_ORACLE
21  res = (struct server_type *)sqlbox_init_oracle(cfg);
22  if (res) {
23  return res;
24  }
25 #endif
26 #ifdef HAVE_PGSQL
27  res = (struct server_type *)sqlbox_init_pgsql(cfg);
28  if (res) {
29  return res;
30  }
31 #endif
32 #ifdef HAVE_SDB
33  res = (struct server_type *)sqlbox_init_sdb(cfg);
34  if (res) {
35  return res;
36  }
37 #endif
38 #ifdef HAVE_SQLITE
39  res = (struct server_type *)sqlbox_init_sqlite(cfg);
40  if (res) {
41  return res;
42  }
43 #endif
44 #ifdef HAVE_SQLITE3
45  res = (struct server_type *)sqlbox_init_sqlite3(cfg);
46  if (res) {
47  return res;
48  }
49 #endif
50  return res;
51 }
static Cfg * cfg
Definition: opensmppbox.c:95
Definition: cfg.c:164
struct server_type * sqlbox_init_sql(Cfg *cfg)
Definition: sqlbox_sql.c:4
See file LICENSE for details about the license agreement for using, modifying, copying or deriving work from this software.