00001 /* 00002 * $Id: vcard.h 5147 2007-05-08 15:36:22Z ajc $ 00003 * Copyright (C) 1999 by Art Cancro 00004 * This code is freely redistributable under the terms of the GNU General 00005 * Public License. All other rights reserved. 00006 */ 00013 00014 #define CTDL_VCARD_MAGIC 0xa1f9 00019 struct vCard { 00020 int magic; 00021 int numprops; 00022 struct vCardProp { 00023 char *name; 00024 char *value; 00025 } *prop; 00026 }; 00027 00028 00029 struct vCard *vcard_new(void); 00030 struct vCard *vcard_load(char *); 00031 void vcard_free(struct vCard *); 00032 void vcard_set_prop(struct vCard *v, char *name, char *value, int append); 00033 char *vcard_get_prop(struct vCard *v, char *propname, int is_partial, 00034 int instance, int return_propname); 00035 char *vcard_serialize(struct vCard *); 00036 void vcard_add_prop(struct vCard *v, char *propname, char *propvalue); 00037 00038