56 typedef void * (*lws_map_alloc_t)(
struct lws_map *mo,
size_t x);
91 #define lws_map_item_create_ks(_map, _str, _v, _vl) \
92 lws_map_item_create(_map, (const lws_map_key_t)_str, \
93 strlen(_str), (const lws_map_value_t)_v, \
95 #define lws_map_item_lookup_ks(_map, _str) \
96 lws_map_item_lookup(_map, (const lws_map_key_t)_str, strlen(_str))
lws_map_hash_from_key_t _hash
lws_map_hash_t(* lws_map_hash_from_key_t)(const lws_map_key_t key, size_t kl)
LWS_VISIBLE LWS_EXTERN void * lws_map_alloc_lwsac(struct lws_map *map, size_t x)
LWS_VISIBLE LWS_EXTERN void lws_map_destroy(lws_map_t **pmap)
void *(* lws_map_alloc_t)(struct lws_map *mo, size_t x)
LWS_VISIBLE LWS_EXTERN size_t lws_map_item_value_len(struct lws_map_item *_item)
void(* lws_map_free_t)(void *)
LWS_VISIBLE LWS_EXTERN void lws_map_free_lwsac(void *v)
LWS_VISIBLE LWS_EXTERN void lws_map_item_destroy(struct lws_map_item *item)
LWS_VISIBLE LWS_EXTERN size_t lws_map_item_key_len(struct lws_map_item *_item)
LWS_VISIBLE LWS_EXTERN const void * lws_map_item_key(struct lws_map_item *_item)
LWS_VISIBLE LWS_EXTERN const void * lws_map_item_value(struct lws_map_item *_item)
struct lws_map_info lws_map_info_t
int(* lws_map_compare_key_t)(const lws_map_key_t key1, size_t kl1, const lws_map_value_t key2, size_t kl2)
LWS_VISIBLE LWS_EXTERN struct lws_map_item * lws_map_item_create(lws_map_t *map, const lws_map_key_t key, size_t keylen, const lws_map_value_t value, size_t valuelen)
lws_map_compare_key_t _compare
LWS_VISIBLE LWS_EXTERN lws_map_t * lws_map_create(const lws_map_info_t *info)
LWS_VISIBLE LWS_EXTERN struct lws_map_item * lws_map_item_lookup(lws_map_t *map, const lws_map_key_t key, size_t keylen)