globus_gram_job_manager_callout_error
3.5
Main Page
Modules
Files
File List
Globals
All
Files
Enumerations
Enumerator
Groups
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
{
90
GLOBUS_GRAM_JOBMANAGER_CALLOUT_BAD_CREDS
= 0,
92
GLOBUS_GRAM_JOBMANAGER_CALLOUT_AUTHZ_SYSTEM_ERROR
= 1,
94
GLOBUS_GRAM_JOBMANAGER_CALLOUT_AUTHZ_DENIED
= 2,
96
GLOBUS_GRAM_JOBMANAGER_CALLOUT_AUTHZ_DENIED_INVALID_JOB
= 3,
98
GLOBUS_GRAM_JOBMANAGER_CALLOUT_AUTHZ_DENIED_BAD_EXECUTABLE
= 4,
100
GLOBUS_GRAM_JOBMANAGER_CALLOUT_ERROR_LAST
= 5
101
}
102
globus_gram_jobmanager_callout_error_t
;
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
Generated by
1.8.3.1