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.
22 /* vCard <-> LDAP mapping functions */
23 typedef v2l_LdapRequest
*(*v2l_Vcard2LdapHandler
) (v2l_LdapRequest
*cur
,
25 typedef xmlnode (*v2l_Ldap2VcardHandler
) (char *attr
, char **vals
, xmlnode x
);
27 /* mapping from vCard to LDAP */
28 typedef struct v2l_Vcard2Ldap
31 v2l_Vcard2LdapHandler set
;
34 /* mapping from LDAP to vCard */
35 typedef struct v2l_Ldap2Vcard
38 v2l_Ldap2VcardHandler set
;
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
,