00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef WODEN_NESTED_COMPONENT_H
00018 #define WODEN_NESTED_COMPONENT_H
00019
00032 #include <axis2_allocator.h>
00033 #include <axis2_env.h>
00034 #include <axis2_error.h>
00035 #include <axis2_string.h>
00036 #include <axis2_utils.h>
00037 #include <axis2_hash.h>
00038 #include <woden.h>
00039 #include <woden_wsdl_component.h>
00040
00041 #ifdef __cplusplus
00042 extern "C"
00043 {
00044 #endif
00045
00046 typedef struct woden_nested_component woden_nested_component_t;
00047 typedef struct woden_nested_component_ops woden_nested_component_ops_t;
00048 struct woden_component_exts;
00049
00055 struct woden_nested_component_ops
00056 {
00061 axis2_status_t (AXIS2_CALL *
00062 free) (
00063 void *nested_component,
00064 const axis2_env_t *env);
00065
00066 axis2_status_t (AXIS2_CALL *
00067 to_nested_component_free) (
00068 void *nested_component,
00069 const axis2_env_t *env);
00070
00071 woden_obj_types_t (AXIS2_CALL *
00072 type) (
00073 void *nested_component,
00074 const axis2_env_t *env);
00075
00076 void *(AXIS2_CALL *
00077 get_parent) (
00078 void *nested_component,
00079 const axis2_env_t *env);
00080
00081 };
00082
00083 struct woden_nested_component
00084 {
00085 woden_wsdl_component_t wsdl_component;
00086 woden_nested_component_ops_t *ops;
00087 };
00088
00089
00090 axis2_status_t AXIS2_CALL
00091 woden_nested_component_resolve_methods(
00092 woden_nested_component_t *nested_component,
00093 const axis2_env_t *env,
00094 axis2_hash_t *methods);
00095
00096
00097 #define WODEN_NESTED_COMPONENT_FREE(nested_component, env) \
00098 (((woden_nested_component_t *) nested_component)->ops->\
00099 free (nested_component, env))
00100
00101 #define WODEN_NESTED_COMPONENT_TO_NESTED_COMPONENT_FREE(nested_component, \
00102 env) \
00103 (((woden_nested_component_t *) nested_component)->ops->\
00104 to_nested_component_free (nested_component, env))
00105
00106 #define WODEN_NESTED_COMPONENT_TYPE(nested_component, env) \
00107 (((woden_nested_component_t *) nested_component)->ops->\
00108 type (nested_component, env))
00109
00110 #define WODEN_NESTED_COMPONENT_GET_PARENT(\
00111 nested_component, env) \
00112 (((woden_nested_component_t *) nested_component)->ops->\
00113 get_parent(nested_component, env))
00114
00116 #ifdef __cplusplus
00117 }
00118 #endif
00119 #endif