diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-12-16 23:05:46 +0100 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-01-07 12:41:51 +0100 |
commit | 5dc443fc3d236fc2520df58495e62f197a98a64f (patch) | |
tree | 31dc2272f92ebfdb88722f78e7c34c5cff6e47ef /src/calcurse.h | |
parent | 7850f6ddf118abdb6e494b1c240776227d65cf54 (diff) | |
download | calcurse-5dc443fc3d236fc2520df58495e62f197a98a64f.zip |
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 <calcurse@cryptocrack.de>
Diffstat (limited to 'src/calcurse.h')
-rw-r--r-- | src/calcurse.h | 8 |
1 files changed, 8 insertions, 0 deletions
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; |