sip_header.c File Reference


Detailed Description

SIP header handling.

Author:
Pekka Pessi <Pekka.Pessi@nokia-email.address.hidden>.
Date:
Created: Tue Jun 13 02:57:51 2000 ppessi

#include "config.h"
#include <sofia-sip/su_alloc.h>
#include "sofia-sip/sip_parser.h"
#include <sofia-sip/sip_status.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <limits.h>
#include <stdarg.h>
#include <assert.h>

Include dependency graph for sip_header.c:


Functions

sip_header_tsip_header_copy (su_home_t *home, sip_header_t const *h)
 Copy a SIP header or whole list.
sip_header_tsip_header_dup (su_home_t *home, sip_header_t const *h)
 Duplicate (deep copy) a SIP header or whole list.
sip_header_tsip_header_d (su_home_t *home, msg_t const *msg, char const *b)
 Decode a SIP header string (name: contents CRLF?).
issize_t sip_header_e (char b[], isize_t bsiz, sip_header_t const *h, int flags)
 Encode a SIP header field (name: contents CRLF).
sip_header_tsip_header_format (su_home_t *home, msg_hclass_t *hc, char const *fmt,...)
 Make a SIP header with formatting provided.
int sip_add_dup (msg_t *msg, sip_t *sip, sip_header_t const *o)
 Add a duplicate of header object to a SIP message.
int sip_add_dup_as (msg_t *msg, sip_t *sip, msg_hclass_t *hc, sip_header_t const *o)
 Add a duplicate of header object to the SIP message.
int sip_add_make (msg_t *msg, sip_t *sip, msg_hclass_t *hc, char const *s)
 Parse a string as a header and add it to the SIP message.

Function Documentation

sip_header_t* sip_header_copy ( su_home_t home,
sip_header_t const *  h 
)

Copy a SIP header or whole list.

Deprecated:
Use msg_header_copy() instead.

sip_header_t* sip_header_d ( su_home_t home,
msg_t const *  msg,
char const *  b 
)

Decode a SIP header string (name: contents CRLF?).

Deprecated:
Use msg_header_d() instead.

sip_header_t* sip_header_dup ( su_home_t home,
sip_header_t const *  h 
)

Duplicate (deep copy) a SIP header or whole list.

Deprecated:
Use msg_header_dup() instead.

issize_t sip_header_e ( char  b[],
isize_t  bsiz,
sip_header_t const *  h,
int  flags 
)

Encode a SIP header field (name: contents CRLF).

Deprecated:
Use msg_header_e() instead.


Sofia-SIP 1.12.6 - Copyright (C) 2006 Nokia Corporation. All rights reserved. Licensed under the terms of the GNU Lesser General Public License.