aboutsummaryrefslogtreecommitdiffstats
path: root/libical
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@ximian.com>2001-09-12 06:00:22 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2001-09-12 06:00:22 +0800
commitb55a868f79896e7f5d4f69252e81e433bafd618c (patch)
tree689bf198f16a410b0948e1649480c8d858d099c9 /libical
parentd0196161ec51f0878bede0fa2163dc1c8ddf8990 (diff)
downloadgsoc2013-evolution-b55a868f79896e7f5d4f69252e81e433bafd618c.tar
gsoc2013-evolution-b55a868f79896e7f5d4f69252e81e433bafd618c.tar.gz
gsoc2013-evolution-b55a868f79896e7f5d4f69252e81e433bafd618c.tar.bz2
gsoc2013-evolution-b55a868f79896e7f5d4f69252e81e433bafd618c.tar.lz
gsoc2013-evolution-b55a868f79896e7f5d4f69252e81e433bafd618c.tar.xz
gsoc2013-evolution-b55a868f79896e7f5d4f69252e81e433bafd618c.tar.zst
gsoc2013-evolution-b55a868f79896e7f5d4f69252e81e433bafd618c.zip
Generate an ICAL_ATTACH_VALUE value from the string.
2001-09-11 Federico Mena Quintero <federico@ximian.com> * src/libical/icalvalue.c (icalvalue_new_from_string_with_error): Generate an ICAL_ATTACH_VALUE value from the string. svn path=/trunk/; revision=12769
Diffstat (limited to 'libical')
-rw-r--r--libical/ChangeLog5
-rw-r--r--libical/src/libical/icalvalue.c15
2 files changed, 18 insertions, 2 deletions
diff --git a/libical/ChangeLog b/libical/ChangeLog
index ba2c98c222..4a3ae383d6 100644
--- a/libical/ChangeLog
+++ b/libical/ChangeLog
@@ -1,3 +1,8 @@
+2001-09-11 Federico Mena Quintero <federico@ximian.com>
+
+ * src/libical/icalvalue.c (icalvalue_new_from_string_with_error):
+ Generate an ICAL_ATTACH_VALUE value from the string.
+
2001-09-10 Damon Chaplin <damon@ximian.com>
* src/libical/icalcomponent.c (icalcomponent_compare_vtimezones):
diff --git a/libical/src/libical/icalvalue.c b/libical/src/libical/icalvalue.c
index 6b887d3be5..adcf6abbe5 100644
--- a/libical/src/libical/icalvalue.c
+++ b/libical/src/libical/icalvalue.c
@@ -276,9 +276,20 @@ icalvalue_new_from_string_with_error(icalvalue_kind kind,const char* str,icalpro
}
switch (kind){
-
case ICAL_ATTACH_VALUE:
- case ICAL_BINARY_VALUE:
+ {
+ icalattach *attach;
+
+ attach = icalattach_new_from_url (str);
+ if (!attach)
+ break;
+
+ value = icalvalue_new_attach (attach);
+ icalattach_unref (attach);
+ break;
+ }
+
+ case ICAL_BINARY_VALUE:
case ICAL_BOOLEAN_VALUE:
{
/* HACK */