Kannel: Open Source WAP and SMS gateway  $Revision: 5037 $
wap-appl.h File Reference
#include "wap/wap.h"

Go to the source code of this file.

Functions

void wap_appl_init (Cfg *cfg)
 
void wap_appl_dispatch (WAPEvent *event)
 
void wap_appl_shutdown (void)
 
long wap_appl_get_load (void)
 
void wsp_http_url_map (Octstr *name, Octstr *url, Octstr *map_url, Octstr *send_msisdn_query, Octstr *send_msisdn_header, Octstr *send_msisdn_format, int accept_cookies)
 
void wsp_http_map_url_config (char *)
 
void wsp_http_map_url_config_device_home (char *)
 
void wsp_http_map_url_config_info (void)
 
void wsp_http_map_destroy (void)
 
void wsp_http_user_map (Octstr *name, Octstr *user, Octstr *pass, Octstr *msisdn)
 
void wsp_http_map_user_config_info (void)
 
void wsp_http_map_user_destroy (void)
 

Function Documentation

void wap_appl_dispatch ( WAPEvent event)

Definition at line 288 of file wap-appl.c.

References gw_assert(), gwlist_produce(), run_status, and running.

Referenced by main().

289 {
291  gwlist_produce(queue, event);
292 }
void gwlist_produce(List *list, void *item)
Definition: list.c:411
static enum @29 run_status
gw_assert(wtls_machine->packet_to_send!=NULL)
static List * queue
Definition: wap-appl.c:123
long wap_appl_get_load ( void  )

Definition at line 295 of file wap-appl.c.

References counter_value(), gw_assert(), gwlist_len(), run_status, and running.

Referenced by main().

296 {
299 }
static Counter * fetches
Definition: wap-appl.c:135
long gwlist_len(List *list)
Definition: list.c:166
static enum @29 run_status
unsigned long counter_value(Counter *counter)
Definition: counter.c:145
gw_assert(wtls_machine->packet_to_send!=NULL)
static List * queue
Definition: wap-appl.c:123
void wap_appl_init ( Cfg cfg)

Definition at line 249 of file wap-appl.c.

References counter_create(), gw_assert(), gwlist_add_producer(), gwlist_create, gwthread_create, have_ppg, http_caller_create(), limbo, main_thread(), return_replies_thread(), run_status, running, and wml_charsets().

Referenced by main().

250 {
252  queue = gwlist_create();
260 
261  if (cfg != NULL)
262  have_ppg = 1;
263  else
264  have_ppg = 0;
265 }
static void return_replies_thread(void *)
Definition: wap-appl.c:1066
static Counter * fetches
Definition: wap-appl.c:135
List * wml_charsets(void)
Definition: xml_shared.c:262
static void main_thread(void *)
Definition: wap-appl.c:314
static int have_ppg
Definition: wap-appl.c:176
Counter * counter_create(void)
Definition: counter.c:94
static enum @29 run_status
#define gwthread_create(func, arg)
Definition: gwthread.h:90
gw_assert(wtls_machine->packet_to_send!=NULL)
HTTPCaller * http_caller_create(void)
Definition: http.c:897
#define gwlist_create()
Definition: list.h:136
static HTTPCaller * caller
Definition: wap-appl.c:129
static List * queue
Definition: wap-appl.c:123
static List * charsets
Definition: wap-appl.c:141
void gwlist_add_producer(List *list)
Definition: list.c:383
void wap_appl_shutdown ( void  )

Definition at line 268 of file wap-appl.c.

References counter_destroy(), gw_assert(), gwlist_destroy(), gwlist_remove_producer(), gwthread_join_every(), http_caller_destroy(), http_caller_signal_shutdown(), main_thread(), octstr_destroy_item(), return_replies_thread(), run_status, running, terminating, wap_event_destroy_item(), wap_map_destroy(), and wap_map_user_destroy().

Referenced by main().

269 {
272 
275 
278 
279  wap_map_destroy();
285 }
static void return_replies_thread(void *)
Definition: wap-appl.c:1066
static Counter * fetches
Definition: wap-appl.c:135
void http_caller_signal_shutdown(HTTPCaller *caller)
Definition: http.c:913
void counter_destroy(Counter *counter)
Definition: counter.c:110
static void main_thread(void *)
Definition: wap-appl.c:314
void gwthread_join_every(gwthread_func_t *func)
void gwlist_remove_producer(List *list)
Definition: list.c:401
void wap_event_destroy_item(void *event)
Definition: wap_events.c:130
static enum @29 run_status
void wap_map_user_destroy(void)
Definition: wap-maps.c:174
void octstr_destroy_item(void *os)
Definition: octstr.c:334
gw_assert(wtls_machine->packet_to_send!=NULL)
void wap_map_destroy(void)
Definition: wap-maps.c:152
void http_caller_destroy(HTTPCaller *caller)
Definition: http.c:907
static HTTPCaller * caller
Definition: wap-appl.c:129
static List * queue
Definition: wap-appl.c:123
static List * charsets
Definition: wap-appl.c:141
void gwlist_destroy(List *list, gwlist_item_destructor_t *destructor)
Definition: list.c:145
void wsp_http_map_destroy ( void  )
void wsp_http_map_url_config ( char *  )
void wsp_http_map_url_config_device_home ( char *  )
void wsp_http_map_url_config_info ( void  )
void wsp_http_map_user_config_info ( void  )
void wsp_http_map_user_destroy ( void  )
void wsp_http_url_map ( Octstr name,
Octstr url,
Octstr map_url,
Octstr send_msisdn_query,
Octstr send_msisdn_header,
Octstr send_msisdn_format,
int  accept_cookies 
)
void wsp_http_user_map ( Octstr name,
Octstr user,
Octstr pass,
Octstr msisdn 
)
See file LICENSE for details about the license agreement for using, modifying, copying or deriving work from this software.