|
issize_t | sip_payload_d (su_home_t *, msg_header_t *, char *s, isize_t slen) |
| Parse a SIP message payload.
|
|
issize_t | sip_payload_e (char b[], isize_t bsiz, msg_header_t const *h, int flags) |
| Print a SIP message payload.
|
|
sip_payload_t * | sip_payload_init (sip_payload_t x[1]) |
| Initialize a structure sip_payload_t.
|
|
int | sip_is_payload (sip_header_t const *header) |
| Test if header object is instance of sip_payload_t.
|
|
sip_payload_t * | sip_payload_dup (su_home_t *home, sip_payload_t const *hdr)) |
| Duplicate a list of message payload header structures sip_payload_t.
|
|
sip_payload_t * | sip_payload_copy (su_home_t *home, sip_payload_t const *hdr)) |
| Copy a list of message payload header structures sip_payload_t.
|
|
sip_payload_t * | sip_payload_make (su_home_t *home, char const *s)) |
| Make a message payload structure sip_payload_t.
|
|
sip_payload_t * | sip_payload_format (su_home_t *home, char const *fmt,...))) |
| Make a message payload from formatting result.
|
|
sip_payload_t * | sip_payload_create (su_home_t *home, void const *data, isize_t len) |
| Create a SIP payload structure.
|
|
#define SIP_PAYLOAD_INIT2 |
( |
|
data, |
|
|
|
length |
|
) |
| |
Initialize a SIP payload structure with pointer to data and its length.
The SIP_PAYLOAD_INIT2() macro initializes a sip_payload_t header structure with a pointer to data and its length in octets. For instance,
#define SIP_PAYLOAD_INIT2(data, length)
Initialize a SIP payload structure with pointer to data and its length.
Definition sip_header.h:315
The SIP_PAYLOAD_INIT2() macro can be used when creating a new payload from heap is not required, for instance, when the resulting payload structure is immediately copied.
sip_payload_t * sip_payload_copy |
( |
su_home_t * |
home, |
|
|
sip_payload_t const * |
hdr |
|
) |
| |
|
inline |
Copy a list of message payload header structures sip_payload_t.
The function sip_payload_copy() copies a header structure hdr. If the header structure hdr contains a reference (hdr->h_next
) to a list of headers, all the headers in that list are copied, too. The function uses given memory home to allocate all the memory areas used to copy the list of header structure hdr.
- Parameters
-
home | memory home used to allocate new structure |
hdr | pointer to the header structure to be copied |
When copying, only the header structure and parameter lists attached to it are duplicated. The new header structure retains all the references to the strings within the old hdr header, including the encoding of the old header, if present.
- Example
sip_payload_t * sip_payload_copy(su_home_t *home, sip_payload_t const *hdr))
Copy a list of message payload header structures sip_payload_t.
Definition sip_protos.h:16938
- Returns
- A pointer to newly copied header structure, or NULL upon an error.
sip_payload_t * sip_payload_dup |
( |
su_home_t * |
home, |
|
|
sip_payload_t const * |
hdr |
|
) |
| |
|
inline |
Duplicate a list of message payload header structures sip_payload_t.
Duplicate a header structure hdr. If the header structure hdr contains a reference (hdr->x_next
) to a list of headers, all the headers in the list are duplicated, too.
- Parameters
-
home | memory home used to allocate new structure |
hdr | header structure to be duplicated |
When duplicating, all parameter lists and non-constant strings attached to the header are copied, too. The function uses given memory home to allocate all the memory areas used to copy the header.
- Example
sip_payload_t * sip_payload_dup(su_home_t *home, sip_payload_t const *hdr))
Duplicate a list of message payload header structures sip_payload_t.
Definition sip_protos.h:16895
- Returns
- A pointer to the newly duplicated sip_payload_t header structure, or NULL upon an error.