From caee34449c1c8b2c8bf3049f34625db871e7d9dc Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Fri, 15 Jan 2016 18:22:19 +0100 Subject: 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 --- src/io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/io.c') 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); -- cgit v1.2.3-54-g00ecf