HomePort
Data Structures | Functions
map.c File Reference
Include dependency graph for map.c:

Go to the source code of this file.

Data Structures

struct  hpd_pair
 

Functions

hpd_error_t hpd_map_alloc (hpd_map_t **map)
 
hpd_error_t hpd_map_first (hpd_map_t *map, hpd_pair_t **pair)
 
hpd_error_t hpd_map_free (hpd_map_t *map)
 
hpd_error_t hpd_map_get (hpd_map_t *map, const char *k, const char **v)
 
hpd_error_t hpd_map_get_n (hpd_map_t *map, const char *k, size_t k_len, const char **v)
 
hpd_error_t hpd_map_next (hpd_pair_t **pair)
 
hpd_error_t hpd_map_remove (hpd_map_t *map, hpd_pair_t *pair)
 
hpd_error_t hpd_map_set (hpd_map_t *map, const char *k, const char *v)
 
hpd_error_t hpd_map_set_n (hpd_map_t *map, const char *k, size_t k_len, const char *v, size_t v_len)
 
hpd_error_t hpd_map_v_matches (hpd_map_t *map, va_list vp)
 
hpd_error_t hpd_pair_get (const hpd_pair_t *pair, const char **key, const char **value)
 [hpd_action_t functions] More...
 
static hpd_error_t map_insert (hpd_map_t *map, const char *k, const char *v)
 
static hpd_error_t map_insert_n (hpd_map_t *map, const char *k, size_t k_len, const char *v, size_t v_len)
 
static hpd_error_t map_replace (hpd_pair_t *attr, const char *v)
 
static hpd_error_t map_replace_n (hpd_pair_t *attr, const char *v, size_t v_len)
 
 TAILQ_HEAD (hpd_map, hpd_pair)
 

Data Structure Documentation

struct hpd_pair

Definition at line 34 of file map.c.

Collaboration diagram for hpd_pair:

Function Documentation

hpd_error_t hpd_map_alloc ( hpd_map_t **  map)

Definition at line 40 of file map.c.

Here is the caller graph for this function:

hpd_error_t hpd_map_first ( hpd_map_t map,
hpd_pair_t **  pair 
)

Definition at line 52 of file map.c.

Here is the caller graph for this function:

hpd_error_t hpd_map_free ( hpd_map_t map)

Definition at line 79 of file map.c.

Here is the call graph for this function:

Here is the caller graph for this function:

hpd_error_t hpd_map_get ( hpd_map_t map,
const char *  k,
const char **  v 
)

Definition at line 92 of file map.c.

Here is the caller graph for this function:

hpd_error_t hpd_map_get_n ( hpd_map_t map,
const char *  k,
size_t  k_len,
const char **  v 
)

Definition at line 107 of file map.c.

Here is the caller graph for this function:

hpd_error_t hpd_map_next ( hpd_pair_t **  pair)

Definition at line 60 of file map.c.

Here is the caller graph for this function:

hpd_error_t hpd_map_remove ( hpd_map_t map,
hpd_pair_t pair 
)

Definition at line 68 of file map.c.

Here is the call graph for this function:

Here is the caller graph for this function:

hpd_error_t hpd_map_set ( hpd_map_t map,
const char *  k,
const char *  v 
)

Definition at line 175 of file map.c.

Here is the call graph for this function:

Here is the caller graph for this function:

hpd_error_t hpd_map_set_n ( hpd_map_t map,
const char *  k,
size_t  k_len,
const char *  v,
size_t  v_len 
)

Definition at line 195 of file map.c.

Here is the call graph for this function:

Here is the caller graph for this function:

hpd_error_t hpd_map_v_matches ( hpd_map_t map,
va_list  vp 
)

Definition at line 215 of file map.c.

Here is the call graph for this function:

hpd_error_t hpd_pair_get ( const hpd_pair_t pair,
const char **  key,
const char **  value 
)

[hpd_action_t functions]

[hpd_pair_t functions]

Definition at line 229 of file map.c.

Here is the caller graph for this function:

static hpd_error_t map_insert ( hpd_map_t map,
const char *  k,
const char *  v 
)
static

Definition at line 123 of file map.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static hpd_error_t map_insert_n ( hpd_map_t map,
const char *  k,
size_t  k_len,
const char *  v,
size_t  v_len 
)
static

Definition at line 149 of file map.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static hpd_error_t map_replace ( hpd_pair_t attr,
const char *  v 
)
static

Definition at line 141 of file map.c.

Here is the caller graph for this function:

static hpd_error_t map_replace_n ( hpd_pair_t attr,
const char *  v,
size_t  v_len 
)
static

Definition at line 167 of file map.c.

Here is the caller graph for this function:

TAILQ_HEAD ( hpd_map  ,
hpd_pair   
)