versadac  1
versadac - Scalable Recorder Firmware
ldap_features.h
1 /* $OpenLDAP: pkg/ldap/include/ldap_features.hin,v 1.3.2.3 2008/02/11 23:26:40 kurt Exp $ */
2 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
3  *
4  * Copyright 1998-2008 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 #define LDAP_VENDOR_VERSION 1
25 #define LDAP_VENDOR_VERSION_MAJOR 0
26 #define LDAP_VENDOR_VERSION_MINOR 0
27 #define LDAP_VENDOR_VERSION_PATCH 0
28 */
29 
30 /*
31 ** WORK IN PROGRESS!
32 **
33 ** OpenLDAP reentrancy/thread-safeness should be dynamically
34 ** checked using ldap_get_option().
35 **
36 ** The -lldap implementation is not thread-safe.
37 **
38 ** The -lldap_r implementation is:
39 ** LDAP_API_FEATURE_THREAD_SAFE (basic thread safety)
40 ** but also be:
41 ** LDAP_API_FEATURE_SESSION_THREAD_SAFE
42 ** LDAP_API_FEATURE_OPERATION_THREAD_SAFE
43 **
44 ** The preprocessor flag LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
45 ** can be used to determine if -lldap_r is available at compile
46 ** time. You must define LDAP_THREAD_SAFE if and only if you
47 ** link with -lldap_r.
48 **
49 ** If you fail to define LDAP_THREAD_SAFE when linking with
50 ** -lldap_r or define LDAP_THREAD_SAFE when linking with -lldap,
51 ** provided header definations and declarations may be incorrect.
52 **
53 */
54 
55 /* is -lldap_r available or not */
56 #undef LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
57 
58 /* LDAP v2 Referrals */
59 #undef LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
60 
61 #endif /* LDAP_FEATURES */