17 #ifndef GLOBUS_DONT_DOCUMENT_INTERNAL
19 #ifndef GLOBUS_I_GSS_ASSIST_H
20 #define GLOBUS_I_GSS_ASSIST_H
37 extern int globus_i_gsi_gss_assist_debug_level;
38 extern FILE * globus_i_gsi_gss_assist_debug_fstream;
44 #define GLOBUS_I_GSI_GSS_ASSIST_DEBUG(_LEVEL_) \
45 (globus_i_gsi_gss_assist_debug_level >= (_LEVEL_))
47 #define GLOBUS_I_GSI_GSS_ASSIST_DEBUG_FPRINTF(_LEVEL_, _MESSAGE_) \
49 if (GLOBUS_I_GSI_GSS_ASSIST_DEBUG(_LEVEL_)) \
51 globus_libc_fprintf _MESSAGE_; \
55 #define GLOBUS_I_GSI_GSS_ASSIST_DEBUG_FNPRINTF(_LEVEL_, _MESSAGE_) \
57 if (GLOBUS_I_GSI_GSS_ASSIST_DEBUG(_LEVEL_)) \
60 globus_common_create_nstring _MESSAGE_; \
61 globus_libc_fprintf(globus_i_gsi_gss_assist_debug_fstream, \
63 globus_libc_free(_tmp_str_); \
67 #define GLOBUS_I_GSI_GSS_ASSIST_DEBUG_PRINT(_LEVEL_, _MESSAGE_) \
69 if (GLOBUS_I_GSI_GSS_ASSIST_DEBUG(_LEVEL_)) \
71 globus_libc_fprintf(globus_i_gsi_gss_assist_debug_fstream, \
78 #define GLOBUS_I_GSI_GSS_ASSIST_DEBUG(_LEVEL_) 0
79 #define GLOBUS_I_GSI_GSS_ASSIST_DEBUG_FPRINTF(_LEVEL_, _MESSAGE_) {}
80 #define GLOBUS_I_GSI_GSS_ASSIST_DEBUG_FNPRINTF(_LEVEL_, _MESSAGE_) {}
81 #define GLOBUS_I_GSI_GSS_ASSIST_DEBUG_PRINT(_LEVEL, _MESSAGE_) {}
85 #define GLOBUS_I_GSI_GSS_ASSIST_DEBUG_ENTER \
86 GLOBUS_I_GSI_GSS_ASSIST_DEBUG_FPRINTF( \
87 2, (globus_i_gsi_gss_assist_debug_fstream, \
88 "%s entering\n", _function_name_))
90 #define GLOBUS_I_GSI_GSS_ASSIST_DEBUG_EXIT \
91 GLOBUS_I_GSI_GSS_ASSIST_DEBUG_FPRINTF( \
92 2, (globus_i_gsi_gss_assist_debug_fstream, \
93 "%s exiting\n", _function_name_))
97 #define GLOBUS_GSI_GSS_ASSIST_ERROR_RESULT(_RESULT_, _ERRORTYPE_, _ERRSTR_) \
100 globus_common_create_string _ERRSTR_; \
101 _RESULT_ = globus_i_gsi_gss_assist_error_result(_ERRORTYPE_, \
107 globus_libc_free(_tmp_str_); \
110 #define GLOBUS_GSI_GSS_ASSIST_ERROR_CHAIN_RESULT(_TOP_RESULT_, _ERRORTYPE_) \
111 _TOP_RESULT_ = globus_i_gsi_gss_assist_error_chain_result(_TOP_RESULT_, \
119 #define GLOBUS_GSI_GSS_ASSIST_LONG_ERROR_RESULT(_RESULT_, \
125 globus_common_create_string _ERRSTR_; \
126 _RESULT_ = globus_i_gsi_gss_assist_error_result(_ERRORTYPE_, \
132 globus_libc_free(_tmp_str_); \
135 #define GLOBUS_GSI_GSS_ASSIST_LONG_ERROR_CHAIN_RESULT(_TOP_RESULT_, \
138 _TOP_RESULT_ = globus_i_gsi_gss_assist_error_chain_result(_TOP_RESULT_, \
148 extern char * globus_l_gsi_gss_assist_error_strings[];
151 globus_i_gsi_gss_assist_error_result(
153 const char * filename,
154 const char * function_name,
156 const char * short_desc,
157 const char * long_desc);
160 globus_i_gsi_gss_assist_error_chain_result(
163 const char * filename,
164 const char * function_name,
166 const char * short_desc,
167 const char * long_desc);
Mutex.
Definition: globus_thread.h:107
Headers common to all of Globus.
uint32_t globus_result_t
Definition: globus_types.h:99