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

sip_require_t* sip_require_dup ( su_home_t home,
sip_require_t const *  hdr 

Duplicate a list of Require header header structures sip_require_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.

   require = sip_require_dup(home, sip->sip_require);
A pointer to the newly duplicated sip_require_t header structure, or NULL upon an error.

Referenced by nea_event_tcreate(), and nea_server_create().

Generated by  Doxygen 1.6.0   Back to index