Logo Search packages:      
Sourcecode: sofia-sip version File versions

msg_parser.h File Reference


Detailed Description

Defined when <sofia-sip/msg_parser.h> has been included.

Message parser interface.

Author:
Pekka Pessi <Pekka.Pessi@nokia.com>
Date:
Created: Tue Aug 21 16:03:45 2001 ppessi

Definition in file msg_parser.h.

#include <sofia-sip/su_alloc.h>
#include <sofia-sip/msg_header.h>
#include <sofia-sip/bnf.h>
#include <sofia-sip/url.h>

Go to the source code of this file.

Defines

#define MSG_CHAR_E(p, e, c)   (++(p) < (e) ? ((p)[-1]=(c)) : (c))
#define MSG_COMMALIST_E(b, end, params, compact)
#define MSG_HEADER_CLASS(pr, c, l, s, params, kind, dup, upd)
#define MSG_HEADER_DATA(h)   ((char *)(h) + (h)->sh_class->hc_size)
#define MSG_HEADER_TEST(h)   ((h) && (h)->sh_class)
#define msg_kind_list_critical   msg_kind_list, 1
#define msg_kind_single_critical   msg_kind_single, 1
#define MSG_PARAM_MATCH(v, s, name)   (strncasecmp(s, name "=", sizeof(name)) == 0 ? (v = s + sizeof(name)) : NULL)
#define MSG_PARAM_MATCH_P(v, s, name)
#define MSG_PARAMS_E(b, end, params, flags)   (b) += msg_params_e((b), (size_t)((b) < (end) ? (end) - (b) : 0), (params))
#define MSG_PARAMS_NUM(n)   (((n) + MSG_N_PARAMS - 1) & (size_t)(0 - MSG_N_PARAMS))
#define MSG_PARAMS_SIZE(rv, params)   (rv = msg_params_dup_xtra(params, rv))
#define MSG_STRING_DUP(p, d, s)
#define MSG_STRING_E(p, e, s)
#define MSG_STRING_LEN(s, sep_size)   ((s) ? (strlen(s) + sep_size) : 0)
#define MSG_STRING_SIZE(s)   ((s) ? (strlen(s) + 1) : 0)
#define MSG_TERM_E(p, e)   ((p) < (e) ? (p)[0] = '\0' : '\0')

Functions

