Grid Community Toolkit  6.2.1629922860 (tag: v6.2.20210826)
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
globus_gram_jobmanager_callout_error.h
Go to the documentation of this file.
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 
23 #ifndef GLOBUS_GRAM_JOBMANAGER_CALLOUT_ERROR_H
24 #define GLOBUS_GRAM_JOBMANAGER_CALLOUT_ERROR_H
25 
26 
27 #include "globus_common.h"
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
77 #define GLOBUS_GRAM_JOBMANAGER_CALLOUT_ERROR_MODULE (&globus_i_gram_jobmanager_callout_error_module)
78 
79 extern
80 globus_module_descriptor_t globus_i_gram_jobmanager_callout_error_module;
81 
92 typedef enum
93 {
106 }
108 
109 extern char * globus_i_gram_jobmanager_callout_error_strings[];
110 
111 #define GLOBUS_GRAM_JOBMANAGER_CALLOUT_ERROR(__RESULT, __TYPE, __ERRSTR) \
112 { \
113  char * _tmp_str_ = \
114  globus_common_create_string __ERRSTR; \
115  (__RESULT) = globus_error_put( \
116  globus_error_construct_error( \
117  GLOBUS_GRAM_JOBMANAGER_CALLOUT_ERROR_MODULE, \
118  (__RESULT) ? globus_error_get(__RESULT) : NULL, \
119  __TYPE, \
120  __FILE__, \
121  "GRAM Authorization Callout", \
122  __LINE__, \
123  "%s%s%s", \
124  globus_i_gram_jobmanager_callout_error_strings[__TYPE], \
125  _tmp_str_ ? ": " : "", \
126  _tmp_str_ ? _tmp_str_ : "")); \
127  if(_tmp_str_) free(_tmp_str_); \
128 }
129 
130 
131 #ifdef __cplusplus
132 }
133 #endif
134 
135 #endif
Definition: globus_gram_jobmanager_callout_error.h:103
Definition: globus_gram_jobmanager_callout_error.h:99
Definition: globus_gram_jobmanager_callout_error.h:95
Definition: globus_gram_jobmanager_callout_error.h:101
Definition: globus_gram_jobmanager_callout_error.h:97
globus_gram_jobmanager_callout_error_t
Definition: globus_gram_jobmanager_callout_error.h:92
Headers common to all of Globus.
Definition: globus_gram_jobmanager_callout_error.h:105
Module Descriptor.
Definition: globus_module.h:71