00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef WODEN_CONFIGURABLE_COMPONENT_H
00018 #define WODEN_CONFIGURABLE_COMPONENT_H
00019
00028 #include <axis2_allocator.h>
00029 #include <axis2_env.h>
00030 #include <axis2_error.h>
00031 #include <axis2_string.h>
00032 #include <axis2_utils.h>
00033 #include <axis2_hash.h>
00034 #include <axis2_uri.h>
00035 #include <axis2_array_list.h>
00036 #include <woden.h>
00037 #include <woden_wsdl_component.h>
00038
00039 #ifdef __cplusplus
00040 extern "C"
00041 {
00042 #endif
00043
00044 typedef struct woden_configurable_component woden_configurable_component_t;
00045 typedef struct woden_configurable_component_ops woden_configurable_component_ops_t;
00046
00052 struct woden_configurable_component_ops
00053 {
00058 axis2_status_t (AXIS2_CALL *
00059 free) (
00060 void *configurable_component,
00061 const axis2_env_t *env);
00062
00063 axis2_status_t (AXIS2_CALL *
00064 to_configurable_component_free) (
00065 void *configurable_component,
00066 const axis2_env_t *env);
00067
00068 woden_obj_types_t (AXIS2_CALL *
00069 type) (
00070 void *configurable_component,
00071 const axis2_env_t *env);
00072
00073 axis2_array_list_t *(AXIS2_CALL *
00074 get_features) (
00075 void *configurable_component,
00076 const axis2_env_t *env);
00077
00078 axis2_array_list_t *(AXIS2_CALL *
00079 get_properties) (
00080 void *configurable_component,
00081 const axis2_env_t *env);
00082
00083 };
00084
00085 struct woden_configurable_component
00086 {
00087 woden_wsdl_component_t wsdl_component;
00088 woden_configurable_component_ops_t *ops;
00089 };
00090
00091
00092 axis2_status_t AXIS2_CALL
00093 woden_configurable_component_resolve_methods(
00094 woden_configurable_component_t *configurable_component,
00095 const axis2_env_t *env,
00096 axis2_hash_t *methods);
00097
00098
00099 #define WODEN_CONFIGURABLE_COMPONENT_FREE(configurable_component, env) \
00100 (((woden_configurable_component_t *) configurable_component)->ops->\
00101 free (configurable_component, env))
00102
00103 #define WODEN_CONFIGURABLE_COMPONENT_TO_CONFIGURABLE_COMPONENT_FREE(configurable_component, env) \
00104 (((woden_configurable_component_t *) configurable_component)->ops->\
00105 to_configurable_component_free (configurable_component, env))
00106
00107 #define WODEN_CONFIGURABLE_COMPONENT_TYPE(configurable_component, env) \
00108 (((woden_configurable_component_t *) configurable_component)->ops->\
00109 type (configurable_component, env))
00110
00111 #define WODEN_CONFIGURABLE_COMPONENT_GET_FEATURES(\
00112 configurable_component, env) \
00113 (((woden_configurable_component_t *) configurable_component)->ops->\
00114 get_features(configurable_component, env))
00115
00116 #define WODEN_CONFIGURABLE_COMPONENT_GET_PROPERTIES(\
00117 configurable_component, env) \
00118 (((woden_configurable_component_t *) configurable_component)->ops->\
00119 get_properties(configurable_component, env))
00120
00122 #ifdef __cplusplus
00123 }
00124 #endif
00125 #endif