From 1fbf9ba8efc8612e0fc309bfe9aa2b95891915d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Sun, 10 Feb 2019 15:40:05 +0100 Subject: Clean up vcal, add key_val type. --- vcal.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'vcal.h') diff --git a/vcal.h b/vcal.h index a27bd648..c86144f6 100644 --- a/vcal.h +++ b/vcal.h @@ -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); -- cgit v1.2.3