diff options
author | Federico Mena Quintero <federico@helixcode.com> | 2000-07-01 16:24:43 +0800 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2000-07-01 16:24:43 +0800 |
commit | ec8bc2a47c2847190b12a77f6598a9f93d157791 (patch) | |
tree | 60a4037ea951489e7f3cb8fa7db9ad11294f24a3 /calendar/cal-util/cal-component.h | |
parent | ee429c5adad0323daf057fb4b437fc7703273c24 (diff) | |
download | gsoc2013-evolution-ec8bc2a47c2847190b12a77f6598a9f93d157791.tar.gz gsoc2013-evolution-ec8bc2a47c2847190b12a77f6598a9f93d157791.tar.zst gsoc2013-evolution-ec8bc2a47c2847190b12a77f6598a9f93d157791.zip |
Handle the DESCRIPTION property. There can be multiple descriptions with
2000-07-01 Federico Mena Quintero <federico@helixcode.com>
* cal-util/cal-component.c (cal_component_get_description_list):
Handle the DESCRIPTION property. There can be multiple
descriptions with parameters each, so we deal with a list instead
of a single structure.
(cal_component_set_description_list): Ditto.
(cal_component_free_description_list): Ditto.
(scan_property): Ditto.
(scan_description): Ditto.
svn path=/trunk/; revision=3845
Diffstat (limited to 'calendar/cal-util/cal-component.h')
-rw-r--r-- | calendar/cal-util/cal-component.h | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/calendar/cal-util/cal-component.h b/calendar/cal-util/cal-component.h index bc869670c8..e0adcd02a0 100644 --- a/calendar/cal-util/cal-component.h +++ b/calendar/cal-util/cal-component.h @@ -51,6 +51,24 @@ typedef enum { CAL_COMPONENT_TIMEZONE } CalComponentVType; +/* Structures to return properties and their parameters */ + +typedef struct { + /* Summary string */ + const char *value; + + /* Alternate representation URI */ + const char *altrep_param; +} CalComponentPropSummary; + +typedef struct { + /* Description string */ + const char *value; + + /* Alternate representation URI */ + const char *altrep_param; +} CalComponentDescription; + typedef struct _CalComponent CalComponent; typedef struct _CalComponentClass CalComponentClass; @@ -81,8 +99,12 @@ CalComponentVType cal_component_get_vtype (CalComponent *comp); const char *cal_component_get_uid (CalComponent *comp); void cal_component_set_uid (CalComponent *comp, const char *uid); -void cal_component_get_summary (CalComponent *comp, const char **summary, const char **altrep); -void cal_component_set_summary (CalComponent *comp, const char *summary, const char *altrep); +void cal_component_get_summary (CalComponent *comp, CalComponentPropSummary *summary); +void cal_component_set_summary (CalComponent *comp, const CalComponentPropSummary *summary); + +void cal_component_get_description_list (CalComponent *comp, GSList **desc_list); +void cal_component_set_description_list (CalComponent *comp, GSList *desc_list); +void cal_component_free_description_list (GSList *desc_list); |