From 5b680ac8ef46fc1714f2ab59a07f68ac386ad89b Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Thu, 15 Apr 2010 18:26:18 +0200 Subject: Make the handling of fd events opaque Depending on the version of the OpenLDAP libraries we use two different schemes to find the file descriptor of the connection to the LDAP server. This patch removes the related ifdefs from the main code and introduces helper functions which can handle the specific cases. --- src/providers/ldap/sdap.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/providers/ldap/sdap.h') diff --git a/src/providers/ldap/sdap.h b/src/providers/ldap/sdap.h index f0e345ec2..aca98457d 100644 --- a/src/providers/ldap/sdap.h +++ b/src/providers/ldap/sdap.h @@ -71,11 +71,7 @@ struct sdap_handle { LDAP *ldap; bool connected; -#ifdef HAVE_LDAP_CONNCB - struct ldap_conncb *conncb; -#else - struct tevent_fd *fde; -#endif + struct sdap_fd_events *sdap_fd_events; struct sdap_op *ops; }; -- cgit