test/drivers/globus_i_xio_test_drivers.h

00001 /*
00002  * Copyright 1999-2006 University of Chicago
00003  * 
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  * 
00008  * http://www.apache.org/licenses/LICENSE-2.0
00009  * 
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00017 #ifndef _TEST_DRIVERS_
00018 #define _TEST_DRIVERS_
00019 
00020 GlobusDebugDeclare(GLOBUS_XIO_TEST);
00021 
00022 enum
00023 {
00024     GLOBUS_XIO_TEST_DEBUG_TRACE = 1,
00025     GLOBUS_XIO_TEST_DEBUG_INTERNAL_TRACE = 2,
00026     GLOBUS_XIO_TEST_DEBUG_INFO_VERBOSE = 4,
00027     GLOBUS_XIO_TEST_DEBUG_STATE = 8
00028 };
00029 
00030 #define GlobusXIOTestDebugPrintf(level, message)                            \
00031     GlobusDebugPrintf(GLOBUS_XIO_TEST, level, message)
00032 #define GlobusXIOTestDebugEnter()                                           \
00033     GlobusXIOTestDebugPrintf(                                               \
00034         GLOBUS_XIO_TEST_DEBUG_TRACE,                                        \
00035         ("[%s] Entering\n", _xio_name))
00036 
00037 #define GlobusXIOTestDebugExit()                                            \
00038     GlobusXIOTestDebugPrintf(                                               \
00039         GLOBUS_XIO_TEST_DEBUG_TRACE,                                        \
00040         ("[%s] Exiting\n", _xio_name))
00041 
00042 #define GlobusXIOTestDebugExitWithError()                                   \
00043     GlobusXIOTestDebugPrintf(                                               \
00044         GLOBUS_XIO_TEST_DEBUG_TRACE,                                        \
00045         ("[%s] Exiting with error\n", _xio_name))
00046 
00047 #define GlobusXIOTestDebugInternalEnter()                                   \
00048     GlobusXIOTestDebugPrintf(                                               \
00049         GLOBUS_XIO_TEST_DEBUG_INTERNAL_TRACE,                               \
00050         ("[%s] I Entering\n", _xio_name))
00051 
00052 #define GlobusXIOTestDebugInternalExit()                                    \
00053     GlobusXIOTestDebugPrintf(                                               \
00054         GLOBUS_XIO_TEST_DEBUG_INTERNAL_TRACE,                               \
00055         ("[%s] I Exiting\n", _xio_name))
00056 
00057 #define GlobusXIOTestDebugInternalExitWithError()                           \
00058     GlobusXIOTestDebugPrintf(                                               \
00059         GLOBUS_XIO_TEST_DEBUG_INTERNAL_TRACE,                               \
00060         ("[%s] I Exiting with error\n", _xio_name))
00061 
00062 #endif

Generated on 2 May 2016 for globus_xio by  doxygen 1.4.7