summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2011-07-02 08:44:16 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2011-07-02 10:15:35 +0200
commit003431880edfb0c44ae7b7f8e37d5358fb7b5d8e (patch)
treecb630d050fd0853a962796eb88d72093a75f2d6a
parent3076670a76652d538f8b3d0d925197ec2ce32dd9 (diff)
downloadcalcurse-003431880edfb0c44ae7b7f8e37d5358fb7b5d8e.tar.gz
calcurse-003431880edfb0c44ae7b7f8e37d5358fb7b5d8e.zip
Make recur_*_write() public
This allows one to serialize and send recurrent items to arbitrary output streams. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
-rw-r--r--src/calcurse.h2
-rw-r--r--src/recur.c4
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;