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

http_vary_t* http_vary_dup ( su_home_t home,
http_vary_t const *  hdr 

Duplicate (deep copy) http_vary_t.

The function http_vary_dup() duplicates 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.

   vary = http_vary_dup(home, http->http_vary);
The function http_vary_dup() returns a pointer to the newly duplicated http_vary_t header structure, or NULL upon an error.

Generated by  Doxygen 1.6.0   Back to index