woden_wsdl_component.h

Go to the documentation of this file.
00001 /*
00002  * Copyright 2004,2005 The Apache Software Foundation.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *      http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00017 #ifndef WODEN_WSDL_COMPONENT_H
00018 #define WODEN_WSDL_COMPONENT_H
00019 
00028 #include <axis2_allocator.h>
00029 #include <axis2_env.h>
00030 #include <axis2_error.h>
00031 #include <axis2_string.h>
00032 #include <axis2_utils.h>
00033 #include <axis2_hash.h>
00034 #include <axis2_uri.h>
00035 #include <woden.h>
00036 
00037 #ifdef __cplusplus
00038 extern "C"
00039 {
00040 #endif
00041 
00042 typedef struct woden_wsdl_component woden_wsdl_component_t;
00043 typedef struct woden_wsdl_component_ops woden_wsdl_component_ops_t;
00044 struct woden_component_exts;
00045 
00051 struct woden_wsdl_component_ops
00052 {
00057     axis2_status_t (AXIS2_CALL *
00058     free) (
00059             void *wsdl_component,
00060             const axis2_env_t *env);
00061     
00062     axis2_status_t (AXIS2_CALL *
00063     to_wsdl_component_free) (
00064             void *wsdl_component,
00065             const axis2_env_t *env);
00066 
00067     woden_obj_types_t (AXIS2_CALL *
00068     type) (
00069             void *wsdl_component,
00070             const axis2_env_t *env);
00071     
00072     void *(AXIS2_CALL *
00073     get_component_exts_for_namespace) (
00074             void *wsdl_component,
00075             const axis2_env_t *env,
00076             axis2_uri_t *namespc);
00077 
00078 };
00079 
00080 struct woden_wsdl_component
00081 {
00082     woden_wsdl_component_ops_t *ops;
00083 };
00084 
00085 /************************Woden C Internal Methods******************************/
00086 axis2_status_t AXIS2_CALL
00087 woden_wsdl_component_resolve_methods(
00088         woden_wsdl_component_t *wsdl_component,
00089         const axis2_env_t *env,
00090         axis2_hash_t *methods);
00091 /************************End of Woden C Internal Methods***********************/
00092 
00093 #define WODEN_WSDL_COMPONENT_FREE(wsdl_component, env) \
00094       (((woden_wsdl_component_t *) wsdl_component)->ops->\
00095          free (wsdl_component, env))
00096 
00097 #define WODEN_WSDL_COMPONENT_TO_WSDL_COMPONENT_FREE(wsdl_component, env) \
00098       (((woden_wsdl_component_t *) wsdl_component)->ops->\
00099          to_wsdl_component_free (wsdl_component, env))
00100 
00101 #define WODEN_WSDL_COMPONENT_TYPE(wsdl_component, env) \
00102       (((woden_wsdl_component_t *) wsdl_component)->ops->\
00103          type (wsdl_component, env))
00104 
00105 #define WODEN_WSDL_COMPONENT_GET_COMPONENT_EXTS_FOR_NAMESPACE(\
00106         wsdl_component, env, namespc) \
00107       (((woden_wsdl_component_t *) wsdl_component)->ops->\
00108          get_component_exts_for_namespace(wsdl_component, env, namespc))
00109 
00111 #ifdef __cplusplus
00112 }
00113 #endif
00114 #endif /* WODEN_WSDL_COMPONENT_H */

Generated on Tue Oct 3 22:35:48 2006 for Axis2/C by  doxygen 1.4.7