SOFIAPUBFUN issize_t msg_any_list_d (su_home_t *, char **ss, msg_param_t **append_list, issize_t(*scanner)(char *s), int sep)
SOFIAPUBFUN issize_t msg_attribute_value_scanner (char *s)
SOFIAPUBFUN issize_t msg_auth_d (su_home_t *, msg_header_t *h, char *s, isize_t slen)
SOFIAPUBFUN char * msg_auth_dup_one (msg_header_t *dst, msg_header_t const *src, char *b, isize_t xtra)
SOFIAPUBFUN isize_t msg_auth_dup_xtra (msg_header_t const *h, isize_t offset)
SOFIAPUBFUN issize_t msg_auth_e (char b[], isize_t bsiz, msg_header_t const *h, int f)
SOFIAPUBFUN issize_t msg_avlist_d (su_home_t *, char **ss, msg_param_t const **return_params)
SOFIAPUBFUN issize_t msg_commalist_d (su_home_t *, char **ss, msg_param_t **append_list, issize_t(*scanner)(char *s))
SOFIAPUBFUN issize_t msg_comment_d (char **ss, char const **return_comment)
SOFIAPUBFUN char * msg_default_dup_one (msg_header_t *dst, msg_header_t const *src, char *b, isize_t xtra)
SOFIAPUBFUN isize_t msg_default_dup_xtra (msg_header_t const *header, isize_t offset)
SOFIAPUBFUN char * msg_error_dup_one (msg_header_t *dst, msg_header_t const *src, char *b, isize_t xtra)
SOFIAPUBFUN isize_t msg_error_dup_xtra (msg_header_t const *h, isize_t offset)
SOFIAPUBFUN issize_t msg_extract_header (msg_t *msg, msg_pub_t *mo, char b[], isize_t bsiz, int eos)
SOFIAPUBFUN issize_t msg_extract_payload (msg_t *msg, msg_pub_t *mo, msg_header_t **return_payload, usize_t body_len, char b[], isize_t bsiz, int eos)
SOFIAPUBFUN issize_t msg_extract_separator (msg_t *msg, msg_pub_t *mo, char b[], isize_t bsiz, int eos)
SOFIAPUBFUN int msg_firstline_d (char *s, char **ss2, char **ss3)
SOFIAPUBFUN issize_t msg_generic_d (su_home_t *, msg_header_t *, char *, isize_t)
SOFIAPUBFUN char * msg_generic_dup_one (msg_header_t *dst, msg_header_t const *src, char *b, isize_t xtra)
SOFIAPUBFUN isize_t msg_generic_dup_xtra (msg_header_t const *h, isize_t offset)
SOFIAPUBFUN issize_t msg_generic_e (char[], isize_t, msg_header_t const *, int)
su_inline void * msg_header_data (msg_frg_t *h)
SOFIAPUBFUN int msg_header_update_params (msg_common_t *h, int clear)
SOFIAPUBFUN int msg_hostport_d (char **ss, char const **return_host, char const **return_port)
SOFIAPUBFUN issize_t msg_list_d (su_home_t *, msg_header_t *h, char *s, isize_t slen)
SOFIAPUBFUN char * msg_list_dup_one (msg_header_t *dst, msg_header_t const *src, char *b, isize_t xtra)
SOFIAPUBFUN isize_t msg_list_dup_xtra (msg_header_t const *h, isize_t offset)
SOFIAPUBFUN issize_t msg_list_e (char[], isize_t, msg_header_t const *, int)
SOFIAPUBFUN issize_t msg_numeric_d (su_home_t *, msg_header_t *h, char *s, isize_t slen)
SOFIAPUBFUN issize_t msg_numeric_e (char[], isize_t, msg_header_t const *, int)
su_inline isize_t msg_params_count (msg_param_t const params[])
SOFIAPUBFUN issize_t msg_params_d (su_home_t *, char **ss, msg_param_t const **return_params)
SOFIAPUBFUN char * msg_params_dup (msg_param_t const **d, msg_param_t const *s, char *b, isize_t xtra)
su_inline isize_t msg_params_dup_xtra (msg_param_t const params[], isize_t offset)
SOFIAPUBFUN isize_t msg_params_e (char b[], isize_t bsiz, msg_param_t const pparams[])
SOFIAPUBFUN issize_t msg_params_join (su_home_t *, msg_param_t **dst, msg_param_t const *src, unsigned prune, int dup)
SOFIAPUBFUN issize_t msg_parse_next_field (su_home_t *home, msg_header_t *prev, char *s, isize_t slen)
SOFIAPUBFUN issize_t msg_payload_d (su_home_t *, msg_header_t *h, char *s, isize_t slen)
SOFIAPUBFUN char * msg_payload_dup_one (msg_header_t *dst, msg_header_t const *src, char *b, isize_t xtra)
SOFIAPUBFUN isize_t msg_payload_dup_xtra (msg_header_t const *h, isize_t offset)
SOFIAPUBFUN issize_t msg_payload_e (char b[], isize_t bsiz, msg_header_t const *, int f)
SOFIAPUBFUN issize_t msg_quoted_d (char **ss, char **return_unquoted)
SOFIAPUBFUN issize_t msg_separator_d (su_home_t *, msg_header_t *, char *, isize_t)
SOFIAPUBFUN issize_t msg_separator_e (char[], isize_t, msg_header_t const *, int)
SOFIAPUBFUN issize_t msg_token_d (char **ss, char const **return_token)
SOFIAPUBFUN issize_t msg_token_scan (char *start)
SOFIAPUBFUN issize_t msg_uint32_d (char **ss, uint32_t *return_value)
SOFIAPUBFUN char * msg_unknown_dup_one (msg_header_t *dst, msg_header_t const *src, char *b, isize_t xtra)
SOFIAPUBFUN isize_t msg_unknown_dup_xtra (msg_header_t const *h, isize_t offset)
SOFIAPUBFUN issize_t msg_unquoted_e (char *b, isize_t bsiz, char const *s)


Generated by  Doxygen 1.6.0   Back to index