]> code.citadel.org Git - citadel.git/blobdiff - citadel/vcard.c
* Eliminate EVT_OUTPUTMSG server extensions (don't need them anymore)
[citadel.git] / citadel / vcard.c
index 3906c4c22daf58490937c1ed6094f5163eb08f21..bf46fd9e929fe71cd19a5ecd9c66f5030d3de42f 100644 (file)
@@ -30,7 +30,6 @@
 #include <string.h>
 #include <errno.h>
 #include <limits.h>
-#include <syslog.h>
 
 #include "citadel.h"
 #include "server.h"
@@ -54,6 +53,19 @@ struct vCard *vcard_new() {
 }
 
 
+/*
+ * Add a property to a vCard
+ */
+void vcard_add_prop(struct vCard *v, char *propname, char *propvalue) {
+       ++v->numprops;
+       v->prop = reallok(v->prop,
+               (v->numprops * sizeof(char *) * 2) );
+       v->prop[v->numprops-1].name = strdoop(propname);
+       v->prop[v->numprops-1].value = strdoop(propvalue);
+}
+
+
+
 /*
  * Constructor (supply serialized vCard)
  */
@@ -164,8 +176,6 @@ char *vcard_get_prop(struct vCard *v, char *propname,
 }
 
 
-
-
 /*
  * Destructor
  */