diff options
Diffstat (limited to 'libical')
-rw-r--r-- | libical/ChangeLog | 5 | ||||
-rw-r--r-- | libical/src/libical/icalcomponent.c | 13 |
2 files changed, 17 insertions, 1 deletions
diff --git a/libical/ChangeLog b/libical/ChangeLog index a08e9535a8..912cc73a1b 100644 --- a/libical/ChangeLog +++ b/libical/ChangeLog @@ -1,3 +1,8 @@ +2003-08-07 Rodrigo Moya <rodrigo@ximian.com> + + * src/libical/icalcomponent.c (icalcomponent_get_uid): added missing + implementation. + 2003-05-14 Rodrigo Moya <rodrigo@ximian.com> Fixes #41579 diff --git a/libical/src/libical/icalcomponent.c b/libical/src/libical/icalcomponent.c index ce819ddbd6..c771dc3cf9 100644 --- a/libical/src/libical/icalcomponent.c +++ b/libical/src/libical/icalcomponent.c @@ -1459,7 +1459,18 @@ void icalcomponent_set_comment(icalcomponent* comp, const char* v); const char* icalcomponent_get_comment(icalcomponent* comp); void icalcomponent_set_uid(icalcomponent* comp, const char* v); -const char* icalcomponent_get_uid(icalcomponent* comp); + +const char* icalcomponent_get_uid(icalcomponent* comp) +{ + icalcomponent *inner = icalcomponent_get_inner (comp); + icalproperty *prop = icalcomponent_get_first_property (inner, ICAL_UID_PROPERTY); + + if (prop == 0) { + return 0; + } + + return icalproperty_get_uid (prop); +} void icalcomponent_set_recurrenceid(icalcomponent* comp, struct icaltimetype v); |