loc_set.h File Reference

#include <stdio.h>
#include <string.h>
#include <time.h>
#include <stdlib.h>
#include "../../mem/shm_mem.h"
#include "../../str.h"
#include "../../dprint.h"

Include dependency graph for loc_set.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  location
struct  location::address

Defines

#define CPL_LOC_DUPL   (1<<0)
#define CPL_LOC_NATED   (1<<1)

Functions

static int add_location (struct location **loc_set, str *uri, str *received, unsigned int prio, int flags)
static void empty_location_set (struct location **loc_set)
static void free_location (struct location *loc)
static void print_location_set (struct location *loc_set)
static struct locationremove_first_location (struct location **loc_set)
static void remove_location (struct location **loc_set, char *uri_s, int uri_len)


Define Documentation

#define CPL_LOC_DUPL   (1<<0)

Definition at line 37 of file loc_set.h.

Referenced by add_contacts_to_loc_set(), add_location(), and run_lookup().

#define CPL_LOC_NATED   (1<<1)

Definition at line 38 of file loc_set.h.

Referenced by cpl_proxy_to_loc_set(), and run_lookup().


Function Documentation

static int add_location ( struct location **  loc_set,
str uri,
str received,
unsigned int  prio,
int  flags 
) [inline, static]

static void empty_location_set ( struct location **  loc_set  )  [inline, static]

Definition at line 176 of file loc_set.h.

References location::next, and shm_free.

Referenced by free_cpl_interpreter(), run_location(), run_lookup(), and run_remove_location().

static void free_location ( struct location loc  )  [inline, static]

Definition at line 53 of file loc_set.h.

References shm_free.

Referenced by cpl_proxy_to_loc_set().

static void print_location_set ( struct location loc_set  )  [inline, static]

static struct location* remove_first_location ( struct location **  loc_set  )  [static, read]

Definition at line 158 of file loc_set.h.

References location::addr, _str::len, LM_DBG, location::next, _str::s, and location::address::uri.

Referenced by reply_callback(), and run_proxy().

static void remove_location ( struct location **  loc_set,
char *  uri_s,
int  uri_len 
) [inline, static]

Definition at line 130 of file loc_set.h.

References LM_DBG, location::next, and shm_free.

Referenced by run_remove_location().


Generated on Wed May 23 18:00:41 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6