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

sip_from_t* sip_from_dup ( su_home_t home,
sip_from_t const *  hdr 

Duplicate a list of From header header structures sip_from_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.

   from = sip_from_dup(home, sip->sip_from);
A pointer to the newly duplicated sip_from_t header structure, or NULL upon an error.

Referenced by nea_server_add_irq(), and nta_leg_tcreate().

Generated by  Doxygen 1.6.0   Back to index