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 <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer
2012-06-26 14:07:14 +02:00
parent 318e685ffe
commit 954e3fd8ee
3 changed files with 12 additions and 19 deletions

View File

@@ -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);