28 #ifndef HOMEPORT_HPD_MAP_H
29 #define HOMEPORT_HPD_MAP_H
55 #define hpd_map_foreach(RC, PAIR, MAP) for ( \
56 (RC) = hpd_map_first((MAP), &(PAIR)); \
58 (RC) = hpd_map_next(&(PAIR)))
64 #endif //HOMEPORT_HPD_MAP_H
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_set(hpd_map_t *map, const char *k, const char *v)
hpd_error_t hpd_map_next(hpd_pair_t **pair)
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_remove(hpd_map_t *map, hpd_pair_t *pair)
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)
enum hpd_error hpd_error_t
hpd_error_t hpd_map_get(hpd_map_t *map, const char *k, const char **v)
hpd_error_t hpd_map_v_matches(hpd_map_t *map, va_list vp)
hpd_error_t hpd_map_alloc(hpd_map_t **map)
hpd_error_t hpd_pair_get(const hpd_pair_t *pair, const char **key, const char **value)