Kannel: Open Source WAP and SMS gateway
svn-r5336
|
Go to the source code of this file.
Data Structures | |
struct | meta_data |
Functions | |
static struct meta_data * | meta_data_create (void) |
static void | meta_data_destroy (struct meta_data *meta) |
static struct meta_data * | meta_data_unpack (const Octstr *data) |
static int | meta_data_pack (struct meta_data *mdata, Octstr *data) |
Dict * | meta_data_get_values (const Octstr *data, const char *group) |
int | meta_data_set_values (Octstr *data, const Dict *dict, const char *group, int replace) |
int | meta_data_set_value (Octstr *data, const char *group, const Octstr *key, const Octstr *value, int replace) |
Octstr * | meta_data_get_value (Octstr *data, const char *group, const Octstr *key) |
int | meta_data_remove_value (Octstr *data, const char *group, const Octstr *key) |
Octstr * | meta_data_merge (const Octstr *data, const Octstr *new_data, int replace) |
|
static |
Definition at line 76 of file meta_data.c.
References meta_data::group, meta_data::next, and meta_data::values.
Referenced by meta_data_merge(), meta_data_set_value(), and meta_data_set_values().
|
static |
Definition at line 89 of file meta_data.c.
References dict_destroy(), meta_data::group, meta_data::next, octstr_destroy(), and meta_data::values.
Referenced by meta_data_get_value(), meta_data_get_values(), meta_data_merge(), meta_data_remove_value(), meta_data_set_value(), meta_data_set_values(), and meta_data_unpack().
Get value for a given group and key.
Definition at line 368 of file meta_data.c.
References dict_remove(), meta_data::group, meta_data_destroy(), meta_data_unpack(), meta_data::next, octstr_str_case_compare(), and meta_data::values.
Referenced by msg_to_pdu(), and urltrans_fill_escape_codes().
Get Dictionary with all values for this group.
Definition at line 248 of file meta_data.c.
References meta_data::group, meta_data_destroy(), meta_data_unpack(), meta_data::next, octstr_str_case_compare(), and meta_data::values.
Referenced by msg_to_pdu().
Merge two meta data strings into one
Definition at line 422 of file meta_data.c.
References dict_create(), dict_get(), dict_keys(), dict_put(), dict_put_once(), error(), meta_data::group, gwlist_consume(), gwlist_destroy(), meta_data_create(), meta_data_destroy(), meta_data_pack(), meta_data_unpack(), meta_data::next, octstr_compare(), octstr_create, octstr_destroy(), octstr_destroy_item(), octstr_duplicate, octstr_get_cstr, octstr_len(), and meta_data::values.
Definition at line 224 of file meta_data.c.
References dict_get(), dict_keys(), meta_data::group, gwlist_destroy(), gwlist_extract_first(), meta_data::next, octstr_delete(), octstr_destroy(), octstr_destroy_item(), octstr_format_append(), octstr_len(), and meta_data::values.
Referenced by meta_data_merge(), meta_data_remove_value(), meta_data_set_value(), and meta_data_set_values().
Remove value for a given group and key.
Definition at line 392 of file meta_data.c.
References dict_put(), meta_data::group, meta_data_destroy(), meta_data_pack(), meta_data_unpack(), meta_data::next, octstr_str_case_compare(), and meta_data::values.
int meta_data_set_value | ( | Octstr * | data, |
const char * | group, | ||
const Octstr * | key, | ||
const Octstr * | value, | ||
int | replace | ||
) |
Set or replace value for a given group and key.
Definition at line 324 of file meta_data.c.
References dict_create(), dict_get(), dict_put(), meta_data::group, meta_data_create(), meta_data_destroy(), meta_data_pack(), meta_data_unpack(), meta_data::next, octstr_create, octstr_destroy_item(), octstr_duplicate, octstr_str_case_compare(), and meta_data::values.
Referenced by create_dlr_from_msg(), dlr_find(), generic_receive_sms(), handle_dlr(), and kannel_receive_sms().
Replace Dictionary for the given group.
Definition at line 273 of file meta_data.c.
References dict_destroy(), dict_get(), dict_keys(), dict_put_once(), meta_data::group, gwlist_destroy(), gwlist_extract_first(), meta_data_create(), meta_data_destroy(), meta_data_pack(), meta_data_unpack(), meta_data::next, octstr_create, octstr_destroy(), octstr_destroy_item(), octstr_duplicate, octstr_str_case_compare(), and meta_data::values.
Referenced by data_sm_to_msg(), handle_pdu(), and pdu_to_msg().
Definition at line 107 of file meta_data.c.
References debug(), dict_create(), dict_put(), error(), meta_data_destroy(), octstr_create, octstr_create_from_data, octstr_destroy(), octstr_destroy_item(), octstr_get_cstr, octstr_len(), octstr_url_decode(), start, and type.
Referenced by meta_data_get_value(), meta_data_get_values(), meta_data_merge(), meta_data_remove_value(), meta_data_set_value(), and meta_data_set_values().