Add day_item_fork()

Add a new function that can be used to copy one day item into another,
cloning the actual item that is linked.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer
2012-07-04 10:51:26 +02:00
parent a1394e9833
commit 3b259b5620
2 changed files with 26 additions and 0 deletions

View File

@@ -667,6 +667,7 @@ char *day_item_get_mesg(struct day_item *);
char *day_item_get_note(struct day_item *);
long day_item_get_duration(struct day_item *);
int day_item_get_state(struct day_item *);
void day_item_fork(struct day_item *, struct day_item *);
int day_store_items(long, unsigned *, unsigned *, regex_t *);
struct day_items_nb *day_process_storage(struct date *, unsigned,
struct day_items_nb *);