Began making changes to do better handling of character sets.
[citadel.git] / webcit / vcard.h
1 /*
2  * $Id$
3  * Copyright (C) 1999 by Art Cancro
4  * This code is freely redistributable under the terms of the GNU General
5  * Public License.  All other rights reserved.
6  */
7 /**
8  * \defgroup VcardHeader vCard implementation for Citadel
9  * \ingroup VCards
10  *
11  */
12
13 /*@{ */
14 #define CTDL_VCARD_MAGIC        0xa1f9 /**< magic byte vcards start with??? */
15
16 /**
17  * \brief This data structure represents a vCard object currently in memory.
18  */
19 struct vCard {
20         int magic;          /**< the Magic Byte */
21         int numprops;       /**< number of properties this vcard will have */
22         struct vCardProp {  
23                 char *name;         /**< Keyname of the property */
24                 char *value;        /**< value of the property */
25         } *prop;            /**< Vcard Property. Linked list??? */
26 };
27
28
29 struct vCard *vcard_new(void);
30 struct vCard *vcard_load(char *);
31 void vcard_free(struct vCard *);
32 void vcard_set_prop(struct vCard *v, char *name, char *value, int append);
33 char *vcard_get_prop(struct vCard *v, char *propname, int is_partial,
34                         int instance, int return_propname);
35 char *vcard_serialize(struct vCard *);
36
37
38 /*@}*/