Kannel: Open Source WAP and SMS gateway  svn-r5335
sqlbox_sdb.h
Go to the documentation of this file.
1 #include "gwlib/gwlib.h"
2 
3 #ifdef HAVE_SDB
4 
5 #define SQLBOX_OTHER_SELECT_QUERY "SELECT sql_id, momt, sender, receiver, udhdata, \
6 msgdata, time, smsc_id, service, account, id, sms_type, mclass, mwi, coding, \
7 compress, validity, deferred, dlr_mask, dlr_url, pid, alt_dcs, rpi, \
8 charset, boxc_id, binfo, meta_data FROM %S"
9 
10 #define SQLBOX_OTHER_INSERT_QUERY "INSERT INTO %S (sql_id, momt, sender, \
11 receiver, udhdata, msgdata, time, smsc_id, service, account, sms_type, \
12 mclass, mwi, coding, compress, validity, deferred, dlr_mask, dlr_url, \
13 pid, alt_dcs, rpi, charset, boxc_id, binfo, foreign_id ) VALUES ( \
14 NULL, %S, %S, %S, %S, %S, %S, %S, %S, %S, %S, %S, %S, %S, %S, %S, %S, \
15 %S, %S, %S, %S, %S, %S, %S, %S, %S, %S)"
16 
17 #define SQLBOX_OTHER_DELETE_QUERY "DELETE FROM %S WHERE sql_id = %S"
18 
19 #include "gw/msg.h"
20 #include "sqlbox_sql.h"
21 void sql_save_msg(Msg *msg, Octstr *momt );
22 Msg *sdb_fetch_msg();
23 void sql_shutdown();
24 struct server_type *sqlbox_init_sdb(Cfg *cfg);
25 extern Octstr *sqlbox_id;
26 #endif
static Cfg * cfg
Definition: opensmppbox.c:95
Definition: msg.h:79
Definition: cfg.c:164
Definition: octstr.c:118
Octstr * sqlbox_id
Definition: sqlbox.c:95
static XMLRPCDocument * msg
Definition: test_xmlrpc.c:86
void(* sql_save_msg)(Msg *, Octstr *)
Definition: sqlbox_sql.h:18
See file LICENSE for details about the license agreement for using, modifying, copying or deriving work from this software.