Grid Community Toolkit  6.2.1541705016
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 
73 #define GLOBUS_GRAM_JOBMANAGER_CALLOUT_ERROR_MODULE (&globus_i_gram_jobmanager_callout_error_module)
74 
75 extern
76 globus_module_descriptor_t globus_i_gram_jobmanager_callout_error_module;
77 
87 typedef enum
88 {
101 }
103 
104 extern char * globus_i_gram_jobmanager_callout_error_strings[];
105 
106 #define GLOBUS_GRAM_JOBMANAGER_CALLOUT_ERROR(__RESULT, __TYPE, __ERRSTR) \
107 { \
108  char * _tmp_str_ = \
109  globus_common_create_string __ERRSTR; \
110  (__RESULT) = globus_error_put( \
111  globus_error_construct_error( \
112  GLOBUS_GRAM_JOBMANAGER_CALLOUT_ERROR_MODULE, \
113  (__RESULT) ? globus_error_get(__RESULT) : NULL, \
114  __TYPE, \
115  __FILE__, \
116  "GRAM Authorization Callout", \
117  __LINE__, \
118  "%s%s%s", \
119  globus_i_gram_jobmanager_callout_error_strings[__TYPE], \
120  _tmp_str_ ? ": " : "", \
121  _tmp_str_ ? _tmp_str_ : "")); \
122  if(_tmp_str_) free(_tmp_str_); \
123 }
124 
125 
126 #ifdef __cplusplus
127 }
128 #endif
129 
130 #endif
Definition: globus_gram_jobmanager_callout_error.h:98
Definition: globus_gram_jobmanager_callout_error.h:94
Definition: globus_gram_jobmanager_callout_error.h:90
Definition: globus_gram_jobmanager_callout_error.h:96
Definition: globus_gram_jobmanager_callout_error.h:92
globus_gram_jobmanager_callout_error_t
Definition: globus_gram_jobmanager_callout_error.h:87
Headers common to all of Globus.
Definition: globus_gram_jobmanager_callout_error.h:100
Module Descriptor.
Definition: globus_module.h:69