diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-06-26 13:54:52 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-06-30 14:34:35 +0200 |
commit | 318e685ffe73587a01049d92aa0f60a46c1cfb16 (patch) | |
tree | 3e523f07c69b3ffb20fa94f888dd98e4d2ea3eaa /src/calcurse.h | |
parent | 02c90ba53a658686bad5cb5f88c555d9eef06399 (diff) | |
download | calcurse-318e685ffe73587a01049d92aa0f60a46c1cfb16.zip |
Add an item parameter to various day_*() 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.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/calcurse.h b/src/calcurse.h index 4f1da72..78bd752 100644 --- a/src/calcurse.h +++ b/src/calcurse.h @@ -671,16 +671,16 @@ struct day_items_nb *day_process_storage(struct date *, unsigned, void day_write_pad(long, int, int, int); void day_write_stdout(long, const char *, const char *, const char *, const char *); -void day_popup_item(void); +void day_popup_item(struct day_item *); int day_check_if_item(struct date); unsigned day_chk_busy_slices(struct date, int, int *); int day_cut_item(long, int); int day_paste_item(long, int); struct day_item *day_get_item(int); int day_item_nb(long, int, int); -void day_edit_note(const char *); -void day_view_note(const char *); -void day_item_switch_notify(void); +void day_edit_note(struct day_item *, const char *); +void day_view_note(struct day_item *, const char *); +void day_item_switch_notify(struct day_item *); /* dmon.c */ void dmon_start(int); |