From 5dc443fc3d236fc2520df58495e62f197a98a64f Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Fri, 16 Dec 2011 23:05:46 +0100 Subject: Break out different import/export formats Extract iCal and pcal import/export routines into separate files. This reduces complexity of the super huge "io.c" source file and makes it easier to follow changes that affect the iCal and pcal routines only (commits affecting both formats are very uncommon). Before: $ wc -l src/io.c 2938 src/io.c After: $ wc -l src/{io,ical,pcal}.c 1445 src/io.c 1263 src/ical.c 317 src/pcal.c 3025 total Signed-off-by: Lukas Fleischer --- src/calcurse.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/calcurse.h') diff --git a/src/calcurse.h b/src/calcurse.h index ee6612f..5b4bffe 100644 --- a/src/calcurse.h +++ b/src/calcurse.h @@ -688,6 +688,11 @@ void help_screen (void); enum getstr getstring (WINDOW *, char *, int, int, int); int updatestring (WINDOW *, char **, int, int); +/* ical.c */ +void ical_import_data (FILE *, FILE *, unsigned *, unsigned *, unsigned *, + unsigned *, unsigned *); +void ical_export_data (FILE *); + /* io.c */ unsigned io_fprintln (const char *, const char *, ...); void io_init (char *, char *); @@ -803,6 +808,9 @@ int notify_same_item (long); int notify_same_recur_item (struct recur_apoint *); void notify_config_bar (void); +/* pcal.c */ +void pcal_export_data (FILE *); + /* recur.c */ extern llist_ts_t recur_alist_p; extern llist_t recur_elist; -- cgit v1.2.3-54-g00ecf