SIP Witch 1.9.15
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Typedefs | Functions
oSIP contact header definition.
Collaboration diagram for oSIP contact header definition.:

Macros

#define osip_contact_get_displayname(header)   osip_from_get_displayname((osip_from_t*)header)
 Get the displayname from a Contact header. More...
 
#define osip_contact_set_displayname(header, value)   osip_from_set_displayname((osip_from_t*)header, value)
 Set the displayname in the Contact element. More...
 
#define osip_contact_get_url(header)   osip_from_get_url((osip_from_t*)header)
 Get the url from a Contact header. More...
 
#define osip_contact_set_url(header, url)   osip_from_set_url((osip_from_t*)header,url)
 Set the url in the Contact element. More...
 
#define osip_contact_param_get(header, pos, dest)   osip_from_param_get((osip_from_t*)header,pos,dest)
 Get a header parameter from a Contact element. More...
 
#define osip_contact_param_add(header, name, value)   osip_generic_param_add((&(header)->gen_params), name,value)
 Allocate and add a generic parameter element in a list. More...
 
#define osip_contact_param_get_byname(header, name, dest)   osip_generic_param_get_byname((&(header)->gen_params),name,dest)
 Find a header parameter in a Contact element. More...
 

Typedefs

typedef osip_from_t osip_contact_t
 Structure for Contact headers. More...
 

Functions

int osip_contact_init (osip_contact_t **header)
 Allocate a Contact element. More...
 
void osip_contact_free (osip_contact_t *header)
 Free a Contact element. More...
 
int osip_contact_parse (osip_contact_t *header, const char *hvalue)
 Parse a Contact element. More...
 
int osip_contact_to_str (const osip_contact_t *header, char **dest)
 Get a string representation of a Contact element. More...
 
int osip_contact_clone (const osip_contact_t *header, osip_contact_t **dest)
 Clone a Contact element. More...
 

Detailed Description

Macro Definition Documentation

#define osip_contact_get_displayname (   header)    osip_from_get_displayname((osip_from_t*)header)

#include <osip_contact.h>

Get the displayname from a Contact header.

Parameters
headerThe element to work on.

Definition at line 88 of file osip_contact.h.

#define osip_contact_get_url (   header)    osip_from_get_url((osip_from_t*)header)

#include <osip_contact.h>

Get the url from a Contact header.

Parameters
headerThe element to work on.

Definition at line 99 of file osip_contact.h.

#define osip_contact_param_add (   header,
  name,
  value 
)    osip_generic_param_add((&(header)->gen_params), name,value)

#include <osip_contact.h>

Allocate and add a generic parameter element in a list.

Parameters
headerThe element to work on.
nameThe token name.
valueThe token value.

Definition at line 119 of file osip_contact.h.

#define osip_contact_param_get (   header,
  pos,
  dest 
)    osip_from_param_get((osip_from_t*)header,pos,dest)

#include <osip_contact.h>

Get a header parameter from a Contact element.

Parameters
headerThe element to work on.
posThe index of the element to get.
destA pointer on the element found.

Definition at line 112 of file osip_contact.h.

#define osip_contact_param_get_byname (   header,
  name,
  dest 
)    osip_generic_param_get_byname((&(header)->gen_params),name,dest)

#include <osip_contact.h>

Find a header parameter in a Contact element.

Parameters
headerThe element to work on.
nameThe token name to search.
destA pointer on the element found.

Definition at line 126 of file osip_contact.h.

#define osip_contact_set_displayname (   header,
  value 
)    osip_from_set_displayname((osip_from_t*)header, value)

#include <osip_contact.h>

Set the displayname in the Contact element.

Parameters
headerThe element to work on.
valueThe value of the element.

Definition at line 94 of file osip_contact.h.

#define osip_contact_set_url (   header,
  url 
)    osip_from_set_url((osip_from_t*)header,url)

#include <osip_contact.h>

Set the url in the Contact element.

Parameters
headerThe element to work on.
urlThe value of the element.

Definition at line 105 of file osip_contact.h.

Typedef Documentation

#include <osip_contact.h>

Structure for Contact headers.

Definition at line 41 of file osip_contact.h.

Function Documentation

int osip_contact_clone ( const osip_contact_t header,
osip_contact_t **  dest 
)

#include <osip_contact.h>

Clone a Contact element.

Parameters
headerThe element to work on.
destA pointer on the copy of the element.
void osip_contact_free ( osip_contact_t header)

#include <osip_contact.h>

Free a Contact element.

Parameters
headerThe element to work on.
int osip_contact_init ( osip_contact_t **  header)

#include <osip_contact.h>

Allocate a Contact element.

Parameters
headerThe element to work on.
int osip_contact_parse ( osip_contact_t header,
const char *  hvalue 
)

#include <osip_contact.h>

Parse a Contact element.

Parameters
headerThe element to work on.
hvalueThe string to parse.
int osip_contact_to_str ( const osip_contact_t header,
char **  dest 
)

#include <osip_contact.h>

Get a string representation of a Contact element.

Parameters
headerThe element to work on.
destA pointer on the new allocated string.