48 msg_request_hash = -1,
91#define MSG_UNKNOWN_INIT() MSG_HDR_INIT(unknown)
113#define msg_unknown_init(x) \
114 MSG_HEADER_INIT(x, msg_unknown_class, sizeof(msg_unknown_t))
172 __attribute__((__malloc__));
218 __attribute__((__malloc__));
255 __attribute__((__malloc__));
284 __attribute__((__malloc__, __format__ (printf, 2, 3)));
340#define MSG_ERROR_INIT() MSG_HDR_INIT(error)
362#define msg_error_init(x) \
363 MSG_HEADER_INIT(x, msg_error_class, sizeof(msg_error_t))
421 __attribute__((__malloc__));
467 __attribute__((__malloc__));
504 __attribute__((__malloc__));
533 __attribute__((__malloc__, __format__ (printf, 2, 3)));
589#define MSG_SEPARATOR_INIT() MSG_HDR_INIT(separator)
611#define msg_separator_init(x) \
612 MSG_HEADER_INIT(x, msg_separator_class, sizeof(msg_separator_t))
670 __attribute__((__malloc__));
716 __attribute__((__malloc__));
753 __attribute__((__malloc__));
782 __attribute__((__malloc__, __format__ (printf, 2, 3)));
838#define MSG_PAYLOAD_INIT() MSG_HDR_INIT(payload)
860#define msg_payload_init(x) \
861 MSG_HEADER_INIT(x, msg_payload_class, sizeof(msg_payload_t))
919 __attribute__((__malloc__));
965 __attribute__((__malloc__));
1002 __attribute__((__malloc__));
1031 __attribute__((__malloc__, __format__ (printf, 2, 3)));
msg_print_f msg_error_e
Print a erroneous headers.
Definition msg_protos.h:317
msg_error_t * msg_error_copy(su_home_t *home, msg_error_t const *header))
Copy a msg_error_t header structure.
Definition msg_protos.h:471
msg_parse_f msg_error_d
Parse a erroneous headers.
Definition msg_protos.h:314
int msg_is_error(msg_header_t const *header)
Test if header object is instance of msg_error_t.
Definition msg_protos.h:380
msg_hclass_t msg_error_class[]
Header class for erroneous headers.
Definition msg_basic.c:80
msg_error_t * msg_error_make(su_home_t *home, char const *s)
Make a header structure msg_error_t.
Definition msg_protos.h:498
msg_error_t * msg_error_init(msg_error_t x[1])
Initialize a structure msg_error_t.
Definition msg_protos.h:357
msg_error_t * msg_error_format(su_home_t *home, char const *fmt,...)))
Make a erroneous headers from formatting result.
Definition msg_protos.h:536
msg_error_t * msg_error_dup(su_home_t *home, msg_error_t const *header))
Duplicate (deep copy) msg_error_t.
Definition msg_protos.h:425
@ msg_error_hash
Hash of erroneous headers.
Definition msg_protos.h:310
msg_print_f msg_payload_e
Print a message payload.
Definition msg_protos.h:815
msg_payload_t * msg_payload_format(su_home_t *home, char const *fmt,...)))
Make a message payload from formatting result.
Definition msg_protos.h:1034
msg_parse_f msg_payload_d
Parse a message payload.
Definition msg_protos.h:812
msg_payload_t * msg_payload_dup(su_home_t *home, msg_payload_t const *header))
Duplicate (deep copy) msg_payload_t.
Definition msg_protos.h:923
msg_payload_t * msg_payload_init(msg_payload_t x[1])
Initialize a structure msg_payload_t.
Definition msg_protos.h:855
msg_payload_t * msg_payload_copy(su_home_t *home, msg_payload_t const *header))
Copy a msg_payload_t header structure.
Definition msg_protos.h:969
msg_hclass_t msg_payload_class[]
Header class for message payload.
Definition msg_basic.c:207
msg_payload_t * msg_payload_make(su_home_t *home, char const *s)
Make a header structure msg_payload_t.
Definition msg_protos.h:996
int msg_is_payload(msg_header_t const *header)
Test if header object is instance of msg_payload_t.
Definition msg_protos.h:878
@ msg_payload_hash
Hash of message payload.
Definition msg_protos.h:808
msg_hclass_t msg_separator_class[]
Header class for separator line between headers and body.
Definition msg_basic.c:320
msg_print_f msg_separator_e
Print a separator line between headers and body.
Definition msg_protos.h:566
msg_separator_t * msg_separator_init(msg_separator_t x[1])
Initialize a structure msg_separator_t.
Definition msg_protos.h:606
int msg_is_separator(msg_header_t const *header)
Test if header object is instance of msg_separator_t.
Definition msg_protos.h:629
msg_parse_f msg_separator_d
Parse a separator line between headers and body.
Definition msg_protos.h:563
msg_separator_t * msg_separator_copy(su_home_t *home, msg_separator_t const *header))
Copy a msg_separator_t header structure.
Definition msg_protos.h:720
msg_separator_t * msg_separator_format(su_home_t *home, char const *fmt,...)))
Make a separator line between headers and body from formatting result.
Definition msg_protos.h:785
msg_separator_t * msg_separator_dup(su_home_t *home, msg_separator_t const *header))
Duplicate (deep copy) msg_separator_t.
Definition msg_protos.h:674
msg_separator_t * msg_separator_make(su_home_t *home, char const *s)
Make a header structure msg_separator_t.
Definition msg_protos.h:747
@ msg_separator_hash
Hash of separator line between headers and body.
Definition msg_protos.h:559
msg_unknown_t * msg_unknown_make(su_home_t *home, char const *s)
Make a header structure msg_unknown_t.
Definition msg_protos.h:249
msg_unknown_t * msg_unknown_copy(su_home_t *home, msg_unknown_t const *header))
Copy a msg_unknown_t header structure.
Definition msg_protos.h:222
msg_print_f msg_unknown_e
Print a unknown headers.
Definition msg_protos.h:68
msg_unknown_t * msg_unknown_init(msg_unknown_t x[1])
Initialize a structure msg_unknown_t.
Definition msg_protos.h:108
int msg_is_unknown(msg_header_t const *header)
Test if header object is instance of msg_unknown_t.
Definition msg_protos.h:131
msg_unknown_t * msg_unknown_dup(su_home_t *home, msg_unknown_t const *header))
Duplicate (deep copy) msg_unknown_t.
Definition msg_protos.h:176
msg_hclass_t msg_unknown_class[]
Header class for unknown headers.
Definition msg_basic.c:127
msg_unknown_t * msg_unknown_format(su_home_t *home, char const *fmt,...)))
Make a unknown headers from formatting result.
Definition msg_protos.h:287
msg_parse_f msg_unknown_d
Parse a unknown headers.
Definition msg_protos.h:65
@ msg_unknown_hash
Hash of unknown headers.
Definition msg_protos.h:61
struct msg_hclass_s const msg_hclass_t
Header class.
Definition msg_types.h:48
MSG_HDR_T msg_header_t
Any protocol-specific header object.
Definition msg_types.h:87
msg_hclass_t * h_class
Header class.
Definition msg_types.h:114
Erroneus header.
Definition msg_types.h:199
Generic header.
Definition msg_types.h:151
msg_common_t g_common[1]
Common fragment info.
Definition msg_types.h:152
Message payload.
Definition msg_types.h:214
Separator.
Definition msg_types.h:207
Unknown header.
Definition msg_types.h:191