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