diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-06-29 11:23:11 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-07-06 01:54:09 +0200 |
commit | a1394e98330eaaae67eb1567013d27ae1a25b77f (patch) | |
tree | cc0030855f678340dbaabb807d4c4a4c58961d46 /src/calcurse.h | |
parent | 1c53c9d8c369d228c0fd0314b9915d218b5f5dca (diff) | |
download | calcurse-a1394e98330eaaae67eb1567013d27ae1a25b77f.zip |
Refactor *_dup()
* Actually duplicate an item instead of copying data only.
* Properly clone an item without a note.
* Mark *_dup() public.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/calcurse.h')
-rw-r--r-- | src/calcurse.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/calcurse.h b/src/calcurse.h index 714852e..afbf1b0 100644 --- a/src/calcurse.h +++ b/src/calcurse.h @@ -593,6 +593,7 @@ enum save_display { /* apoint.c */ extern llist_ts_t alist_p; void apoint_free_bkp(void); +struct apoint *apoint_dup(struct apoint *); void apoint_free(struct apoint *); void apoint_llist_init(void); void apoint_llist_free(void); @@ -689,6 +690,7 @@ void dmon_stop(void); /* event.c */ extern llist_t eventlist; void event_free_bkp(void); +struct event *event_dup(struct event *); void event_free(struct event *); void event_llist_init(void); void event_llist_free(void); @@ -849,6 +851,8 @@ void pcal_export_data(FILE *); /* recur.c */ extern llist_ts_t recur_alist_p; extern llist_t recur_elist; +struct recur_event *recur_event_dup(struct recur_event *); +struct recur_apoint *recur_apoint_dup(struct recur_apoint *); void recur_event_free_bkp(void); void recur_apoint_free_bkp(void); void recur_event_free(struct recur_event *); |