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

http_status_t* http_status_copy ( su_home_t home,
http_status_t const *  hdr 

Copy a http_status_t header structure.

The function http_status_copy() copies a header structure hdr. If the header structure hdr contains a reference (hdr->h_next) to a list of headers, all the headers in that list are copied, too. The function uses given memory home to allocate all the memory areas used to copy the header structure hdr.

home memory home used to allocate new structure
hdr pointer to the header structure to be duplicated
When copying, only the header structure and parameter lists attached to it are duplicated. The new header structure retains all the references to the strings within the old header, including the encoding of the old header, if present.

   status = http_status_copy(home, http->http_status);
The function http_status_copy() returns a pointer to newly copied header structure, or NULL upon an error.

Generated by  Doxygen 1.6.0   Back to index