xref: /illumos-gate/usr/src/lib/udapl/libdat/include/dat/udat_config.h (revision 1da57d551424de5a9d469760be7c4b4d4f10a755)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright (c) 2002-2004, Network Appliance, Inc. All rights reserved.
24  */
25 
26 /*
27  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
28  * Use is subject to license terms.
29  */
30 
31 #ifndef _UDAT_CONFIG_H_
32 #define	_UDAT_CONFIG_H_
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
38 /*
39  *
40  * HEADER: udat_config.h
41  *
42  * PURPOSE: provides uDAPL configuration information.
43  *
44  * Description: Header file for "uDAPL: User Direct Access Programming
45  *		Library, Version: 1.2"
46  *
47  */
48 
49 
50 #define	DAT_VERSION_MAJOR 1
51 #define	DAT_VERSION_MINOR 2
52 
53 /*
54  * The official header files will default DAT_THREADSAFE to DAT_TRUE. If
55  * your project does not wish to use this default, you must ensure that
56  * DAT_THREADSAFE will be set to DAT_FALSE. This may be done by an
57  * explicit #define in a common project header file that is included
58  * before any DAT header files, or through command line directives to the
59  * compiler (presumably controlled by the make environment).
60  */
61 
62 /*
63  * A site, project or platform may consider setting an alternate default
64  * via their make rules, but are discouraged from doing so by editing
65  * the official header files.
66  */
67 
68 /*
69  * The Reference Implementation is not Thread Safe.  The Reference
70  * Implementation has chosen to go with the first method and define it
71  * explicitly in the header file.
72  */
73 
74 #define	DAT_THREADSAFE DAT_FALSE
75 
76 #ifndef DAT_THREADSAFE
77 #define	DAT_THREADSAFE DAT_TRUE
78 #endif /* DAT_THREADSAFE */
79 
80 #ifdef __cplusplus
81 }
82 #endif
83 
84 #endif /* _UDAT_CONFIG_H_ */
85