diff options
author | Sumit Bose <sbose@redhat.com> | 2010-04-15 18:26:18 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-04-26 09:55:10 -0400 |
commit | 25026f0f0e7bdab056a8608c47b3ed163cacadbf (patch) | |
tree | eb772ba6f6d90e154228d15574d64f40f8cba233 /src/providers/ldap/sdap.h | |
parent | e3b1ebdf59b44efd1a8a8c4632ee0c8166da94a5 (diff) | |
download | sssd-25026f0f0e7bdab056a8608c47b3ed163cacadbf.tar.gz sssd-25026f0f0e7bdab056a8608c47b3ed163cacadbf.tar.xz sssd-25026f0f0e7bdab056a8608c47b3ed163cacadbf.zip |
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.
Diffstat (limited to 'src/providers/ldap/sdap.h')
-rw-r--r-- | src/providers/ldap/sdap.h | 6 |
1 files changed, 1 insertions, 5 deletions
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; }; |