]> code.citadel.org Git - citadel.git/blobdiff - libcitadel/lib/vcard.c
* add strbuf wrapper arround vcard parser
[citadel.git] / libcitadel / lib / vcard.c
index 2c8a7b65f06047ea1a46a9ec6d9297ac06d85364..8acef10586a3548dce2d21fd158a646b257d9b0a 100644 (file)
@@ -91,7 +91,12 @@ void vcard_add_prop(struct vCard *v, char *propname, char *propvalue) {
        v->prop[v->numprops-1].value = strdup(propvalue);
 }
 
-
+/*
+ * Constructor - returns a new struct vcard given a serialized vcard
+ */
+struct vCard *VCardLoad(StrBuf *vbtext) {
+       return vcard_load((char*)ChrPtr(vbtext));
+}
 
 /*
  * Constructor - returns a new struct vcard given a serialized vcard