From 954e3fd8ee08054e79013e6af69c8026bce929a7 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Tue, 26 Jun 2012 14:07:14 +0200 Subject: Add an item parameter to various todo_*() functions These functions operate on arbitrary items. Pull out the code that gets the currently selected item, get the current selection when one of the functions is called and pass it as a parameter. Signed-off-by: Lukas Fleischer --- src/calcurse.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/calcurse.h') diff --git a/src/calcurse.h b/src/calcurse.h index 78bd752..adc742f 100644 --- a/src/calcurse.h +++ b/src/calcurse.h @@ -901,11 +901,11 @@ struct todo *todo_add(char *, int, char *); void todo_write(struct todo *, FILE *); void todo_delete_note_bynum(unsigned); void todo_delete(struct todo *); -void todo_flag(void); -void todo_chg_priority(int); +void todo_flag(struct todo *); +void todo_chg_priority(struct todo *, int); void todo_update_panel(int); -void todo_edit_note(const char *); -void todo_view_note(const char *); +void todo_edit_note(struct todo *, const char *); +void todo_view_note(struct todo *, const char *); void todo_init_list(void); void todo_free_list(void); -- cgit v1.2.3-54-g00ecf