Kannel: Open Source WAP and SMS gateway
svn-r5336
|
#include "gw-config.h"
#include "gwlib/gwlib.h"
#include "msg.h"
#include "bearerbox.h"
#include "bb_store.h"
Go to the source code of this file.
Data Structures | |
struct | status |
Functions | |
int | store_init (Cfg *cfg, const Octstr *type, const Octstr *fname, long dump_freq, void *pack_func, void *unpack_func) |
static void | status_cb (Msg *msg, void *d) |
Octstr * | store_status (int status_type) |
Variables | |
long(* | store_messages )(void) |
int(* | store_save )(Msg *msg) |
int(* | store_save_ack )(Msg *msg, ack_status_t status) |
int(* | store_load )(void(*receive_msg)(Msg *)) |
int(* | store_dump )(void) |
void(* | store_shutdown )(void) |
Octstr *(* | store_msg_pack )(Msg *msg) |
Msg *(* | store_msg_unpack )(Octstr *os) |
void(* | store_for_each_message )(void(*callback_fn)(Msg *msg, void *data), void *data) |
|
static |
Definition at line 111 of file bb_store.c.
References status::data, status::format, gw_gmtime(), gw_localtime(), mo, msg, mt_push, mt_reply, octstr_format_append(), octstr_get_cstr, octstr_imm(), report_mo, report_mt, status::status, UUID_STR_LEN, and uuid_unparse().
Referenced by store_status().
int store_init | ( | Cfg * | cfg, |
const Octstr * | type, | ||
const Octstr * | fname, | ||
long | dump_freq, | ||
void * | pack_func, | ||
void * | unpack_func | ||
) |
Definition at line 82 of file bb_store.c.
References cfg, error(), octstr_str_compare(), store_file_init(), store_msg_pack, store_msg_unpack, store_spool_init(), and type.
Referenced by init_bearerbox(), init_smppbox(), and main().
Octstr* store_status | ( | int | status_type | ) |
Definition at line 148 of file bb_store.c.
References BBSTATUS_HTML, BBSTATUS_XML, status::data, format(), octstr_append_cstr(), octstr_create, status_cb(), and store_for_each_message.
Referenced by httpd_store_status().
int(* store_dump) (void) |
Definition at line 75 of file bb_store.c.
Referenced by store_dumper(), store_file_init(), and store_spool_init().
Definition at line 79 of file bb_store.c.
Referenced by store_file_init(), store_spool_init(), and store_status().
int(* store_load) (void(*receive_msg)(Msg *)) |
Definition at line 74 of file bb_store.c.
Referenced by main(), store_file_init(), and store_spool_init().
long(* store_messages) (void) |
Definition at line 71 of file bb_store.c.
Referenced by bb_print_status(), store_file_init(), and store_spool_init().
Definition at line 77 of file bb_store.c.
Referenced by dlr_spool_add(), store_init(), store_spool_save(), and write_msg().
Definition at line 78 of file bb_store.c.
Referenced by dispatch(), dlr_spool_get(), read_msg(), status_cb(), and store_init().
Definition at line 72 of file bb_store.c.
Referenced by bb_remove_message(), bb_smscconn_receive(), boxc_receiver(), concat_handling_check_and_handle(), concat_handling_clear_old_parts(), deliver_sms_to_queue(), route_incoming_to_smsc(), store_file_init(), store_file_save_ack(), and store_spool_init().
int(* store_save_ack) (Msg *msg, ack_status_t status) |
Definition at line 73 of file bb_store.c.
Referenced by bb_smscconn_receive_internal(), bb_smscconn_send_failed(), bb_smscconn_sent(), concat_handling_check_and_handle(), deliver_sms_to_queue(), destroy_concatMsg(), route_incoming_to_smsc(), store_file_init(), and store_spool_init().
void(* store_shutdown) (void) |
Definition at line 76 of file bb_store.c.
Referenced by main(), store_file_init(), and store_spool_init().