c8fbcfec8a3b4c580ada3605a37eb2d64ebb955a
[citadel.git] / webcit / vcard.h
1 /*
2  * $Id$
3  *
4  * vCard implementation for Citadel
5  *
6  * Copyright (C) 1999 by Art Cancro
7  * This code is freely redistributable under the terms of the GNU General
8  * Public License.  All other rights reserved.
9  */
10
11
12 #define CTDL_VCARD_MAGIC        0xa1f9
13
14 /*
15  * This data structure represents a vCard object currently in memory.
16  */
17 struct vCard {
18         int magic;
19         int numprops;
20         struct vCardProp {
21                 char *name;
22                 char *value;
23         } *prop;
24 };
25
26
27 struct vCard *vcard_new(void);
28 struct vCard *vcard_load(char *);
29 void vcard_free(struct vCard *);
30 void vcard_set_prop(struct vCard *v, char *name, char *value, int append);
31 char *vcard_get_prop(struct vCard *v, char *propname, int is_partial,
32                         int instance, int return_propname);
33 char *vcard_serialize(struct vCard *);