aboutsummaryrefslogtreecommitdiffstats
path: root/src/calcurse.h
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-06-26 14:07:14 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2012-06-30 14:34:36 +0200
commit954e3fd8ee08054e79013e6af69c8026bce929a7 (patch)
tree8c0555c2f8e522c32e94b5b462dd6ca59068e2b0 /src/calcurse.h
parent318e685ffe73587a01049d92aa0f60a46c1cfb16 (diff)
downloadcalcurse-954e3fd8ee08054e79013e6af69c8026bce929a7.tar.gz
calcurse-954e3fd8ee08054e79013e6af69c8026bce929a7.zip
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>
Diffstat (limited to 'src/calcurse.h')
-rw-r--r--src/calcurse.h8
1 files changed, 4 insertions, 4 deletions
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);