diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-03-24 23:24:15 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-03-24 23:46:48 +0100 |
commit | ee1abd5ada9b670791f7dd2d306bdbf9228fa439 (patch) | |
tree | 67c530a4918506b3c0389ec403c3abbf0a606868 /src/calendar.c | |
parent | Set up better test for recurring events. (diff) | |
download | calp-ee1abd5ada9b670791f7dd2d306bdbf9228fa439.tar.gz calp-ee1abd5ada9b670791f7dd2d306bdbf9228fa439.tar.xz |
Add VIRTUAL vcomponents.
VIRTUAL vcomponents are vcomponents created without a source. Their
primiary purpose is for creating brand new events, which will later be
dumped to the proper files.
They can however also be used in testing for great effect.
Diffstat (limited to 'src/calendar.c')
-rw-r--r-- | src/calendar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/calendar.c b/src/calendar.c index be681abe..403ae83c 100644 --- a/src/calendar.c +++ b/src/calendar.c @@ -39,7 +39,7 @@ int handle_file(vcomponent* cal, char* path) { INFO("Parsing a single file"); vcomponent_push_val(cal, "NAME", path); - vcomponent_push_val(cal, "TYPE", "file"); + vcomponent_push_val(cal, "X-HNH-SOURCETYPE", "file"); char* resolved_path = realpath(path, NULL); open_ics (resolved_path, cal); free (resolved_path); @@ -66,7 +66,7 @@ int handle_dir(vcomponent* cal, char* path) { * TODO cut path to its last component. */ vcomponent_push_val(cal, "NAME", path); - vcomponent_push_val(cal, "TYPE", "vdir"); + vcomponent_push_val(cal, "X-HNH-SOURCETYPE", "vdir"); struct dirent* d; while ((d = readdir(dir)) != NULL) { |