globus_gridmap_callout_error
3.2
Toggle main menu visibility
Loading...
Searching...
No Matches
globus_gridmap_callout_error.h
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
17
#ifndef GLOBUS_DONT_DOCUMENT_INTERNAL
22
#endif
23
24
#ifndef GLOBUS_GRIDMAP_CALLOUT_ERROR_H
25
#define GLOBUS_GRIDMAP_CALLOUT_ERROR_H
26
27
#ifdef __cplusplus
28
extern
"C"
{
29
#endif
30
31
#include "globus_common.h"
32
#include "globus_error_gssapi.h"
33
65
71
#define GLOBUS_GRIDMAP_CALLOUT_ERROR_MODULE (&globus_i_gridmap_callout_error_module)
72
73
extern
74
globus_module_descriptor_t globus_i_gridmap_callout_error_module;
75
80
85
typedef
enum
86
{
88
GLOBUS_GRIDMAP_CALLOUT_LOOKUP_FAILED
= 0,
90
GLOBUS_GRIDMAP_CALLOUT_GSSAPI_ERROR
= 1,
92
GLOBUS_GRIDMAP_CALLOUT_BUFFER_TOO_SMALL
= 2,
94
GLOBUS_GRIDMAP_CALLOUT_ERROR_LAST
= 3
95
}
96
globus_gridmap_callout_error_t
;
97
98
extern
char
* globus_i_gridmap_callout_error_strings[];
99
100
#define GLOBUS_GRIDMAP_CALLOUT_ERROR(__RESULT, __TYPE, __ERRSTR) \
101
{ \
102
char * _tmp_str_ = \
103
globus_common_create_string __ERRSTR; \
104
(__RESULT) = globus_error_put( \
105
globus_error_construct_error( \
106
GLOBUS_GRIDMAP_CALLOUT_ERROR_MODULE, \
107
(__RESULT) ? globus_error_get(__RESULT) : NULL, \
108
__TYPE, \
109
__FILE__, \
110
"Globus Gridmap Callout", \
111
__LINE__, \
112
"%s%s%s", \
113
globus_i_gridmap_callout_error_strings[__TYPE], \
114
_tmp_str_ ? ": " : "", \
115
_tmp_str_ ? _tmp_str_ : "")); \
116
if(_tmp_str_) free(_tmp_str_); \
117
}
118
119
#define GLOBUS_GRIDMAP_CALLOUT_GSS_ERROR(__RESULT, __MAJOR_STATUS, __MINOR_STATUS) \
120
__RESULT = globus_error_put( \
121
globus_error_wrap_gssapi_error( \
122
GLOBUS_GRIDMAP_CALLOUT_ERROR_MODULE, \
123
__MAJOR_STATUS, \
124
__MINOR_STATUS, \
125
GLOBUS_GRIDMAP_CALLOUT_GSSAPI_ERROR, \
126
__FILE__, \
127
"Globus Gridmap Callout", \
128
__LINE__, \
129
"%s", \
130
globus_i_gridmap_callout_error_strings[GLOBUS_GRIDMAP_CALLOUT_GSSAPI_ERROR]))
131
132
#ifdef __cplusplus
133
}
134
#endif
135
136
#endif
globus_gridmap_callout_error_t
globus_gridmap_callout_error_t
Definition
globus_gridmap_callout_error.h:86
GLOBUS_GRIDMAP_CALLOUT_LOOKUP_FAILED
@ GLOBUS_GRIDMAP_CALLOUT_LOOKUP_FAILED
Definition
globus_gridmap_callout_error.h:88
GLOBUS_GRIDMAP_CALLOUT_ERROR_LAST
@ GLOBUS_GRIDMAP_CALLOUT_ERROR_LAST
Definition
globus_gridmap_callout_error.h:94
GLOBUS_GRIDMAP_CALLOUT_BUFFER_TOO_SMALL
@ GLOBUS_GRIDMAP_CALLOUT_BUFFER_TOO_SMALL
Definition
globus_gridmap_callout_error.h:92
GLOBUS_GRIDMAP_CALLOUT_GSSAPI_ERROR
@ GLOBUS_GRIDMAP_CALLOUT_GSSAPI_ERROR
Definition
globus_gridmap_callout_error.h:90
globus_gridmap_callout_error.h
Generated by
1.17.0