aboutsummaryrefslogtreecommitdiffstats
path: root/src/calcurse.h
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@calcurse.org>2016-01-11 20:02:37 +0100
committerLukas Fleischer <lfleischer@calcurse.org>2016-01-13 17:39:44 +0100
commitd118beceee701580948eb3c23fb0677920042422 (patch)
treea5ec5b1fa5103cc8da0ca906778745f12a144869 /src/calcurse.h
parentab54c861dc857522747264f7494793e1d1589ff2 (diff)
downloadcalcurse-d118beceee701580948eb3c23fb0677920042422.tar.gz
calcurse-d118beceee701580948eb3c23fb0677920042422.zip
Implement {apoint,event,todo}_tostr()
Add functions to serialize non-recurrent objects without immediately writing them to stdout. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'src/calcurse.h')
-rw-r--r--src/calcurse.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/calcurse.h b/src/calcurse.h
index aeeec4c..701dd01 100644
--- a/src/calcurse.h
+++ b/src/calcurse.h
@@ -683,6 +683,7 @@ void apoint_llist_free(void);
struct apoint *apoint_new(char *, char *, long, long, char);
unsigned apoint_inday(struct apoint *, long *);
void apoint_sec2str(struct apoint *, long, char *, char *);
+char *apoint_tostr(struct apoint *);
void apoint_write(struct apoint *, FILE *);
struct apoint *apoint_scan(FILE *, struct tm, struct tm, char, char *,
struct item_filter *);
@@ -776,6 +777,7 @@ void event_llist_init(void);
void event_llist_free(void);
struct event *event_new(char *, char *, long, int);
unsigned event_inday(struct event *, long *);
+char *event_tostr(struct event *);
void event_write(struct event *, FILE *);
struct event *event_scan(FILE *, struct tm, int, char *, struct item_filter *);
void event_delete(struct event *);
@@ -1002,6 +1004,7 @@ int string_printf(struct string *, const char *, ...);
extern llist_t todolist;
struct todo *todo_get_item(int);
struct todo *todo_add(char *, int, char *);
+char *todo_tostr(struct todo *);
void todo_write(struct todo *, FILE *);
void todo_delete_note(struct todo *);
void todo_delete(struct todo *);