aboutsummaryrefslogtreecommitdiffstats
path: root/src/calcurse.h
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@calcurse.org>2016-02-11 18:22:05 +0100
committerLukas Fleischer <lfleischer@calcurse.org>2016-02-11 18:33:57 +0100
commit07954626c6925f22e4d59b6d68f0947d4e54b8b9 (patch)
treee691a26dbb8ada6f708f08c529c1e8af826d61e2 /src/calcurse.h
parentfe0621bafd21acaf9909cb2f8ea65fa56560faed (diff)
downloadcalcurse-07954626c6925f22e4d59b6d68f0947d4e54b8b9.tar.gz
calcurse-07954626c6925f22e4d59b6d68f0947d4e54b8b9.zip
Support format strings when dumping imported items
In commit 3eae7ce (Add --list-imported command line option, 2016-01-12), we added an option to print the hashes of imported items to stdout. Extend this command line option such that it dumps the items using the specified formatting strings. With the new behavior it is, for example, easier to check items for import errors. Also, rename the option from --list-imported to --dump-imported (it is not part of any official release yet so we do not need to care about backwards compatibility). Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'src/calcurse.h')
-rw-r--r--src/calcurse.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/calcurse.h b/src/calcurse.h
index aafea6b..9ee8be0 100644
--- a/src/calcurse.h
+++ b/src/calcurse.h
@@ -809,8 +809,9 @@ int display_help(const char *);
int run_hook(const char *);
/* ical.c */
-void ical_import_data(FILE *, FILE *, int, unsigned *, unsigned *, unsigned *,
- unsigned *, unsigned *);
+void ical_import_data(FILE *, FILE *, unsigned *, unsigned *, unsigned *,
+ unsigned *, unsigned *, const char *, const char *,
+ const char *, const char *, const char *);
void ical_export_data(FILE *, int);
/* io.c */
@@ -837,7 +838,8 @@ int io_check_file(const char *);
int io_check_data_files(void);
void io_startup_screen(int);
void io_export_data(enum export_type, int);
-void io_import_data(enum import_type, const char *, int);
+void io_import_data(enum import_type, const char *, const char *, const char *,
+ const char *, const char *, const char *);
struct io_file *io_log_init(void);
void io_log_print(struct io_file *, int, const char *);
void io_log_display(struct io_file *, const char *, const char *);