00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef WODEN_NESTED_CONFIGURABLE_H
00019 #define WODEN_NESTED_CONFIGURABLE_H
00020
00031 #include <woden.h>
00032 #include <woden_nested_component.h>
00033 #include <woden_nested_element.h>
00034 #include <woden_configurable.h>
00035
00041 typedef union woden_nested_configurable_base woden_nested_configurable_base_t;
00042 typedef struct woden_nested_configurable woden_nested_configurable_t;
00043 typedef struct woden_nested_configurable_ops woden_nested_configurable_ops_t;
00044
00045 #ifdef __cplusplus
00046 extern "C"
00047 {
00048 #endif
00049
00050 struct woden_nested_configurable_ops
00051 {
00056 axis2_status_t (AXIS2_CALL *
00057 free) (
00058 void *nested_configurable,
00059 const axis2_env_t *env);
00060
00061 axis2_status_t (AXIS2_CALL *
00062 to_nested_configurable_free) (
00063 void *nested_configurable,
00064 const axis2_env_t *env);
00065
00066 axis2_hash_t *(AXIS2_CALL *
00067 super_objs) (
00068 void *nested_configurable,
00069 const axis2_env_t *env);
00070
00074 struct woden_configurable *(AXIS2_CALL *
00075 get_base_impl) (
00076 void *nested_configurable,
00077 const axis2_env_t *env);
00078
00079 };
00080
00081 union woden_nested_configurable_base
00082 {
00083 woden_configurable_t configurable;
00084 woden_nested_element_t nested_element;
00085 woden_nested_component_t nested_component;
00086 };
00087
00088 struct woden_nested_configurable
00089 {
00090 woden_nested_configurable_base_t base;
00091 woden_nested_configurable_ops_t *ops;
00092 };
00093
00094 AXIS2_EXTERN woden_nested_configurable_t * AXIS2_CALL
00095 woden_nested_configurable_create(
00096 const axis2_env_t *env);
00097
00098
00099 AXIS2_EXTERN woden_nested_configurable_t * AXIS2_CALL
00100 woden_nested_configurable_to_nested_element(
00101 void *nested_configurable,
00102 const axis2_env_t *env);
00103
00104 AXIS2_EXTERN axis2_status_t AXIS2_CALL
00105 woden_nested_configurable_resolve_methods(
00106 woden_nested_configurable_t *nested_configurable,
00107 const axis2_env_t *env,
00108 woden_nested_configurable_t *nested_configurable_impl,
00109 axis2_hash_t *methods);
00110
00111
00112
00113 #define WODEN_NESTED_CONFIGURABLE_FREE(nested_configurable, env) \
00114 (((woden_nested_configurable_t *) nested_configurable)->ops->\
00115 free(nested_configurable, env))
00116
00117 #define WODEN_NESTED_CONFIGURABLE_TO_NESTED_CONFIGURABLE_FREE(nested_configurable, env) \
00118 (((woden_nested_configurable_t *) nested_configurable)->ops->\
00119 to_nested_configurable_free(nested_configurable, env))
00120
00121 #define WODEN_NESTED_CONFIGURABLE_SUPER_OBJS(nested_configurable, env) \
00122 (((woden_nested_configurable_t *) nested_configurable)->ops->\
00123 super_objs(nested_configurable, env))
00124
00125 #define WODEN_NESTED_CONFIGURABLE_GET_BASE_IMPL(nested_configurable, env) \
00126 (((woden_nested_configurable_t *) nested_configurable)->ops->\
00127 get_base_impl(nested_configurable, env))
00128
00130 #ifdef __cplusplus
00131 }
00132 #endif
00133 #endif