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

sip_accept_t* sip_accept_dup ( su_home_t home,
sip_accept_t const *  hdr 

Duplicate a list of Accept header header structures sip_accept_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.

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.

   accept = sip_accept_dup(home, sip->sip_accept);
A pointer to the newly duplicated sip_accept_t header structure, or NULL upon an error.

Referenced by nea_event_tcreate(), and nea_sub_process_subscribe().

Generated by  Doxygen 1.6.0   Back to index