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>
This commit is contained in:
@@ -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 *);
|
||||
|
||||
Reference in New Issue
Block a user