aboutsummaryrefslogtreecommitdiff
path: root/vcal.c
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-02-23 12:23:39 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-02-23 12:23:39 +0100
commita56dedbe9807286928fc56fbb489fa637b4b7e80 (patch)
tree02fcc6104cea8e71114eb00d5c36ada77d281194 /vcal.c
parentSomething. (diff)
downloadcalp-a56dedbe9807286928fc56fbb489fa637b4b7e80.tar.gz
calp-a56dedbe9807286928fc56fbb489fa637b4b7e80.tar.xz
Even more work.
Diffstat (limited to 'vcal.c')
-rw-r--r--vcal.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/vcal.c b/vcal.c
index 4399a821..fa0649e6 100644
--- a/vcal.c
+++ b/vcal.c
@@ -57,6 +57,16 @@ int DEEP_COPY(vcomponent)(vcomponent* a, vcomponent* b) {
return -1;
}
+content_line::content_line (strbuf* key, strbuf* val) {
+ this->key = key;
+ this->push_value(val);
+}
+
+void vcomponent:: push_kv (strbuf* key, strbuf* val) {
+ auto cl = new content_line (key, val);
+ this->clines.push(key->mem, cl);
+}
+
#if 0
FMT_F(vcomponent) {
int seek = 0;