globus_error_gssapi.h

00001 /*
00002  * Copyright 1999-2006 University of Chicago
00003  * 
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  * 
00008  * http://www.apache.org/licenses/LICENSE-2.0
00009  * 
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00017 #ifndef GLOBUS_INCLUDE_GSSAPI_ERROR_H
00018 #define GLOBUS_INCLUDE_GSSAPI_ERROR_H
00019 
00020 #ifndef GLOBUS_GLOBAL_DOCUMENT_SET
00021 
00025 #endif
00026 
00041 #include "globus_common.h"
00042 #include "gssapi.h"
00043 
00044 #ifdef __cplusplus
00045 extern "C" {
00046 #endif
00047 
00063 #define GLOBUS_ERROR_TYPE_GSSAPI (&GLOBUS_ERROR_TYPE_GSSAPI_DEFINITION)
00064 
00065 extern const globus_object_type_t GLOBUS_ERROR_TYPE_GSSAPI_DEFINITION;
00066 
00067 globus_object_t *
00068 globus_error_construct_gssapi_error(
00069     globus_module_descriptor_t *        base_source,
00070     globus_object_t *                   base_cause,
00071     const OM_uint32                     major_status,
00072     const OM_uint32                     minor_status);
00073 
00074 globus_object_t *
00075 globus_error_initialize_gssapi_error(
00076     globus_object_t *                   error,
00077     globus_module_descriptor_t *        base_source,
00078     globus_object_t *                   base_cause,
00079     const OM_uint32                     major_status,
00080     const OM_uint32                     minor_status);
00081 
00092 OM_uint32
00093 globus_error_gssapi_get_major_status(
00094     globus_object_t *                   error);
00095 
00096 void
00097 globus_error_gssapi_set_major_status(
00098     globus_object_t *                   error,
00099     const OM_uint32                     major_status);
00100 
00101 OM_uint32
00102 globus_error_gssapi_get_minor_status(
00103     globus_object_t *                   error);
00104 
00115 globus_bool_t
00116 globus_error_gssapi_match(
00117     globus_object_t *                   error,
00118     globus_module_descriptor_t *        module,
00119     const OM_uint32                     major_status);
00120 
00121 globus_object_t *
00122 globus_error_wrap_gssapi_error(
00123     globus_module_descriptor_t *        base_source,
00124     OM_uint32                           major_status,
00125     OM_uint32                           minor_status,
00126     int                                 type,
00127     const char *                        source_file,
00128     const char *                        source_func,
00129     int                                 source_line,
00130     const char *                        short_desc_format,
00131     ...);
00132 
00133 #ifdef __cplusplus
00134 }
00135 #endif
00136 
00137 #endif /* GLOBUS_INCLUDE_GSSAPI_ERROR_H */

Generated on 4 Sep 2016 for globus_gssapi_error by  doxygen 1.4.7