parse_to.c File Reference

To header parser. More...

#include "parse_to.h"
#include <stdlib.h>
#include <string.h>
#include "../dprint.h"
#include "msg_parser.h"
#include "parse_uri.h"
#include "../ut.h"
#include "../mem/mem.h"
#include "../errinfo.h"

Include dependency graph for parse_to.c:

Go to the source code of this file.

Defines

#define add_param(_param, _body)

Enumerations

enum  {
  START_TO, DISPLAY_QUOTED, E_DISPLAY_QUOTED, DISPLAY_TOKEN,
  DISPLAY_TOKEN2, S_URI_ENCLOSED, URI_ENCLOSED, E_URI_ENCLOSED,
  URI_OR_TOKEN, MAYBE_URI_END, END, F_CR,
  F_LF, F_CRLF
}
enum  {
  S_PARA_NAME = 20, PARA_NAME, S_EQUAL, S_PARA_VALUE,
  TAG1, TAG2, TAG3, PARA_VALUE_TOKEN,
  PARA_VALUE_QUOTED, E_PARA_VALUE
}

Functions

void destroy_to (struct to_body *tb)
void free_to (struct to_body *tb)
static void free_to_params (struct to_body *tb)
char * parse_to (char *buffer, char *end, struct to_body *to_b)
static char * parse_to_param (char *buffer, char *end, struct to_body *to_b, int *returned_status)
struct sip_uriparse_to_uri (struct sip_msg *msg)


Detailed Description

To header parser.

Definition in file parse_to.c.


Define Documentation

#define add_param ( _param,
_body   ) 

Definition at line 60 of file parse_to.c.

Referenced by parse_to_param().


Enumeration Type Documentation

anonymous enum

Enumerator:
START_TO 
DISPLAY_QUOTED 
E_DISPLAY_QUOTED 
DISPLAY_TOKEN 
DISPLAY_TOKEN2 
S_URI_ENCLOSED 
URI_ENCLOSED 
E_URI_ENCLOSED 
URI_OR_TOKEN 
MAYBE_URI_END 
END 
F_CR 
F_LF 
F_CRLF 

Definition at line 46 of file parse_to.c.

anonymous enum

Enumerator:
S_PARA_NAME 
PARA_NAME 
S_EQUAL 
S_PARA_VALUE 
TAG1 
TAG2 
TAG3 
PARA_VALUE_TOKEN 
PARA_VALUE_QUOTED 
E_PARA_VALUE 

Definition at line 53 of file parse_to.c.


Function Documentation

void destroy_to ( struct to_body tb  ) 

Definition at line 92 of file parse_to.c.

References free_to_params().

void free_to ( struct to_body tb  ) 

Definition at line 86 of file parse_to.c.

References free_to_params(), and pkg_free.

Referenced by clean_hdr_field().

static void free_to_params ( struct to_body tb  )  [inline, static]

Definition at line 74 of file parse_to.c.

References to_param::next, to_body::param_lst, and pkg_free.

Referenced by destroy_to(), free_to(), and parse_to_param().

char* parse_to ( char *  buffer,
char *  end,
struct to_body to_b 
)

static char* parse_to_param ( char *  buffer,
char *  end,
struct to_body to_b,
int *  returned_status 
) [inline, static]

struct sip_uri* parse_to_uri ( struct sip_msg msg  )  [read]


Generated on Thu May 24 00:00:40 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6