openldap.h 964 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* $OpenLDAP$ */
  2. /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  3. *
  4. * Copyright 2019-2024 The OpenLDAP Foundation.
  5. * All rights reserved.
  6. *
  7. * Redistribution and use in source and binary forms, with or without
  8. * modification, are permitted only as authorized by the OpenLDAP
  9. * Public License.
  10. *
  11. * A copy of this license is available in file LICENSE in the
  12. * top-level directory of the distribution or, alternatively, at
  13. * <http://www.OpenLDAP.org/license.html>.
  14. */
  15. /* openldap.h - Header for openldap specific interfaces. */
  16. #ifndef _OPENLDAP_H
  17. #define _OPENLDAP_H 1
  18. #include <ldap.h>
  19. LDAP_BEGIN_DECL
  20. #define LDAP_PROTO_TCP 1 /* ldap:// */
  21. #define LDAP_PROTO_UDP 2 /* reserved */
  22. #define LDAP_PROTO_IPC 3 /* ldapi:// */
  23. #define LDAP_PROTO_EXT 4 /* user-defined socket/sockbuf */
  24. LDAP_F( int )
  25. ldap_init_fd LDAP_P((
  26. ber_socket_t fd,
  27. int proto,
  28. LDAP_CONST char *url,
  29. LDAP **ldp ));
  30. LDAP_END_DECL
  31. #endif /* _OPENLDAP_H */