More Doxygen. API cleanup.
[vcard2ldap.git] / include / v2l_vcard.h
blob92d7b5fa3db4a4755ddcecfb2b646f80f675cc94
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 /*! \file v2l_vcard.h
18 \brief XML vCard's to/from LDAP objects translation functions.
21 #ifndef __V2L_VCARD_H
22 #define __V2L_VCARD_H
24 #include <v2l_conn.h>
26 /*! \brief Gets user vCard in xml format
27 \param self Module config
28 \param curr_conn user connection.
29 \return vCard main node, NULL if error.
31 extern xmlnode v2l_vcard_get (v2l_Config *self, v2l_LdapConn *curr_conn);
33 /*! \brief Writes vCard to user LDAP directory entry.
34 \param self Module config
35 \param curr_conn user connection.
36 \param data the vCard
37 \return 1 if no error, otherwise 0
39 extern int v2l_vcard_set (v2l_Config *self, v2l_LdapConn *curr_conn,
40 xmlnode data);
41 #endif