diff options
author | Lukas Fleischer <lfleischer@calcurse.org> | 2016-01-15 18:22:19 +0100 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2016-01-15 18:25:05 +0100 |
commit | caee34449c1c8b2c8bf3049f34625db871e7d9dc (patch) | |
tree | a41fbda7836e4e58850f93486c723408126a06cd /src/io.c | |
parent | 39a3c0414455e2426dc2caa5ef24f23859a37069 (diff) | |
download | 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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |