axutil_properties.h

00001 /*
00002  * Licensed to the Apache Software Foundation (ASF) under one or more
00003  * contributor license agreements.  See the NOTICE file distributed with
00004  * this work for additional information regarding copyright ownership.
00005  * The ASF licenses this file to You under the Apache License, Version 2.0
00006  * (the "License"); you may not use this file except in compliance with
00007  * the License.  You may obtain a copy of the License at
00008  *
00009  *      http://www.apache.org/licenses/LICENSE-2.0
00010  *
00011  * Unless required by applicable law or agreed to in writing, software
00012  * distributed under the License is distributed on an "AS IS" BASIS,
00013  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  * See the License for the specific language governing permissions and
00015  * limitations under the License.
00016  */
00017 
00018 #ifndef AXUTIL_PROPERTIES_H
00019 #define AXUTIL_PROPERTIES_H
00020 
00021 #include <axutil_utils_defines.h>
00022 #include <axutil_error.h>
00023 #include <axutil_env.h>
00024 #include <axutil_hash.h>
00025 #include <stdio.h>
00026 
00027 #ifdef __cplusplus
00028 extern "C"
00029 {
00030 #endif
00031 
00038     typedef struct axutil_properties axutil_properties_t;
00039 
00044     AXIS2_EXTERN axutil_properties_t * AXIS2_CALL
00045     axutil_properties_create(const axutil_env_t *env);
00046 
00054     AXIS2_EXTERN void AXIS2_CALL
00055     axutil_properties_free(axutil_properties_t *properties,
00056         const axutil_env_t *env);
00057 
00065     AXIS2_EXTERN axis2_char_t* AXIS2_CALL
00066     axutil_properties_get_property(axutil_properties_t *properties,
00067         const axutil_env_t *env,
00068         axis2_char_t *key);
00078     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00079     axutil_properties_set_property(axutil_properties_t *properties,
00080         const axutil_env_t *env,
00081         axis2_char_t *key,
00082         axis2_char_t *value);
00089     AXIS2_EXTERN axutil_hash_t* AXIS2_CALL
00090     axutil_properties_get_all(axutil_properties_t *properties,
00091         const axutil_env_t *env);
00092 
00101     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00102     axutil_properties_load(axutil_properties_t *properties,
00103         const axutil_env_t *env,
00104         axis2_char_t *input_filename);
00105 
00114     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00115     axutil_properties_store(axutil_properties_t *properites,
00116         const axutil_env_t *env,
00117         FILE *output);
00118     
00119     /*************************** End of function macros ***************************/
00120 
00121 
00122 
00125 #ifdef __cplusplus
00126 }
00127 #endif
00128 
00129 #endif  /* AXIS2_PROPERTIES_H */

Generated on Thu May 3 12:31:01 2007 for Axis2/C by  doxygen 1.4.6