diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-06-26 11:22:08 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-06-30 14:34:35 +0200 |
commit | b8b6830dfd75f6870b2171e7f31cb0cdb927532e (patch) | |
tree | cd3ad69b32150402de8b031f68705fb2f8e99600 /src/calcurse.h | |
parent | 8a85aaafa5905297398605eb890b00d22416eeb5 (diff) | |
download | calcurse-b8b6830dfd75f6870b2171e7f31cb0cdb927532e.zip |
Allow passing more complex data to list callbacks
Change the data type of the "data" parameter from "long" to "void *" in
llist_find_*() signatures to allow for passing more complex objects.
Change all llist_find_*() invocations and callbacks accordingly.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/calcurse.h')
-rw-r--r-- | src/calcurse.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/calcurse.h b/src/calcurse.h index 8afb7f4..1702ffe 100644 --- a/src/calcurse.h +++ b/src/calcurse.h @@ -601,7 +601,7 @@ int apoint_hilt(void); struct apoint *apoint_new(char *, char *, long, long, char); int apoint_cut(unsigned *, unsigned *); void apoint_paste(unsigned *, unsigned *, int); -unsigned apoint_inday(struct apoint *, long); +unsigned apoint_inday(struct apoint *, long *); void apoint_sec2str(struct apoint *, long, char *, char *); void apoint_write(struct apoint *, FILE *); struct apoint *apoint_scan(FILE *, struct tm, struct tm, char, char *); @@ -692,7 +692,7 @@ void event_free_bkp(void); void event_llist_init(void); void event_llist_free(void); struct event *event_new(char *, char *, long, int); -unsigned event_inday(struct event *, long); +unsigned event_inday(struct event *, long *); void event_write(struct event *, FILE *); struct event *event_scan(FILE *, struct tm, int, char *); void event_delete_bynum(long, unsigned, enum eraseflg); @@ -869,8 +869,8 @@ unsigned recur_item_find_occurrence(long, long, llist_t *, int, unsigned recur_apoint_find_occurrence(struct recur_apoint *, long, unsigned *); unsigned recur_event_find_occurrence(struct recur_event *, long, unsigned *); unsigned recur_item_inday(long, long, llist_t *, int, int, long, long); -unsigned recur_apoint_inday(struct recur_apoint *, long); -unsigned recur_event_inday(struct recur_event *, long); +unsigned recur_apoint_inday(struct recur_apoint *, long *); +unsigned recur_event_inday(struct recur_event *, long *); void recur_event_erase(long, unsigned, unsigned, enum eraseflg); void recur_apoint_erase(long, unsigned, unsigned, enum eraseflg); void recur_exc_scan(llist_t *, FILE *); |