CERN org.glite.Gfal
2.0.1
|
00001 #pragma once 00002 #ifndef _GFAL_COMMON_PARAMETER_H 00003 #define _GFAL_COMMON_PARAMETER_H 00004 /* 00005 * Copyright (c) Members of the EGEE Collaboration. 2004. 00006 * See http://www.eu-egee.org/partners/ for details on the copyright holders. 00007 * 00008 * Licensed under the Apache License, Version 2.0 (the "License"); 00009 * you may not use this file except in compliance with the License. 00010 * You may obtain a copy of the License at 00011 * 00012 * http://www.apache.org/licenses/LICENSE-2.0 00013 * 00014 * Unless required by applicable law or agreed to in writing, software 00015 * distributed under the License is distributed on an "AS IS" BASIS, 00016 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00017 * See the License for the specific language governing permissions and 00018 * limitations under the License. 00019 */ 00020 00029 #include <stdlib.h> 00030 #include <glib.h> 00031 00032 #include <common/gfal_prototypes.h> 00033 #include <common/gfal_types.h> 00034 00035 00036 #ifdef __cplusplus 00037 extern "C" 00038 { 00039 #endif 00040 00048 int gfal_common_parameter_set_string(gfal_handle handle, const char* nmespace, const char* key, const char* value, GError** err); 00049 00050 00058 char* gfal_common_parameter_get_string(gfal_handle handle, const char* nmespace, const char* key, GError** err); 00059 00060 00061 gboolean gfal_common_parameter_get_boolean(gfal_handle handle, const char* nmespace, const char* key, GError** err); 00062 00063 00064 int gfal_common_parameter_set_boolean(gfal_handle handle, const char* nmespace, const char* key, gboolean value, GError** err); 00065 00066 00067 00068 00069 #ifdef __cplusplus 00070 } 00071 #endif 00072 00073 00074 00075 #endif //_GFAL_COMMON_PARAMETER_H 00076