From 02c90ba53a658686bad5cb5f88c555d9eef06399 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Tue, 26 Jun 2012 13:29:54 +0200 Subject: Revise *_delete{,_bynum}() Always pass an item instead of passing a date and a index. This makes use of the NULL callback that was added with one of the previous patches. Signed-off-by: Lukas Fleischer --- src/calcurse.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/calcurse.h') diff --git a/src/calcurse.h b/src/calcurse.h index 1702ffe..4f1da72 100644 --- a/src/calcurse.h +++ b/src/calcurse.h @@ -605,7 +605,7 @@ 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 *); -void apoint_delete_bynum(long, unsigned, enum eraseflg); +void apoint_delete(struct apoint *, enum eraseflg); void apoint_scroll_pad_down(int, int); void apoint_scroll_pad_up(int); struct notify_app *apoint_check_next(struct notify_app *, long); @@ -695,7 +695,7 @@ struct event *event_new(char *, char *, long, int); 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); +void event_delete(struct event *, enum eraseflg); void event_paste_item(void); /* help.c */ @@ -871,8 +871,8 @@ 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 *); -void recur_event_erase(long, unsigned, unsigned, enum eraseflg); -void recur_apoint_erase(long, unsigned, unsigned, enum eraseflg); +void recur_event_erase(struct recur_event *, long, unsigned, enum eraseflg); +void recur_apoint_erase(struct recur_apoint *, long, unsigned, enum eraseflg); void recur_exc_scan(llist_t *, FILE *); struct notify_app *recur_apoint_check_next(struct notify_app *, long, long); void recur_apoint_switch_notify(struct recur_apoint *); @@ -900,7 +900,7 @@ char *todo_saved_mesg(void); struct todo *todo_add(char *, int, char *); void todo_write(struct todo *, FILE *); void todo_delete_note_bynum(unsigned); -void todo_delete_bynum(unsigned); +void todo_delete(struct todo *); void todo_flag(void); void todo_chg_priority(int); void todo_update_panel(int); -- cgit v1.2.3