|
|
tmap.h - ics2txt - convert icalendar .ics file to plain text |
|
|
 |
git clone git://bitreich.org/ics2txt git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/ics2txt (git://bitreich.org) |
|
|
 |
Log |
|
|
 |
Files |
|
|
 |
Refs |
|
|
 |
Tags |
|
|
 |
README |
|
|
|
--- |
|
|
|
tmap.h (441B) |
|
|
|
--- |
|
|
|
1 #ifndef MAP_H |
|
|
|
2 #define MAP_H |
|
|
|
3 |
|
|
|
4 #include <stddef.h> |
|
|
|
5 |
|
|
|
6 struct map_entry { |
|
|
|
7 char *key; |
|
|
|
8 void *value; |
|
|
|
9 }; |
|
|
|
10 |
|
|
|
11 struct map { |
|
|
|
12 struct map_entry *entry; |
|
|
|
13 size_t len; |
|
|
|
14 }; |
|
|
|
15 |
|
|
|
16 /** src/map.c **/ |
|
|
|
17 void * map_get(struct map *map, char *key); |
|
|
|
18 int map_set(struct map *map, char *key, void *value); |
|
|
|
19 int map_del(struct map *map, char *key); |
|
|
|
20 void map_init(struct map *map); |
|
|
|
21 void map_free_keys(struct map *map); |
|
|
|
22 void map_free(struct map *map, void (*fn)(void *)); |
|
|
|
23 |
|
|
|
24 #endif |
|