HomePort
Macros | Typedefs | Functions
hpd_map.h File Reference
Include dependency graph for hpd_map.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define hpd_map_foreach(RC, PAIR, MAP)
 

Typedefs

typedef struct hpd_map hpd_map_t
 
typedef struct hpd_pair hpd_pair_t
 

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)
 

Macro Definition Documentation

#define hpd_map_foreach (   RC,
  PAIR,
  MAP 
)
Value:
for ( \
(RC) = hpd_map_first((MAP), &(PAIR)); \
!(RC) && (PAIR); \
(RC) = hpd_map_next(&(PAIR)))
hpd_error_t hpd_map_next(hpd_pair_t **pair)
Definition: map.c:60
hpd_error_t hpd_map_first(hpd_map_t *map, hpd_pair_t **pair)
Definition: map.c:52

Definition at line 55 of file hpd_map.h.

Typedef Documentation

typedef struct hpd_map hpd_map_t

Definition at line 40 of file hpd_map.h.

typedef struct hpd_pair hpd_pair_t

Definition at line 41 of file hpd_map.h.

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 
)

Definition at line 229 of file map.c.

Here is the caller graph for this function: