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

sip_contact_t* sip_contact_dup ( su_home_t home,
sip_contact_t const *  hdr 

Duplicate a list of Contact header header structures sip_contact_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.

   contact = sip_contact_dup(home, sip->sip_contact);
A pointer to the newly duplicated sip_contact_t header structure, or NULL upon an error.

Referenced by nea_server_add_irq(), nea_server_create(), nea_sub_process_subscribe(), and nta_leg_tcreate().

Generated by  Doxygen 1.6.0   Back to index