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

Data Structures

struct  osip_cseq
 Definition of the CSeq header. More...
 

Typedefs

typedef struct osip_cseq osip_cseq_t
 Structure for CSeq headers. More...
 

Functions

int osip_cseq_init (osip_cseq_t **header)
 Allocate a CSeq element. More...
 
void osip_cseq_free (osip_cseq_t *header)
 Free a CSeq element. More...
 
int osip_cseq_parse (osip_cseq_t *header, const char *hvalue)
 Parse a CSeq element. More...
 
int osip_cseq_to_str (const osip_cseq_t *header, char **dest)
 Get a string representation of a CSeq element. More...
 
int osip_cseq_clone (const osip_cseq_t *header, osip_cseq_t **dest)
 Clone a CSeq element. More...
 
void osip_cseq_set_number (osip_cseq_t *header, char *value)
 Set the number in the CSeq element. More...
 
char * osip_cseq_get_number (osip_cseq_t *header)
 Get the number from a CSeq header. More...
 
void osip_cseq_set_method (osip_cseq_t *header, char *value)
 Set the method in the CSeq element. More...
 
char * osip_cseq_get_method (osip_cseq_t *header)
 Get the method from a CSeq header. More...
 
int osip_cseq_match (osip_cseq_t *cseq1, osip_cseq_t *cseq2)
 Check if the CSeq headers match. More...
 

Detailed Description

Typedef Documentation

#include <osip_cseq.h>

Structure for CSeq headers.

Definition at line 39 of file osip_cseq.h.

Function Documentation

int osip_cseq_clone ( const osip_cseq_t header,
osip_cseq_t **  dest 
)

#include <osip_cseq.h>

Clone a CSeq element.

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

#include <osip_cseq.h>

Free a CSeq element.

Parameters
headerThe element to work on.
char* osip_cseq_get_method ( osip_cseq_t header)

#include <osip_cseq.h>

Get the method from a CSeq header.

Parameters
headerThe element to work on.
char* osip_cseq_get_number ( osip_cseq_t header)

#include <osip_cseq.h>

Get the number from a CSeq header.

Parameters
headerThe element to work on.
int osip_cseq_init ( osip_cseq_t **  header)

#include <osip_cseq.h>

Allocate a CSeq element.

Parameters
headerThe element to work on.
int osip_cseq_match ( osip_cseq_t cseq1,
osip_cseq_t cseq2 
)

#include <osip_cseq.h>

Check if the CSeq headers match.

NOTE: THIS IS AN INTERNAL METHOD ONLY

Parameters
cseq1The initial CSeq header.
cseq2The new CSeq header.
int osip_cseq_parse ( osip_cseq_t header,
const char *  hvalue 
)

#include <osip_cseq.h>

Parse a CSeq element.

Parameters
headerThe element to work on.
hvalueThe string to parse.
void osip_cseq_set_method ( osip_cseq_t header,
char *  value 
)

#include <osip_cseq.h>

Set the method in the CSeq element.

Parameters
headerThe element to work on.
valueThe value of the element.
void osip_cseq_set_number ( osip_cseq_t header,
char *  value 
)

#include <osip_cseq.h>

Set the number in the CSeq element.

Parameters
headerThe element to work on.
valueThe value of the element.
int osip_cseq_to_str ( const osip_cseq_t header,
char **  dest 
)

#include <osip_cseq.h>

Get a string representation of a CSeq element.

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