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