woden_nested_component.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_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 /************************Woden C Internal Methods******************************/
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 /************************End of Woden C Internal Methods***********************/
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 /* WODEN_NESTED_COMPONENT_H */

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