Kannel: Open Source WAP and SMS gateway
svn-r5336
|
Go to the source code of this file.
Data Structures | |
struct | url_map_struct |
struct | user_map_struct |
Functions | |
void | wap_map_add_url (Octstr *name, Octstr *url, Octstr *map_url, Octstr *send_msisdn_query, Octstr *send_msisdn_header, Octstr *send_msisdn_format, int accept_cookies) |
static void | wap_user_map_destroy (void *i) |
void | wap_map_add_user (Octstr *name, Octstr *user, Octstr *pass, Octstr *msisdn) |
void | wap_map_destroy (void) |
void | wap_map_user_destroy (void) |
void | wap_map_url_config (char *s) |
void | wap_map_url_config_device_home (char *to) |
void | wap_map_url (Octstr **osp, Octstr **send_msisdn_query, Octstr **send_msisdn_header, Octstr **send_msisdn_format, int *accept_cookies) |
int | wap_map_user (Octstr **msisdn, Octstr *user, Octstr *pass) |
Variables | |
static List * | url_map = NULL |
static Dict * | user_map = NULL |
void wap_map_add_url | ( | Octstr * | name, |
Octstr * | url, | ||
Octstr * | map_url, | ||
Octstr * | send_msisdn_query, | ||
Octstr * | send_msisdn_header, | ||
Octstr * | send_msisdn_format, | ||
int | accept_cookies | ||
) |
Definition at line 101 of file wap-maps.c.
References url_map_struct::accept_cookies, gwlist_append(), gwlist_create, url_map_struct::map_url, url_map_struct::name, name, url_map_struct::send_msisdn_format, url_map_struct::send_msisdn_header, url_map_struct::send_msisdn_query, url_map_struct::url, url, and url_map.
Referenced by config_reload(), wap_map_url_config(), and wap_map_url_config_device_home().
Definition at line 136 of file wap-maps.c.
References dict_create(), dict_put(), user_map_struct::msisdn, user_map_struct::name, name, user_map_struct::pass, user_map_struct::user, user_map, and wap_user_map_destroy().
Referenced by config_reload().
void wap_map_destroy | ( | void | ) |
Definition at line 152 of file wap-maps.c.
References gwlist_destroy(), gwlist_get(), gwlist_len(), url_map_struct::map_url, url_map_struct::name, octstr_destroy(), url_map_struct::send_msisdn_format, url_map_struct::send_msisdn_header, url_map_struct::send_msisdn_query, url_map_struct::url, and url_map.
Referenced by config_reload(), main(), and wap_appl_shutdown().
void wap_map_url | ( | Octstr ** | osp, |
Octstr ** | send_msisdn_query, | ||
Octstr ** | send_msisdn_header, | ||
Octstr ** | send_msisdn_format, | ||
int * | accept_cookies | ||
) |
Definition at line 208 of file wap-maps.c.
References url_map_struct::accept_cookies, debug(), gwlist_get(), gwlist_len(), url_map_struct::map_url, octstr_append(), octstr_case_compare(), octstr_copy, octstr_delete(), octstr_destroy(), octstr_duplicate, octstr_get_char(), octstr_get_cstr, octstr_len(), url_map_struct::send_msisdn_format, url_map_struct::send_msisdn_header, url_map_struct::send_msisdn_query, url_map_struct::url, and url_map.
Referenced by start_fetch().
void wap_map_url_config | ( | char * | s | ) |
Definition at line 185 of file wap-maps.c.
References octstr_create, octstr_imm(), and wap_map_add_url().
Referenced by config_reload().
void wap_map_url_config_device_home | ( | char * | to | ) |
Definition at line 201 of file wap-maps.c.
References octstr_create, octstr_imm(), and wap_map_add_url().
Referenced by config_reload().
Definition at line 268 of file wap-maps.c.
References dict_get(), user_map_struct::msisdn, octstr_compare(), octstr_duplicate, user_map_struct::pass, user_map_struct::user, and user_map.
void wap_map_user_destroy | ( | void | ) |
Definition at line 174 of file wap-maps.c.
References dict_destroy(), and user_map.
Referenced by config_reload(), main(), and wap_appl_shutdown().
|
static |
Definition at line 124 of file wap-maps.c.
References user_map_struct::msisdn, user_map_struct::name, octstr_destroy(), user_map_struct::pass, and user_map_struct::user.
Referenced by wap_map_add_user().
|
static |
Definition at line 93 of file wap-maps.c.
Referenced by wap_map_add_url(), wap_map_destroy(), and wap_map_url().
|
static |
Definition at line 94 of file wap-maps.c.
Referenced by wap_map_add_user(), wap_map_user(), and wap_map_user_destroy().