Kannel: Open Source WAP and SMS gateway
svn-r5336
|
#include "gwlib/gwlib.h"
#include "wsp_caps.h"
#include "wap_events.h"
#include "wtls_pdu.h"
#include "wap_events.def"
Go to the source code of this file.
Macros | |
#define | WAPEVENT(name, prettyname, fields) |
#define | OCTSTR(name) p->name = NULL; |
#define | OPTIONAL_OCTSTR(name) p->name = NULL; |
#define | INTEGER(name) p->name = 0; |
#define | WTLSPDUS(name) p->name = NULL; |
#define | HTTPHEADER(name) p->name = NULL; |
#define | ADDRTUPLE(name) p->name = NULL; |
#define | CAPABILITIES(name) p->name = NULL; |
#define | WAPEVENT(name, prettyname, fields) |
#define | OCTSTR(name) octstr_destroy(p->name); |
#define | OPTIONAL_OCTSTR(name) octstr_destroy(p->name); |
#define | INTEGER(name) p->name = 0; |
#define | HTTPHEADER(name) http_destroy_headers(p->name); |
#define | ADDRTUPLE(name) wap_addr_tuple_destroy(p->name); |
#define | CAPABILITIES(name) wsp_cap_destroy_list(p->name); |
#define | WAPEVENT(name, prettyname, fields) |
#define | OCTSTR(name) p->name = octstr_duplicate(q->name); |
#define | OPTIONAL_OCTSTR(name) p->name = octstr_duplicate(q->name); |
#define | INTEGER(name) p->name = q->name; |
#define | WTLSPDUS(name) debug("wap.events",0,"You need to implement wtls_pdulist_duplicate!"); |
#define | HTTPHEADER(name) p->name = http_header_duplicate(q->name); |
#define | ADDRTUPLE(name) p->name = wap_addr_tuple_duplicate(q->name); |
#define | CAPABILITIES(name) p->name = wsp_cap_duplicate_list(q->name); |
#define | WAPEVENT(name, prettyname, fields) case name: return prettyname; |
#define | WAPEVENT(name, prettyname, fields) |
#define | OCTSTR(name) |
#define | OPTIONAL_OCTSTR(name) |
#define | INTEGER(name) debug("wap.event", 0, " %s = %ld", #name, p->name); |
#define | WTLSPDUS(name) debug("wap.event",0,"You need to implement wtls_payloadlist_dump!"); |
#define | HTTPHEADER(name) |
#define | ADDRTUPLE(name) wap_addr_tuple_dump(p->name); |
#define | CAPABILITIES(name) wsp_cap_dump_list(p->name); |
#define | WAPEVENT(name, prettyname, fields) |
#define | OCTSTR(name) |
#define | OPTIONAL_OCTSTR(name) gw_assert(p->name == NULL || octstr_len(p->name) >= 0); |
#define | INTEGER(name) |
#define | WTLSPDUS(name) |
#define | HTTPHEADER(name) |
#define | ADDRTUPLE(name) gw_assert(p->name != NULL); |
#define | CAPABILITIES(name) |
Functions | |
WAPEvent * | wap_event_create_real (WAPEventName type, const char *file, long line, const char *func) |
void | wap_event_destroy (WAPEvent *event) |
void | wap_event_destroy_item (void *event) |
WAPEvent * | wap_event_duplicate (WAPEvent *event) |
const char * | wap_event_name (WAPEventName type) |
void | wap_event_dump (WAPEvent *event) |
void | wap_event_assert (WAPEvent *event) |
#define ADDRTUPLE | ( | name | ) | wap_addr_tuple_destroy(p->name); |
#define ADDRTUPLE | ( | name | ) | p->name = wap_addr_tuple_duplicate(q->name); |
#define ADDRTUPLE | ( | name | ) | wap_addr_tuple_dump(p->name); |
#define CAPABILITIES | ( | name | ) | wsp_cap_destroy_list(p->name); |
#define CAPABILITIES | ( | name | ) | p->name = wsp_cap_duplicate_list(q->name); |
#define CAPABILITIES | ( | name | ) | wsp_cap_dump_list(p->name); |
#define CAPABILITIES | ( | name | ) |
#define HTTPHEADER | ( | name | ) | http_destroy_headers(p->name); |
#define HTTPHEADER | ( | name | ) | p->name = http_header_duplicate(q->name); |
#define HTTPHEADER | ( | name | ) |
#define HTTPHEADER | ( | name | ) |
#define INTEGER | ( | name | ) |
#define OCTSTR | ( | name | ) | octstr_destroy(p->name); |
#define OCTSTR | ( | name | ) | p->name = octstr_duplicate(q->name); |
#define OCTSTR | ( | name | ) |
#define OCTSTR | ( | name | ) |
#define OPTIONAL_OCTSTR | ( | name | ) | octstr_destroy(p->name); |
#define OPTIONAL_OCTSTR | ( | name | ) | p->name = octstr_duplicate(q->name); |
#define OPTIONAL_OCTSTR | ( | name | ) |
#define OPTIONAL_OCTSTR | ( | name | ) | gw_assert(p->name == NULL || octstr_len(p->name) >= 0); |
#define WAPEVENT | ( | name, | |
prettyname, | |||
fields | |||
) |
#define WAPEVENT | ( | name, | |
prettyname, | |||
fields | |||
) | case name: return prettyname; |
#define WTLSPDUS | ( | name | ) |
void wap_event_assert | ( | WAPEvent * | event | ) |
Definition at line 220 of file wap_events.c.
References debug(), gw_assert(), and WAPEvent::type.
Referenced by main_thread(), parse_document(), push_client_event_handle(), unpack_wdp_datagram_real(), wap_event_destroy(), wap_event_duplicate(), wsp_session_dispatch_event(), wsp_unit_dispatch_event(), and wtp_unpack_wdp_datagram().
WAPEvent* wap_event_create_real | ( | WAPEventName | type, |
const char * | file, | ||
long | line, | ||
const char * | func | ||
) |
Definition at line 71 of file wap_events.c.
References file, gw_assert(), panic, WAPEvent::type, and type.
void wap_event_destroy | ( | WAPEvent * | event | ) |
Definition at line 102 of file wap_events.c.
References panic, WAPEvent::type, and wap_event_assert().
Referenced by abort_elapsed(), abort_methods(), abort_pushes(), continue_sar_result(), dispatch_datagram(), gwtimer_destroy(), gwtimer_start(), handle_init_event(), handle_internal_event(), handle_ota_event(), handle_push_message(), handle_session_event(), main(), main_thread(), pap_compile(), process_sar_transaction(), push_client_event_handle(), push_client_machine_find_or_create(), receive_push_reply(), release_holding_methods(), resp_event_handle(), return_replies_thread(), send_push_response(), start_fetch(), tell_fatal_error(), unpack_datagram(), unpack_wdp_datagram_real(), wap_dispatch_datagram(), wap_event_destroy_item(), wdp_event_dump(), wtp_event_dump(), and wtp_unpack_wdp_datagram().
void wap_event_destroy_item | ( | void * | event | ) |
Definition at line 130 of file wap_events.c.
References wap_event_destroy().
Referenced by wap_appl_shutdown(), wap_push_ota_shutdown(), wap_push_ppg_shutdown(), wsp_push_client_shutdown(), wsp_session_shutdown(), wsp_unit_shutdown(), wtp_initiator_shutdown(), and wtp_resp_shutdown().
void wap_event_dump | ( | WAPEvent * | event | ) |
Definition at line 181 of file wap_events.c.
References debug(), and wap_event_name().
Referenced by add_push_flag(), cant_handle_event(), dispatch_datagram(), find_session_machine(), handle_init_event(), handle_internal_event(), handle_method_event(), handle_ota_event(), handle_push_event(), init_machine_find_or_create(), main(), parse_pap_value(), push_client_event_handle(), push_client_machine_find_or_create(), resp_event_handle(), resp_machine_find_or_create(), truncated_datagram(), unpack_wdp_datagram_real(), wap_dispatch_datagram(), wdp_event_dump(), wtp_event_dump(), and wtp_event_is_for_responder().
Definition at line 135 of file wap_events.c.
References panic, WAPEvent::type, and wap_event_assert().
Referenced by assembly_sar_event(), begin_sar_result(), continue_sar_result(), elapse_timer(), process_sar_transaction(), and wtp_unpack_wdp_datagram().
const char* wap_event_name | ( | WAPEventName | type | ) |
Definition at line 169 of file wap_events.c.
Referenced by abort_elapsed(), elapse_timer(), find_session_machine(), handle_init_event(), handle_method_event(), handle_push_event(), handle_session_event(), main_thread(), push_client_event_handle(), push_client_machine_find_or_create(), resp_event_handle(), wap_event_dump(), and wtp_event_dump().