00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef W2C_PROPERTIES_PARSER_H
00018 #define W2C_PROPERTIES_PARSER_H
00019
00025 #include <stdio.h>
00026 #include <axis2_utils.h>
00027 #include <axis2_hash.h>
00028
00029 #ifdef __cplusplus
00030 extern "C"
00031 {
00032 #endif
00033
00040 typedef struct w2c_properties w2c_properties_t;
00041 typedef struct w2c_properties_ops w2c_properties_ops_t;
00042
00043 AXIS2_DECLARE_DATA struct w2c_properties_ops
00044 {
00053 axis2_status_t (AXIS2_CALL *
00054 free)(w2c_properties_t *properties,
00055 const axis2_env_t *env);
00056
00062 axis2_hash_t* (AXIS2_CALL *
00063 get_hash)(w2c_properties_t *properties,
00064 const axis2_env_t *env);
00065 };
00066
00067 AXIS2_DECLARE_DATA struct w2c_properties
00068 {
00069 struct w2c_properties_ops *ops;
00070 };
00071
00080 AXIS2_EXTERN w2c_properties_t* AXIS2_CALL
00081 w2c_properties_create( const axis2_env_t *env,
00082 axis2_char_t *filename,
00083 axis2_char_t seperator);
00084
00085
00086
00087 #define W2C_PROPERTIES_FREE(properties, env) \
00088 ((properties)->ops->free (properties, env))
00089
00090 #define W2C_PROPERTIES_GET_HASH(properties, env) \
00091 ((properties)->ops->get_hash(properties, env))
00092
00095 #ifdef __cplusplus
00096 }
00097 #endif
00098
00099 #endif