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

test_protos.h File Reference


Detailed Description

Defined when <test_protos.h> has been included.

Prototypes and macros for dummy testing protocol headers.

This file is automatically generated from <test_class.h> by msg_parser.awk.

Author:
Pekka Pessi <Pekka.Pessi@nokia.com>

Definition in file test_protos.h.

#include <sofia-sip/su_config.h>
#include <sofia-sip/su_tag.h>
#include <sofia-sip/su_tag_class.h>
#include <sofia-sip/msg_header.h>
#include <sofia-sip/msg_mime_protos.h>
#include <test_class.h>

Go to the source code of this file.

Defines

#define msg_request_init(x)   MSG_HEADER_INIT(x, msg_request_class, sizeof(msg_request_t))
#define MSG_REQUEST_INIT()   MSG_HDR_INIT(request)
#define msg_request_p(h)   msg_is_request((h))
#define msg_status_init(x)   MSG_HEADER_INIT(x, msg_status_class, sizeof(msg_status_t))
#define MSG_STATUS_INIT()   MSG_HDR_INIT(status)
#define msg_status_p(h)   msg_is_status((h))
#define TSTTAG_HEADER(x)   tsttag_header, tsttag_header_v((x))
#define TSTTAG_HEADER_REF(x)   tsttag_header_ref, tsttag_header_vr(&(x))
#define TSTTAG_HEADER_STR(x)   tsttag_header_str, tag_str_v((x))
#define TSTTAG_HEADER_STR_REF(x)   tsttag_header_str_ref, tag_str_vr(&(x))
#define tsttag_header_v(v)   (tag_value_t)(v)
#define tsttag_header_vr(vp)   (tag_value_t)(vp)
#define TSTTAG_P(tt)   ((tt)->tt_class == tsthdrtag_class)
#define TSTTAG_STR_P(tt)   ((tt)->tt_class == tststrtag_class)
#define TSTTAG_TST_P(tt)   ((tt)->tt_class == tstmsgtag_class)
#define tsttag_tst_v(v)   (tag_value_t)(v)
#define tsttag_tst_vr(vp)   (tag_value_t)(vp)
#define TSTTAGI_P(t)   (TSTTAG_P((t)->t_tag))
#define TSTTAGI_STR_P(t)   (TSTTAG_STR_P((t)->t_tag))
#define TSTTAGI_TST_P(t)   (TSTTAG_TST_P((t)->t_tag))

Functions

int msg_is_request (msg_header_t const *header)
int msg_is_status (msg_header_t const *header)
msg_request_tmsg_request_copy (su_home_t *home, msg_request_t const *hdr)
msg_request_tmsg_request_dup (su_home_t *home, msg_request_t const *hdr)
msg_request_tmsg_request_format (su_home_t *home, char const *fmt,...) __attribute__((__format__(printf
msg_request_tmsg_request_make (su_home_t *home, char const *s)
msg_status_tmsg_status_copy (su_home_t *home, msg_status_t const *hdr)
msg_status_tmsg_status_dup (su_home_t *home, msg_status_t const *hdr)
msg_status_tmsg_status_format (su_home_t *home, char const *fmt,...) __attribute__((__format__(printf
msg_status_tmsg_status_make (su_home_t *home, char const *s)

Variables

msg_hclass_t msg_request_class []
msg_parse_f msg_request_d
msg_print_f msg_request_e
msg_hclass_t msg_status_class []
msg_parse_f msg_status_d
msg_print_f msg_status_e
tag_class_t tsthdrtag_class [1]
tag_class_t tstmsgtag_class [1]
tag_class_t tststrtag_class [1]
tag_typedef_t tsttag_header
tag_typedef_t tsttag_header_ref
tag_typedef_t tsttag_header_str
tag_typedef_t tsttag_header_str_ref


Generated by  Doxygen 1.6.0   Back to index