globus_error_string.h

Go to the documentation of this file.
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 
00022 #ifndef GLOBUS_ERROR_STRING_H
00023 #define GLOBUS_ERROR_STRING_H
00024 
00025 #include "globus_common_include.h"
00026 #include "globus_error.h"
00027 
00028  
00029 #ifdef __cplusplus
00030 extern "C" {
00031 #endif
00032 
00033 extern const globus_object_type_t GLOBUS_ERROR_TYPE_STRING_DEFINITION;
00034 
00035 #define GLOBUS_ERROR_TYPE_STRING (&GLOBUS_ERROR_TYPE_STRING_DEFINITION)
00036 
00037 /* allocate and initialize an error of type
00038  * GLOBUS_ERROR_TYPE_STRING
00039  */ 
00040 extern globus_object_t *
00041 globus_error_construct_string(
00042     globus_module_descriptor_t *        base_source,
00043     globus_object_t *                   base_cause,
00044     const char *                        fmt,
00045     ...);
00046 
00047 /* initialize and return an error of type
00048  * GLOBUS_ERROR_TYPE_STRING
00049  */
00050 extern globus_object_t *
00051 globus_error_initialize_string(
00052     globus_object_t *                   error,
00053     globus_module_descriptor_t *        base_source,
00054     globus_object_t *                   base_cause,
00055     const char *                        fmt,
00056     va_list                             ap);
00057 
00058 #ifdef __cplusplus
00059 }
00060 #endif
00061 
00062 #endif /* GLOBUS_ERROR_STRING_H */

Generated on 17 Mar 2017 for globus_common by  doxygen 1.4.7