aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-03-22 23:27:58 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-03-22 23:27:58 +0100
commit57d748bda9616a81d48c6c30181d1f903c1bf60a (patch)
tree7bbca27b3f174f781a053e226bb03b4aa15a38ec /src
parentAdd tests to C main. (diff)
downloadcalp-57d748bda9616a81d48c6c30181d1f903c1bf60a.tar.gz
calp-57d748bda9616a81d48c6c30181d1f903c1bf60a.tar.xz
Add comment on NAME attr.
Diffstat (limited to 'src')
-rw-r--r--src/calendar.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/calendar.c b/src/calendar.c
index edc1151e..be681abe 100644
--- a/src/calendar.c
+++ b/src/calendar.c
@@ -61,6 +61,10 @@ int handle_dir(vcomponent* cal, char* path) {
buf[path_len - 1] = '/';
+ /*
+ * NAME is the `fancy' name of the calendar.
+ * TODO cut path to its last component.
+ */
vcomponent_push_val(cal, "NAME", path);
vcomponent_push_val(cal, "TYPE", "vdir");