diff options
author | Hugo Hörnquist <hugo@hornquist.se> | 2019-02-10 15:40:05 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@hornquist.se> | 2019-02-10 15:40:05 +0100 |
commit | 1fbf9ba8efc8612e0fc309bfe9aa2b95891915d4 (patch) | |
tree | 39258374fe23ec90a7d574cb5647bc5e4cf670b5 /vcal.h | |
parent | Replace printf/puts with INFO/ERR. (diff) | |
download | calp-1fbf9ba8efc8612e0fc309bfe9aa2b95891915d4.tar.gz calp-1fbf9ba8efc8612e0fc309bfe9aa2b95891915d4.tar.xz |
Clean up vcal, add key_val type.
Diffstat (limited to '')
-rw-r--r-- | vcal.h | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -15,14 +15,21 @@ typedef struct { strbuf val; } key_val; +INIT_F(key_val); +FREE_F(key_val); +FMT_F(key_val); +int DEEP_COPY(key_val) (key_val* dest, key_val* src); + +#define TYPE key_val +#include "linked_list.h" +#undef TYPE + typedef struct { strbuf key; LLIST(strbuf) vals; - /* parcams NULL by default, since most content lines doesn't have - * any properties */ - LLIST(strbuf) params; + LLIST(key_val) params; } content_line; INIT_F(content_line); |