Commit 558d1e1b authored by Pekka Pessi's avatar Pekka Pessi

sip: added sipexthdrtag_class[] and SIPEXTHDRTAG_TYPEDEF()

Used by external tags containing SIP header objects.

darcs-hash:20070917140829-65a35-1cc62133ad41244afde4f85f8a4e305b9183df1d.gz
parent 0d45850d
......@@ -48,6 +48,28 @@
#include <string.h>
#include <limits.h>
/** Tag class for tags containing SIP headers. @HIDE
*
* Tags in this class are not automatically added to the message with
* sip_add_tl() or sip_add_tagis().
*/
tag_class_t sipexthdrtag_class[1] =
{{
sizeof(siphdrtag_class),
/* tc_next */ NULL,
/* tc_len */ NULL,
/* tc_move */ NULL,
/* tc_xtra */ msghdrtag_xtra,
/* tc_dup */ msghdrtag_dup,
/* tc_free */ NULL,
/* tc_find */ NULL,
/* tc_snprintf */ msghdrtag_snprintf,
/* tc_filter */ siptag_filter,
/* tc_ref_set */ t_ptr_ref_set,
/* tc_scan */ msghdrtag_scan,
}};
/** Tag class for SIP header tags. @HIDE */
tag_class_t siphdrtag_class[1] =
{{
......
......@@ -65,6 +65,22 @@ SOFIA_BEGIN_DECLS
{{ TAG_NAMESPACE, #t, sipmsgtag_class, \
(tag_value_t)SIP_PROTOCOL_TAG }}
/** Tag class for SIP headers */
SOFIAPUBVAR tag_class_t siphdrtag_class[1];
/** Tag class for string values of SIP headers */
SOFIAPUBVAR tag_class_t sipstrtag_class[1];
/** Tag class for SIP message */
SOFIAPUBVAR tag_class_t sipmsgtag_class[1];
/** Define a named tag type using structure of SIP header @a t. */
#define SIPEXTHDRTAG_TYPEDEF(n, t) \
{{ TAG_NAMESPACE, #n, sipexthdrtag_class, \
(tag_value_t)sip_##t##_class }}
/** Tag class using SIP header structure */
SOFIAPUBVAR tag_class_t sipexthdrtag_class[1];
/**@internal Filter SIP header tag items. */
SOFIAPUBFUN tagi_t *siptag_filter(tagi_t *dst, tagi_t const f[],
tagi_t const *src,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment