blob: e1355624dc4324da8bc5ad40894bb01d4f73083d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#ifndef NVIM_MAP_DEFS_H
#define NVIM_MAP_DEFS_H
#include "nvim/lib/khash.h"
KHASH_DECLARE(Map, kh_cstr_t, void *)
typedef struct {
khash_t(Map) *table;
} Map;
/// Callback for iterating through each key/value pair in a map
///
/// @param map The `Map` instance
/// @param key A key string
/// @param value A value
typedef void (*key_value_cb)(Map *map, const char *key, void *value);
#endif // NVIM_MAP_DEFS_H
|