Grid Community Toolkit  6.2.1653033972 (tag: v6.2.20220524)
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
globus_i_xio_test_drivers.h
1 /*
2  * Copyright 1999-2006 University of Chicago
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef _TEST_DRIVERS_
18 #define _TEST_DRIVERS_
19 
20 GlobusDebugDeclare(GLOBUS_XIO_TEST);
21 
22 enum
23 {
24  GLOBUS_XIO_TEST_DEBUG_TRACE = 1,
25  GLOBUS_XIO_TEST_DEBUG_INTERNAL_TRACE = 2,
26  GLOBUS_XIO_TEST_DEBUG_INFO_VERBOSE = 4,
27  GLOBUS_XIO_TEST_DEBUG_STATE = 8
28 };
29 
30 #define GlobusXIOTestDebugPrintf(level, message) \
31  GlobusDebugPrintf(GLOBUS_XIO_TEST, level, message)
32 #define GlobusXIOTestDebugEnter() \
33  GlobusXIOTestDebugPrintf( \
34  GLOBUS_XIO_TEST_DEBUG_TRACE, \
35  ("[%s] Entering\n", _xio_name))
36 
37 #define GlobusXIOTestDebugExit() \
38  GlobusXIOTestDebugPrintf( \
39  GLOBUS_XIO_TEST_DEBUG_TRACE, \
40  ("[%s] Exiting\n", _xio_name))
41 
42 #define GlobusXIOTestDebugExitWithError() \
43  GlobusXIOTestDebugPrintf( \
44  GLOBUS_XIO_TEST_DEBUG_TRACE, \
45  ("[%s] Exiting with error\n", _xio_name))
46 
47 #define GlobusXIOTestDebugInternalEnter() \
48  GlobusXIOTestDebugPrintf( \
49  GLOBUS_XIO_TEST_DEBUG_INTERNAL_TRACE, \
50  ("[%s] I Entering\n", _xio_name))
51 
52 #define GlobusXIOTestDebugInternalExit() \
53  GlobusXIOTestDebugPrintf( \
54  GLOBUS_XIO_TEST_DEBUG_INTERNAL_TRACE, \
55  ("[%s] I Exiting\n", _xio_name))
56 
57 #define GlobusXIOTestDebugInternalExitWithError() \
58  GlobusXIOTestDebugPrintf( \
59  GLOBUS_XIO_TEST_DEBUG_INTERNAL_TRACE, \
60  ("[%s] I Exiting with error\n", _xio_name))
61 
62 #endif