diff options
author | Federico Mena Quintero <federico@helixcode.com> | 2000-07-27 02:12:29 +0800 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2000-07-27 02:12:29 +0800 |
commit | 04122bc68e4432acb7b578c9ec9677289b1a13f8 (patch) | |
tree | a94d757d58a9ae13b77270945e6309449ef0ecb7 /calendar/cal-util/cal-component.h | |
parent | 9a02c84d3a161d16beba8116f646a925334c25e8 (diff) | |
download | gsoc2013-evolution-04122bc68e4432acb7b578c9ec9677289b1a13f8.tar.gz gsoc2013-evolution-04122bc68e4432acb7b578c9ec9677289b1a13f8.tar.zst gsoc2013-evolution-04122bc68e4432acb7b578c9ec9677289b1a13f8.zip |
Put all the functions used to free returned values all together.
2000-07-26 Federico Mena Quintero <federico@helixcode.com>
* cal-util/cal-component.c: Put all the functions used to free
returned values all together.
(cal_component_set_rdate_list): Oops, mark SEQUENCE property to be
incremented since the RFC requires it.
(scan_property): Handle the EXDATE property.
(scan_exdate): Likewise.
(free_icalcomponent): Likewise.
(cal_component_get_exdate_list): Likewise.
(cal_component_set_exdate_list): Likewise.
(cal_component_free_exdate_list): Likewise.
svn path=/trunk/; revision=4353
Diffstat (limited to 'calendar/cal-util/cal-component.h')
-rw-r--r-- | calendar/cal-util/cal-component.h | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/calendar/cal-util/cal-component.h b/calendar/cal-util/cal-component.h index 2d47746eda..0b745baa9d 100644 --- a/calendar/cal-util/cal-component.h +++ b/calendar/cal-util/cal-component.h @@ -140,18 +140,13 @@ void cal_component_set_uid (CalComponent *comp, const char *uid); void cal_component_get_categories_list (CalComponent *comp, GSList **categ_list); void cal_component_set_categories_list (CalComponent *comp, GSList *categ_list); -void cal_component_free_categories_list (GSList *categ_list); void cal_component_get_classification (CalComponent *comp, CalComponentClassification *classif); void cal_component_set_classification (CalComponent *comp, CalComponentClassification classif); -void cal_component_free_text_list (GSList *text_list); - void cal_component_get_comment_list (CalComponent *comp, GSList **text_list); void cal_component_set_comment_list (CalComponent *comp, GSList *text_list); -void cal_component_free_icaltimetype (struct icaltimetype *t); - void cal_component_get_completed (CalComponent *comp, struct icaltimetype **t); void cal_component_set_completed (CalComponent *comp, struct icaltimetype *t); @@ -161,8 +156,6 @@ void cal_component_set_created (CalComponent *comp, struct icaltimetype *t); void cal_component_get_description_list (CalComponent *comp, GSList **text_list); void cal_component_set_description_list (CalComponent *comp, GSList *text_list); -void cal_component_free_datetime (CalComponentDateTime *dt); - void cal_component_get_dtend (CalComponent *comp, CalComponentDateTime *dt); void cal_component_set_dtend (CalComponent *comp, CalComponentDateTime *dt); @@ -175,17 +168,17 @@ void cal_component_set_dtstart (CalComponent *comp, CalComponentDateTime *dt); void cal_component_get_due (CalComponent *comp, CalComponentDateTime *dt); void cal_component_set_due (CalComponent *comp, CalComponentDateTime *dt); +void cal_component_get_exdate_list (CalComponent *comp, GSList **period_list); +void cal_component_set_exdate_list (CalComponent *comp, GSList *period_list); + void cal_component_get_last_modified (CalComponent *comp, struct icaltimetype **t); void cal_component_set_last_modified (CalComponent *comp, struct icaltimetype *t); -void cal_component_free_period_list (GSList *period_list); - void cal_component_get_rdate_list (CalComponent *comp, GSList **period_list); void cal_component_set_rdate_list (CalComponent *comp, GSList *period_list); void cal_component_get_sequence (CalComponent *comp, int **sequence); void cal_component_set_sequence (CalComponent *comp, int *sequence); -void cal_component_free_sequence (int *sequence); void cal_component_get_summary (CalComponent *comp, CalComponentText *summary); void cal_component_set_summary (CalComponent *comp, CalComponentText *summary); @@ -196,6 +189,16 @@ void cal_component_set_transparency (CalComponent *comp, CalComponentTransparenc void cal_component_get_url (CalComponent *comp, const char **url); void cal_component_set_url (CalComponent *comp, const char *url); +/* Functions to free returned values */ + +void cal_component_free_categories_list (GSList *categ_list); +void cal_component_free_datetime (CalComponentDateTime *dt); +void cal_component_free_exdate_list (GSList *exdate_list); +void cal_component_free_icaltimetype (struct icaltimetype *t); +void cal_component_free_period_list (GSList *period_list); +void cal_component_free_sequence (int *sequence); +void cal_component_free_text_list (GSList *text_list); + /* Alarms */ typedef enum { |