woden_configurable_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_CONFIGURABLE_COMPONENT_H
00019 #define WODEN_CONFIGURABLE_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 <axis2_array_list.h>
00037 #include <woden.h>
00038 #include <woden_wsdl_component.h>
00039 
00040 #ifdef __cplusplus
00041 extern "C"
00042 {
00043 #endif
00044 
00045 typedef struct woden_configurable_component woden_configurable_component_t;
00046 typedef struct woden_configurable_component_ops woden_configurable_component_ops_t;
00047 
00053 struct woden_configurable_component_ops
00054 {
00059     axis2_status_t (AXIS2_CALL *
00060     free) (
00061             void *configurable_component,
00062             const axis2_env_t *env);
00063     
00064     axis2_status_t (AXIS2_CALL *
00065     to_configurable_component_free) (
00066             void *configurable_component,
00067             const axis2_env_t *env);
00068 
00069     woden_obj_types_t (AXIS2_CALL *
00070     type) (
00071             void *configurable_component,
00072             const axis2_env_t *env);
00073     
00074     axis2_array_list_t *(AXIS2_CALL *
00075     get_features) (
00076             void *configurable_component,
00077             const axis2_env_t *env);
00078     
00079     axis2_array_list_t *(AXIS2_CALL *
00080     get_properties) (
00081             void *configurable_component,
00082             const axis2_env_t *env);
00083 
00084 };
00085 
00086 struct woden_configurable_component
00087 {
00088     woden_wsdl_component_t wsdl_component;
00089     woden_configurable_component_ops_t *ops;
00090 };
00091 
00092 /************************Woden C Internal Methods******************************/
00093 axis2_status_t AXIS2_CALL
00094 woden_configurable_component_resolve_methods(
00095         woden_configurable_component_t *configurable_component,
00096         const axis2_env_t *env,
00097         axis2_hash_t *methods);
00098 /************************End of Woden C Internal Methods***********************/
00099 
00100 #define WODEN_CONFIGURABLE_COMPONENT_FREE(configurable_component, env) \
00101       (((woden_configurable_component_t *) configurable_component)->ops->\
00102          free (configurable_component, env))
00103 
00104 #define WODEN_CONFIGURABLE_COMPONENT_TO_CONFIGURABLE_COMPONENT_FREE(configurable_component, env) \
00105       (((woden_configurable_component_t *) configurable_component)->ops->\
00106          to_configurable_component_free (configurable_component, env))
00107 
00108 #define WODEN_CONFIGURABLE_COMPONENT_TYPE(configurable_component, env) \
00109       (((woden_configurable_component_t *) configurable_component)->ops->\
00110          type (configurable_component, env))
00111 
00112 #define WODEN_CONFIGURABLE_COMPONENT_GET_FEATURES(\
00113         configurable_component, env) \
00114       (((woden_configurable_component_t *) configurable_component)->ops->\
00115          get_features(configurable_component, env))
00116 
00117 #define WODEN_CONFIGURABLE_COMPONENT_GET_PROPERTIES(\
00118         configurable_component, env) \
00119       (((woden_configurable_component_t *) configurable_component)->ops->\
00120          get_properties(configurable_component, env))
00121 
00123 #ifdef __cplusplus
00124 }
00125 #endif
00126 #endif /* WODEN_CONFIGURABLE_COMPONENT_H */

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