]> git.sur5r.net Git - openldap/blob - include/ldap_features.hin
d119a8785c4df9faaf3622a3276f5c629bd70c08
[openldap] / include / ldap_features.hin
1 /* $OpenLDAP$ */
2 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
3  *
4  * Copyright 1998-2017 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
16 /* 
17  * LDAP Features
18  */
19
20 #ifndef _LDAP_FEATURES_H
21 #define _LDAP_FEATURES_H 1
22
23 /* OpenLDAP API version macros */
24 #undef LDAP_VENDOR_VERSION
25 #undef LDAP_VENDOR_VERSION_MAJOR
26 #undef LDAP_VENDOR_VERSION_MINOR
27 #undef LDAP_VENDOR_VERSION_PATCH
28
29 /*
30 ** WORK IN PROGRESS!
31 **
32 ** OpenLDAP reentrancy/thread-safeness should be dynamically
33 ** checked using ldap_get_option().
34 **
35 ** The -lldap implementation is not thread-safe.
36 **
37 ** The -lldap_r implementation is:
38 **              LDAP_API_FEATURE_THREAD_SAFE (basic thread safety)
39 ** but also be:
40 **              LDAP_API_FEATURE_SESSION_THREAD_SAFE
41 **              LDAP_API_FEATURE_OPERATION_THREAD_SAFE
42 **
43 ** The preprocessor flag LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
44 ** can be used to determine if -lldap_r is available at compile
45 ** time.  You must define LDAP_THREAD_SAFE if and only if you
46 ** link with -lldap_r.
47 **
48 ** If you fail to define LDAP_THREAD_SAFE when linking with
49 ** -lldap_r or define LDAP_THREAD_SAFE when linking with -lldap,
50 ** provided header definitions and declarations may be incorrect.
51 **
52 */
53
54 /* is -lldap_r available or not */
55 #undef LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
56
57 /* LDAP v2 Referrals */
58 #undef LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
59
60 #endif /* LDAP_FEATURES */