woden_wsdl_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_WSDL_COMPONENT_H
00019 #define WODEN_WSDL_COMPONENT_H
00020 
00029 #include <axis2_allocator.h>
00030 #include <axis2_env.h>
00031 #include <axis2_error.h>
00032 #include <axis2_string.h>
00033 #include <axis2_utils.h>
00034 #include <axis2_hash.h>
00035 #include <axis2_uri.h>
00036 #include <woden.h>
00037 
00038 #ifdef __cplusplus
00039 extern "C"
00040 {
00041 #endif
00042 
00043 typedef struct woden_wsdl_component woden_wsdl_component_t;
00044 typedef struct woden_wsdl_component_ops woden_wsdl_component_ops_t;
00045 struct woden_component_exts;
00046 
00052 struct woden_wsdl_component_ops
00053 {
00058     axis2_status_t (AXIS2_CALL *
00059     free) (
00060             void *wsdl_component,
00061             const axis2_env_t *env);
00062     
00063     axis2_status_t (AXIS2_CALL *
00064     to_wsdl_component_free) (
00065             void *wsdl_component,
00066             const axis2_env_t *env);
00067 
00068     woden_obj_types_t (AXIS2_CALL *
00069     type) (
00070             void *wsdl_component,
00071             const axis2_env_t *env);
00072     
00073     void *(AXIS2_CALL *
00074     get_component_exts_for_namespace) (
00075             void *wsdl_component,
00076             const axis2_env_t *env,
00077             axis2_uri_t *namespc);
00078 
00079 };
00080 
00081 struct woden_wsdl_component
00082 {
00083     woden_wsdl_component_ops_t *ops;
00084 };
00085 
00086 /************************Woden C Internal Methods******************************/
00087 axis2_status_t AXIS2_CALL
00088 woden_wsdl_component_resolve_methods(
00089         woden_wsdl_component_t *wsdl_component,
00090         const axis2_env_t *env,
00091         axis2_hash_t *methods);
00092 /************************End of Woden C Internal Methods***********************/
00093 
00094 #define WODEN_WSDL_COMPONENT_FREE(wsdl_component, env) \
00095       (((woden_wsdl_component_t *) wsdl_component)->ops->\
00096          free (wsdl_component, env))
00097 
00098 #define WODEN_WSDL_COMPONENT_TO_WSDL_COMPONENT_FREE(wsdl_component, env) \
00099       (((woden_wsdl_component_t *) wsdl_component)->ops->\
00100          to_wsdl_component_free (wsdl_component, env))
00101 
00102 #define WODEN_WSDL_COMPONENT_TYPE(wsdl_component, env) \
00103       (((woden_wsdl_component_t *) wsdl_component)->ops->\
00104          type (wsdl_component, env))
00105 
00106 #define WODEN_WSDL_COMPONENT_GET_COMPONENT_EXTS_FOR_NAMESPACE(\
00107         wsdl_component, env, namespc) \
00108       (((woden_wsdl_component_t *) wsdl_component)->ops->\
00109          get_component_exts_for_namespace(wsdl_component, env, namespc))
00110 
00112 #ifdef __cplusplus
00113 }
00114 #endif
00115 #endif /* WODEN_WSDL_COMPONENT_H */

Generated on Wed Dec 20 20:14:11 2006 for Axis2/C by  doxygen 1.5.1