sdap_fd_events.c revision b9303e06737e6a024239e9c9a6f05fb9ed0a977e
/*
SSSD
Helper routines for file descriptor events
Authors:
Sumit Bose <sbose@redhat.com>
Copyright (C) 2010 Red Hat
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "providers/ldap/sdap_async_private.h"
struct sdap_fd_events {
#ifdef HAVE_LDAP_CONNCB
struct ldap_conncb *conncb;
#else
#endif
};
{
int ret;
if (ret != LDAP_OPT_SUCCESS) {
*fd = -1;
return EIO;
}
return EOK;
}
{
#ifdef HAVE_LDAP_CONNCB
#endif
return EOK;
}
#ifdef HAVE_LDAP_CONNCB
{
int lret;
struct ldap_cb_data);
if (lret != LDAP_OPT_SUCCESS) {
} else {
}
return EOK;
}
struct ldap_conncb *ctx)
{
int ret;
struct fd_event_item *fd_event_item;
struct ldap_cb_data);
"callback data.\n"));
return EINVAL;
}
if (ret == -1) {
return EINVAL;
}
if (fd_event_item == NULL) {
return ENOMEM;
}
return ENOMEM;
}
return LDAP_SUCCESS;
}
struct ldap_conncb *ctx)
{
int ret;
struct fd_event_item *fd_event_item;
struct ldap_cb_data);
return;
}
if (ret == -1) {
return;
}
break;
}
}
if (fd_event_item == NULL) {
return;
}
return;
}
#else
struct tevent_context *ev)
{
int fd;
int ret;
if (sh->sdap_fd_events) {
"initialized sdap_fd_events.\n"));
return EINVAL;
}
if (!sh->sdap_fd_events) {
return ENOMEM;
}
sh);
return ENOMEM;
}
return EOK;
}
#endif
struct tevent_context *ev)
{
#ifdef HAVE_LDAP_CONNCB
int ret;
struct ldap_cb_data *cb_data;
goto fail;
}
struct ldap_conncb);
goto fail;
}
goto fail;
}
if (ret != LDAP_OPT_SUCCESS) {
goto fail;
}
return EOK;
fail:
return ret;
#else
return EOK;
#endif
}
{
#ifndef HAVE_LDAP_CONNCB
#endif
return ret;
}