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

su_tag.h File Reference


Detailed Description

Defined when <sofia-sip/su_tag.h> has been included. Object-oriented tags and tag list interface.

Author:
Pekka Pessi <Pekka.Pessi@nokia.com>
Date:
Created: Tue Feb 20 19:48:18 2001 ppessi

Definition in file su_tag.h.

#include <sofia-sip/su_config.h>
#include <sofia-sip/su_types.h>
#include <sofia-sip/su_alloc.h>
#include <stdarg.h>
#include <stddef.h>

Go to the source code of this file.

Classes

struct  tag_type_s
struct  tagi_t

Defines

#define SU_ALIGN(x)   ((sizeof(void *) - ((intptr_t)(x) & (sizeof(void *) - 1))) & (sizeof(void *) - 1))
#define TAG_ANY()   tag_any, (tag_value_t)0
#define tag_bool_v(v)   (tag_value_t)(v != 0)
#define tag_bool_vr(v)   (tag_value_t)(v)
#define tag_cptr_v(v)   (tag_value_t)(v)
#define tag_cptr_vr(v, x)   (tag_value_t)(v)
#define tag_cstr_v(v)   (tag_value_t)(v)
#define tag_cstr_vr(v)   (tag_value_t)(v)
#define TAG_END()   (tag_type_t)0, (tag_value_t)0
#define TAG_FILTER(function)   tag_filter, tag_filter_v(function)
#define tag_filter_v(v)   (tag_value_t)(v)
#define TAG_IF(condition, item)   !(condition) ? tag_skip : item
#define tag_int_v(v)   (tag_value_t)(v)
#define tag_int_vr(v)   (tag_value_t)(v)
#define TAG_LIST   tag_type_t tag, tag_value_t value, ...
#define TAG_NEXT(next)   tag_next, (tag_value_t)(next)
#define TAG_NULL()   (tag_type_t)0, (tag_value_t)0
#define tag_ptr_v(v)   (tag_value_t)(v)
#define tag_ptr_vr(v, x)   (tag_value_t)(v)
#define TAG_SKIP(x)   tag_skip, (tag_value_t)(x)
#define tag_str_v(v)   (tag_value_t)(v)
#define tag_str_vr(v)   (tag_value_t)(v)
#define tag_uint_v(v)   (tag_value_t)(v)
#define tag_uint_vr(v)   (tag_value_t)(v)
#define tag_usize_v(v)   (tag_value_t)(v)
#define tag_usize_vr(v)   (tag_value_t)(v)

Typedefs

typedef struct tag_class_s const tag_class_t
typedef int tag_filter_f (tagi_t const *filter, tagi_t const *dest)
typedef
typedefSOFIA_BEGIN_DECLS
struct tag_type_s const * 
tag_type_t
typedef struct tag_type_s const tag_typedef_t [1]
typedef intptr_t tag_value_t

Functions

SOFIAPUBFUN int t_scan (tag_type_t tt, su_home_t *home, char const *s, tag_value_t *return_value)
SOFIAPUBFUN int t_snprintf (tagi_t const *t, char b[], size_t size)
SOFIAPUBFUN tagi_ttl_adup (su_home_t *, tagi_t const lst[])
SOFIAPUBFUN tagi_ttl_afilter (su_home_t *, tagi_t const filter[], tagi_t const lst[])
SOFIAPUBFUN tagi_ttl_dup (tagi_t dst[], tagi_t const lst[], void **bb)
SOFIAPUBFUN tagi_ttl_filter (tagi_t *, tagi_t const filter[], tagi_t const lst[], void **b)
SOFIAPUBFUN tagi_ttl_filtered_tlist (su_home_t *home, tagi_t const filter[], tag_type_t, tag_value_t,...)
SOFIAPUBFUN tagi_ttl_find (tagi_t const lst[], tag_type_t tt)
SOFIAPUBFUN tagi_ttl_find_last (tagi_t const lst[], tag_type_t tt)
SOFIAPUBFUN void tl_free (tagi_t list[])
SOFIAPUBFUN int tl_gets (tagi_t const lst[], tag_type_t, tag_value_t,...)
SOFIAPUBFUN size_t tl_len (tagi_t const lst[])
SOFIAPUBFUN tagi_ttl_list (tag_type_t tag, tag_value_t value,...)
SOFIAPUBFUN tagi_ttl_llist (tag_type_t tag, tag_value_t value,...)
SOFIAPUBFUN tagi_ttl_move (tagi_t *dst, tagi_t const src[])
SOFIAPUBFUN tagi_ttl_next (tagi_t const *lst)
SOFIAPUBFUN tagi_ttl_tfilter (su_home_t *, tagi_t const lst[], tag_type_t, tag_value_t,...)
SOFIAPUBFUN int tl_tgets (tagi_t lst[], tag_type_t, tag_value_t,...)
SOFIAPUBFUN tagi_ttl_tlist (su_home_t *, tag_type_t, tag_value_t,...)
SOFIAPUBFUN size_t tl_tmove (tagi_t *dst, size_t, tag_type_t, tag_value_t,...)
SOFIAPUBFUN int tl_tremove (tagi_t lst[], tag_type_t, tag_value_t,...)
SOFIAPUBFUN void tl_vfree (tagi_t *t)
SOFIAPUBFUN size_t tl_vlen (va_list ap)
SOFIAPUBFUN tagi_ttl_vlist (va_list ap)
SOFIAPUBFUN tagi_ttl_vlist2 (tag_type_t tag, tag_value_t value, va_list ap)
SOFIAPUBFUN tagi_ttl_vllist (tag_type_t tag, tag_value_t value, va_list ap)
SOFIAPUBFUN size_t tl_xtra (tagi_t const lst[], size_t offset)

Variables

SOFIAPUBVAR tag_typedef_t tag_any
SOFIAPUBVAR tag_typedef_t tag_filter
SOFIAPUBVAR tag_typedef_t tag_next
SOFIAPUBVAR tag_typedef_t tag_null
SOFIAPUBVAR tag_typedef_t tag_skip


Generated by  Doxygen 1.6.0   Back to index