aboutsummaryrefslogtreecommitdiff
path: root/vcal.h
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@hornquist.se>2019-02-10 15:40:05 +0100
committerHugo Hörnquist <hugo@hornquist.se>2019-02-10 15:40:05 +0100
commit1fbf9ba8efc8612e0fc309bfe9aa2b95891915d4 (patch)
tree39258374fe23ec90a7d574cb5647bc5e4cf670b5 /vcal.h
parentReplace printf/puts with INFO/ERR. (diff)
downloadcalp-1fbf9ba8efc8612e0fc309bfe9aa2b95891915d4.tar.gz
calp-1fbf9ba8efc8612e0fc309bfe9aa2b95891915d4.tar.xz
Clean up vcal, add key_val type.
Diffstat (limited to 'vcal.h')
-rw-r--r--vcal.h13
1 files changed, 10 insertions, 3 deletions
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);