|
Kannel: Open Source WAP and SMS gateway
svn-r5336
|
#include "gwlib/gwlib.h"Go to the source code of this file.
Data Structures | |
| struct | context |
Functions | |
| ParseContext * | parse_context_create (Octstr *str) |
| void | parse_context_destroy (ParseContext *context) |
| int | parse_error (ParseContext *context) |
| void | parse_clear_error (ParseContext *context) |
| void | parse_set_error (ParseContext *context) |
| int | parse_limit (ParseContext *context, long length) |
| int | parse_pop_limit (ParseContext *context) |
| long | parse_octets_left (ParseContext *context) |
| int | parse_skip (ParseContext *context, long count) |
| void | parse_skip_to_limit (ParseContext *context) |
| int | parse_skip_to (ParseContext *context, long pos) |
| int | parse_peek_char (ParseContext *context) |
| int | parse_get_char (ParseContext *context) |
| Octstr * | parse_get_octets (ParseContext *context, long length) |
| unsigned long | parse_get_uintvar (ParseContext *context) |
| Octstr * | parse_get_nul_string (ParseContext *context) |
| Octstr * | parse_get_line (ParseContext *context) |
| Octstr * | parse_get_seperated_block (ParseContext *context, Octstr *seperator) |
| Octstr * | parse_get_rest (ParseContext *context) |
| void parse_clear_error | ( | ParseContext * | context | ) |
Definition at line 107 of file parse.c.
References context::error, and gw_assert().
Referenced by unpack_range_value().
| ParseContext* parse_context_create | ( | Octstr * | str | ) |
Definition at line 74 of file parse.c.
References context::data, context::error, context::limit, context::limit_stack, octstr_len(), and context::pos.
Referenced by mime_decompile(), mime_entity_body(), mime_something_to_entity(), radius_pdu_unpack(), and wsp_headers_unpack().
| void parse_context_destroy | ( | ParseContext * | context | ) |
Definition at line 88 of file parse.c.
References gw_assert(), gwlist_destroy(), gwlist_extract_first(), gwlist_len(), and context::limit_stack.
Referenced by mime_entity_body(), mime_something_to_entity(), radius_pdu_unpack(), and wsp_headers_unpack().
| int parse_error | ( | ParseContext * | context | ) |
Definition at line 100 of file parse.c.
References context::error, and gw_assert().
Referenced by parse_client_specifier(), proxy_unpack_credentials(), receive_push_reply(), unpack_accept_language_general_form(), unpack_broken_parameters(), unpack_cache_directive(), unpack_credentials(), unpack_field_name(), unpack_multi_octet_integer(), unpack_parameter(), unpack_range_value(), unpack_warning_value(), wsp_headers_unpack(), wsp_unpack_accept_charset_general_form(), wsp_unpack_accept_general_form(), wsp_unpack_all_parameters(), wsp_unpack_app_header(), and wsp_unpack_well_known_field().
| int parse_get_char | ( | ParseContext * | context | ) |
Definition at line 218 of file parse.c.
References context::data, context::error, gw_assert(), context::limit, octstr_get_char(), and context::pos.
Referenced by radius_pdu_unpack(), unpack_disposition(), unpack_encoding_version(), unpack_multi_octet_integer(), unpack_q_value(), unpack_range_value(), unpack_retry_after(), wsp_field_value(), wsp_headers_unpack(), wsp_secondary_field_value(), wsp_unpack_date_value(), and wsp_unpack_integer_value().
| Octstr* parse_get_line | ( | ParseContext * | context | ) |
Definition at line 282 of file parse.c.
References context::data, context::error, gw_assert(), context::limit, octstr_copy, octstr_search_char(), octstr_strip_crlfs(), and context::pos.
Referenced by mime_something_to_entity(), and read_mime_headers().
| Octstr* parse_get_nul_string | ( | ParseContext * | context | ) |
Definition at line 263 of file parse.c.
References context::data, context::error, gw_assert(), context::limit, octstr_copy, octstr_search_char(), and context::pos.
Referenced by proxy_unpack_credentials(), unpack_accept_language_general_form(), unpack_cache_directive(), unpack_challenge(), unpack_credentials(), unpack_field_name(), unpack_parameter(), unpack_warning_value(), wsp_unpack_accept_charset_general_form(), wsp_unpack_accept_general_form(), wsp_unpack_app_header(), and wsp_unpack_well_known_field().
| Octstr* parse_get_octets | ( | ParseContext * | context, |
| long | length | ||
| ) |
Definition at line 230 of file parse.c.
References context::data, context::error, gw_assert(), context::limit, octstr_copy, and context::pos.
Referenced by mime_decompile(), radius_pdu_unpack(), and wsp_unpack_well_known_field().
| Octstr* parse_get_rest | ( | ParseContext * | context | ) |
Definition at line 329 of file parse.c.
References context::data, gw_assert(), octstr_delete(), octstr_duplicate, and context::pos.
Referenced by mime_entity_body(), and mime_something_to_entity().
| Octstr* parse_get_seperated_block | ( | ParseContext * | context, |
| Octstr * | seperator | ||
| ) |
Definition at line 303 of file parse.c.
References context::data, context::error, gw_assert(), context::limit, octstr_copy, octstr_len(), octstr_search(), and context::pos.
Referenced by mime_something_to_entity().
| unsigned long parse_get_uintvar | ( | ParseContext * | context | ) |
Definition at line 246 of file parse.c.
References context::data, context::error, gw_assert(), context::limit, octstr_extract_uintvar(), and context::pos.
Referenced by mime_decompile(), unpack_range_value(), wsp_field_value(), and wsp_secondary_field_value().
| int parse_limit | ( | ParseContext * | context, |
| long | length | ||
| ) |
Definition at line 121 of file parse.c.
References context::error, gw_assert(), gwlist_create, gwlist_insert(), context::limit, context::limit_stack, and context::pos.
Referenced by wsp_field_value().
| long parse_octets_left | ( | ParseContext * | context | ) |
Definition at line 159 of file parse.c.
References gw_assert(), context::limit, and context::pos.
Referenced by mime_decompile(), unpack_broken_parameters(), unpack_cache_directive(), unpack_challenge(), unpack_optional_q_value(), wsp_headers_unpack(), wsp_unpack_all_parameters(), and wsp_unpack_well_known_field().
| int parse_peek_char | ( | ParseContext * | context | ) |
Definition at line 206 of file parse.c.
References context::data, context::error, gw_assert(), context::limit, octstr_get_char(), and context::pos.
Referenced by proxy_unpack_credentials(), unpack_challenge(), and unpack_credentials().
| int parse_pop_limit | ( | ParseContext * | context | ) |
Definition at line 142 of file parse.c.
References context::error, gw_assert(), gwlist_extract_first(), gwlist_len(), context::limit, and context::limit_stack.
Referenced by wsp_skip_field_value(), and wsp_unpack_well_known_field().
| void parse_set_error | ( | ParseContext * | context | ) |
Definition at line 114 of file parse.c.
References context::error, and gw_assert().
Referenced by unpack_parameter().
| int parse_skip | ( | ParseContext * | context, |
| long | count | ||
| ) |
Definition at line 166 of file parse.c.
References context::error, gw_assert(), context::limit, and context::pos.
Referenced by proxy_unpack_credentials(), radius_pdu_unpack(), unpack_challenge(), unpack_credentials(), wsp_field_value(), wsp_headers_unpack(), wsp_secondary_field_value(), and wsp_unpack_well_known_field().
| int parse_skip_to | ( | ParseContext * | context, |
| long | pos | ||
| ) |
Definition at line 187 of file parse.c.
References context::error, gw_assert(), context::limit, and context::pos.
| void parse_skip_to_limit | ( | ParseContext * | context | ) |
Definition at line 180 of file parse.c.
References gw_assert(), context::limit, and context::pos.
Referenced by unpack_parameter(), wsp_skip_field_value(), and wsp_unpack_well_known_field().