aboutsummaryrefslogtreecommitdiffstats
path: root/src/io.c
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@calcurse.org>2016-01-12 18:40:40 +0100
committerLukas Fleischer <lfleischer@calcurse.org>2016-01-13 17:39:44 +0100
commit3eae7ce82869dd2c313496913bb94438dd0177a9 (patch)
treeb409a90240f11871e0f0fffab81dbfcbf206240f /src/io.c
parentc58087d5914322ab8f693729605a9508d67bb676 (diff)
downloadcalcurse-3eae7ce82869dd2c313496913bb94438dd0177a9.tar.gz
calcurse-3eae7ce82869dd2c313496913bb94438dd0177a9.zip
Add --list-imported command line option
When this option is used together with -i/--import, the object identifiers of imported objects are printed to stdout. 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 2639da5..e72a29d 100644
--- a/src/io.c
+++ b/src/io.c
@@ -1154,7 +1154,7 @@ static FILE *get_import_stream(enum import_type type)
* A temporary log file is created in /tmp to store the import process report,
* and is cleared at the end.
*/
-void io_import_data(enum import_type type, const char *stream_name)
+void io_import_data(enum import_type type, const char *stream_name, int list)
{
const char *proc_report =
_("Import process report: %04d lines read");
@@ -1195,7 +1195,7 @@ void io_import_data(enum import_type type, const char *stream_name)
}
if (type == IO_IMPORT_ICAL)
- ical_import_data(stream, log->fd, &stats.events,
+ ical_import_data(stream, log->fd, list, &stats.events,
&stats.apoints, &stats.todos,
&stats.lines, &stats.skipped);