00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef WODEN_INLINED_SCHEMA_H
00019 #define WODEN_INLINED_SCHEMA_H
00020
00029 #include <woden_schema.h>
00030
00036 typedef struct woden_inlined_schema woden_inlined_schema_t;
00037 typedef struct woden_inlined_schema_ops woden_inlined_schema_ops_t;
00038
00039 #ifdef __cplusplus
00040 extern "C"
00041 {
00042 #endif
00043
00044 struct woden_inlined_schema_ops
00045 {
00050 axis2_status_t (AXIS2_CALL *
00051 free) (
00052 void *schema,
00053 const axis2_env_t *env);
00054
00055 axis2_hash_t *(AXIS2_CALL *
00056 super_objs) (
00057 void *schema,
00058 const axis2_env_t *env);
00059
00060 woden_obj_types_t (AXIS2_CALL *
00061 type) (
00062 void *schema,
00063 const axis2_env_t *env);
00067 woden_schema_t *(AXIS2_CALL *
00068 get_base_impl) (
00069 void *schema,
00070 const axis2_env_t *env);
00071
00072 axis2_status_t (AXIS2_CALL *
00073 set_id) (
00074 void *schema,
00075 const axis2_env_t *env,
00076 axis2_char_t *id);
00077
00078 axis2_char_t *(AXIS2_CALL *
00079 get_id) (
00080 void *schema,
00081 const axis2_env_t *env);
00082
00083
00084 };
00085
00086 struct woden_inlined_schema
00087 {
00088 woden_schema_t schema;
00089 woden_inlined_schema_ops_t *ops;
00090 };
00091
00092 AXIS2_EXTERN woden_inlined_schema_t * AXIS2_CALL
00093 woden_inlined_schema_create(
00094 const axis2_env_t *env);
00095
00096
00097 AXIS2_EXTERN woden_inlined_schema_t * AXIS2_CALL
00098 woden_inlined_schema_to_schema(
00099 void *schema,
00100 const axis2_env_t *env);
00101
00102 AXIS2_EXTERN axis2_status_t AXIS2_CALL
00103 woden_inlined_schema_resolve_methods(
00104 woden_inlined_schema_t *schema,
00105 const axis2_env_t *env,
00106 woden_inlined_schema_t *schema_impl,
00107 axis2_hash_t *methods);
00108
00109
00110 #define WODEN_INLINED_SCHEMA_FREE(schema, env) \
00111 (((woden_inlined_schema_t *) schema)->ops->free(schema, env))
00112
00113 #define WODEN_INLINED_SCHEMA_SUPER_OBJS(schema, env) \
00114 (((woden_inlined_schema_t *) schema)->ops->super_objs(schema, env))
00115
00116 #define WODEN_INLINED_SCHEMA_TYPE(schema, env) \
00117 (((woden_inlined_schema_t *) schema)->ops->type(schema, env))
00118
00119 #define WODEN_INLINED_SCHEMA_GET_BASE_IMPL(schema, env) \
00120 (((woden_inlined_schema_t *) schema)->ops->get_base_impl(schema, \
00121 env))
00122
00123 #define WODEN_INLINED_SCHEMA_SET_ID(schema, env, id) \
00124 (((woden_inlined_schema_t *) schema)->ops->set_id(schema, \
00125 env, id))
00126
00127 #define WODEN_INLINED_SCHEMA_GET_ID(schema, env) \
00128 (((woden_inlined_schema_t *) schema)->ops->get_id(schema, \
00129 env))
00130
00132 #ifdef __cplusplus
00133 }
00134 #endif
00135 #endif