aboutsummaryrefslogtreecommitdiffstats
path: root/src/io.c
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@calcurse.org>2016-01-15 18:22:19 +0100
committerLukas Fleischer <lfleischer@calcurse.org>2016-01-15 18:25:05 +0100
commitcaee34449c1c8b2c8bf3049f34625db871e7d9dc (patch)
treea41fbda7836e4e58850f93486c723408126a06cd /src/io.c
parent39a3c0414455e2426dc2caa5ef24f23859a37069 (diff)
downloadcalcurse-caee34449c1c8b2c8bf3049f34625db871e7d9dc.tar.gz
calcurse-caee34449c1c8b2c8bf3049f34625db871e7d9dc.zip
Export item UIDs upon request
Add a new --export-uid command line option that adds each item's hash to the UID property when exporting. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'src/io.c')
-rw-r--r--src/io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/io.c b/src/io.c
index 91d6ffe..374f092 100644
--- a/src/io.c
+++ b/src/io.c
@@ -1084,7 +1084,7 @@ void io_startup_screen(int no_data_file)
}
/* Export calcurse data. */
-void io_export_data(enum export_type type)
+void io_export_data(enum export_type type, int export_uid)
{
FILE *stream = NULL;
const char *success = _("The data were successfully exported");
@@ -1109,7 +1109,7 @@ void io_export_data(enum export_type type)
return;
if (type == IO_EXPORT_ICAL)
- ical_export_data(stream);
+ ical_export_data(stream, export_uid);
else if (type == IO_EXPORT_PCAL)
pcal_export_data(stream);