Cosmetic fixes
[vcard2ldap.git] / include / v2l_vcard.h
blob3a2b9184fd1ca60315410cc0b4654fda014728e0
1 /*
2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation; either version 2 of the License, or
5 * (at your option) any later version.
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
12 * You should have received a copy of the GNU General Public License
13 * along with this program; if not, write to the Free Software
14 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 #ifndef __V2L_VCARD_H
18 #define __V2L_VCARD_H
20 #include <v2l_conn.h>
22 /* vCard <-> LDAP mapping functions */
23 typedef v2l_LdapRequest *(*v2l_Vcard2LdapHandler) (v2l_LdapRequest *cur,
24 xmlnode x);
25 typedef xmlnode (*v2l_Ldap2VcardHandler) (char *attr, char **vals, xmlnode x);
27 /* mapping from vCard to LDAP */
28 typedef struct v2l_Vcard2Ldap
30 const char *tagname;
31 v2l_Vcard2LdapHandler set;
32 } v2l_Vcard2Ldap;
34 /* mapping from LDAP to vCard */
35 typedef struct v2l_Ldap2Vcard
37 const char *attrname;
38 v2l_Ldap2VcardHandler set;
39 } v2l_Ldap2Vcard;
41 extern xmlnode v2l_vcard_get (v2l_Config *self, v2l_LdapConn *curr_conn);
42 extern int v2l_vcard_set (v2l_Config * self, v2l_LdapConn * curr_conn,
43 xmlnode data);
44 #endif