When opening the Berkeley DB environment, step
[citadel.git] / citadel / 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 void vcard_add_prop(struct vCard *v, char *propname, char *propvalue);
29 struct vCard *vcard_load(char *);
30 void vcard_free(struct vCard *);
31 void vcard_set_prop(struct vCard *v, char *name, char *value, int append);
32 char *vcard_get_prop(struct vCard *v, char *propname, int is_partial,
33                         int instance, int return_propname);
34 char *vcard_serialize(struct vCard *);
35 void vcard_fn_to_n(char *vname, char *n, size_t vname_size);