home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ldapsdk.zip / include / ldap_features.h.in < prev    next >
Text File  |  2001-06-02  |  2KB  |  66 lines

  1. /* $OpenLDAP: pkg/ldap/include/ldap_features.h.in,v 1.4.8.3 2001/06/02 00:33:03 kurt Exp $ */
  2. /*
  3.  * Copyright 1998-2001 The OpenLDAP Foundation, Redwood City, California, USA
  4.  * All rights reserved.
  5.  *
  6.  * Redistribution and use in source and binary forms, with or without
  7.  * modification, are permitted only as authorized by the OpenLDAP
  8.  * Public License.  A copy of this license is available at
  9.  * http://www.OpenLDAP.org/license.html or in file LICENSE in the
  10.  * top-level directory of the distribution.
  11.  */
  12.  
  13. /* 
  14.  * LDAP Features
  15.  */
  16.  
  17. #ifndef _LDAP_FEATURES_H
  18. #define _LDAP_FEATURES_H 1
  19.  
  20. /*
  21. ** OpenLDAP reentrancy/thread-safeness should be dynamically
  22. ** checked using ldap_get_option().
  23. **
  24. ** The -lldap implementation may or may not be:
  25. **        LDAP_API_FEATURE_THREAD_SAFE
  26. **
  27. ** The preprocessor flag LDAP_API_FEATURE_X_OPENLDAP_REENTRANT can
  28. ** be used to determine if -lldap is LDAP_API_FEATURE_THREAD_SAFE at
  29. ** compile time.
  30. **
  31. ** The -lldap_r implementation is always THREAD_SAFE but
  32. ** may also be:
  33. **        LDAP_API_FEATURE_SESSION_THREAD_SAFE
  34. **        LDAP_API_FEATURE_OPERATION_THREAD_SAFE
  35. **
  36. ** The preprocessor flag LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
  37. ** can be used to determine if -lldap_r is available at compile
  38. ** time.  You must define LDAP_THREAD_SAFE if and only if you
  39. ** link with -lldap_r.
  40. **
  41. ** If you fail to define LDAP_THREAD_SAFE when linking with
  42. ** -lldap_r or define LDAP_THREAD_SAFE when linking with -lldap,
  43. ** provided header definations and declarations may be incorrect.
  44. **
  45. */
  46.  
  47. /* is -lldap reentrant or not */
  48. #undef LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
  49.  
  50. /* is threadsafe version of -lldap (ie: -lldap_r) *available* or not */
  51. #undef LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
  52.  
  53. /* LDAP v2 Kerberos Bind */
  54. #undef LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND
  55.  
  56. /* LDAP v2 Referrals */
  57. #undef LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
  58.  
  59. /* LDAP Server Side Sort. */
  60. #define LDAP_API_FEATURE_SERVER_SIDE_SORT 1000
  61.  
  62. /* LDAP Virtual List View. */ 
  63. #define LDAP_API_FEATURE_VIRTUAL_LIST_VIEW 1000
  64.  
  65. #endif /* LDAP_FEATURES */
  66.