From 003431880edfb0c44ae7b7f8e37d5358fb7b5d8e Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sat, 2 Jul 2011 08:44:16 +0200 Subject: Make recur_*_write() public This allows one to serialize and send recurrent items to arbitrary output streams. Signed-off-by: Lukas Fleischer --- src/calcurse.h | 2 ++ src/recur.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/calcurse.h b/src/calcurse.h index e18d754..2c43369 100644 --- a/src/calcurse.h +++ b/src/calcurse.h @@ -791,6 +791,8 @@ struct recur_apoint *recur_apoint_scan (FILE *, struct tm, struct tm, struct recur_event *recur_event_scan (FILE *, struct tm, int, char, int, struct tm, char *, llist_t *); +void recur_apoint_write (struct recur_apoint *, FILE *); +void recur_event_write (struct recur_event *, FILE *); void recur_save_data (FILE *); unsigned recur_item_inday (long, llist_t *, int, int, long, long); unsigned recur_apoint_inday(struct recur_apoint *, long); diff --git a/src/recur.c b/src/recur.c index 430e543..b757400 100644 --- a/src/recur.c +++ b/src/recur.c @@ -450,7 +450,7 @@ recur_event_scan (FILE *f, struct tm start, int id, char type, int freq, } /* Writting of a recursive appointment into file. */ -static void +void recur_apoint_write (struct recur_apoint *o, FILE *f) { struct tm *lt; @@ -492,7 +492,7 @@ recur_apoint_write (struct recur_apoint *o, FILE *f) } /* Writting of a recursive event into file. */ -static void +void recur_event_write (struct recur_event *o, FILE *f) { struct tm *lt; -- cgit v1.2.3-70-g09d2