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