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