woden_inlined_schema.h

Go to the documentation of this file.
00001 /*
00002  * Licensed to the Apache Software Foundation (ASF) under one or more
00003  * contributor license agreements.  See the NOTICE file distributed with
00004  * this work for additional information regarding copyright ownership.
00005  * The ASF licenses this file to You under the Apache License, Version 2.0
00006  * (the "License"); you may not use this file except in compliance with
00007  * the License.  You may obtain a copy of the License at
00008  *
00009  *      http://www.apache.org/licenses/LICENSE-2.0
00010  *
00011  * Unless required by applicable law or agreed to in writing, software
00012  * distributed under the License is distributed on an "AS IS" BASIS,
00013  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  * See the License for the specific language governing permissions and
00015  * limitations under the License.
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 /************************Woden C Internal Methods******************************/
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 /************************End of Woden C Internal Methods***********************/
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 /* WODEN_INLINED_SCHEMA_H */

Generated on Wed Dec 20 20:34:50 2006 for Axis2/C by  doxygen 1.5.1