axis2_wsdl_extensible_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 AXIS2_WSDL_EXTENSIBLE_COMPONENT_H
00019 #define AXIS2_WSDL_EXTENSIBLE_COMPONENT_H
00020 
00026 #include <axis2_const.h>
00027 #include <axis2_error.h>
00028 #include <axis2_defines.h>
00029 #include <axis2_env.h>
00030 #include <axis2_allocator.h>
00031 #include <axis2_linked_list.h>
00032 #include <axis2_wsdl_feature.h>
00033 #include <axis2_wsdl_property.h>
00034 #include <axis2_wsdl_component.h>
00035 
00036 #ifdef __cplusplus
00037 extern "C"
00038 {
00039 #endif
00040 
00041 struct axis2_wsdl_component;
00042 struct axis2_wsdl_feature; 
00043 struct axis2_wsdl_property;    
00044 typedef struct axis2_wsdl_extensible_component axis2_wsdl_extensible_component_t;
00045 typedef struct axis2_wsdl_extensible_component_ops axis2_wsdl_extensible_component_ops_t;
00046 
00056  struct axis2_wsdl_extensible_component_ops
00057 {
00061    axis2_status_t (AXIS2_CALL *free)(
00062                     axis2_wsdl_extensible_component_t *wsdl_extensible_component,
00063                  const axis2_env_t *env);
00064 
00072     axis2_status_t (AXIS2_CALL *
00073     add_feature) (axis2_wsdl_extensible_component_t *extensible_component,
00074                 const axis2_env_t *env,
00075                 struct axis2_wsdl_feature *wsdl_feature);
00076         
00083     axis2_linked_list_t *(AXIS2_CALL *
00084     get_features) (axis2_wsdl_extensible_component_t *extensible_component,
00085                    const axis2_env_t *env);
00086         
00093     axis2_status_t (AXIS2_CALL *
00094     add_property) (axis2_wsdl_extensible_component_t *extensible_component,
00095                    const axis2_env_t *env,
00096                    struct axis2_wsdl_property *wsdl_property);
00097         
00103     axis2_linked_list_t *(AXIS2_CALL *
00104     get_properties) (axis2_wsdl_extensible_component_t *extensible_component,
00105                      const axis2_env_t *env);
00106 };
00107 
00112  struct axis2_wsdl_extensible_component
00113 {
00114    axis2_wsdl_extensible_component_ops_t *ops;
00115     struct axis2_wsdl_component *wsdl_component;
00116 };
00117 
00122 AXIS2_EXTERN axis2_wsdl_extensible_component_t * AXIS2_CALL 
00123 axis2_wsdl_extensible_component_create (const axis2_env_t *env);
00124 
00125 /*************************** Function macros **********************************/
00126 
00127 #define AXIS2_WSDL_EXTENSIBLE_COMPONENT_FREE(extensible_component, env) \
00128       ((extensible_component)->ops->free (extensible_component, env))
00129 
00130 #define AXIS2_WSDL_EXTENSIBLE_COMPONENT_ADD_FEATURE(extensible_component, env, feature) \
00131       ((extensible_component)->ops->add_feature (extensible_component, env, feature))
00132 
00133 #define AXIS2_WSDL_EXTENSIBLE_COMPONENT_GET_FEATURES(extensible_component, env) \
00134       ((extensible_component)->ops->get_features (extensible_component, env))
00135 
00136 #define AXIS2_WSDL_EXTENSIBLE_COMPONENT_ADD_PROPERTY(extensible_component, env, property) \
00137       ((extensible_component)->ops->add_property (extensible_component, env, property))
00138 
00139 #define AXIS2_WSDL_EXTENSIBLE_COMPONENT_GET_PROPERTIES(extensible_component, env) \
00140       ((extensible_component)->ops->get_properties (extensible_component, env))       
00141 
00142 /*************************** End of function macros ***************************/
00143 
00146 #ifdef __cplusplus
00147 }
00148 #endif
00149 #endif  /* AXIS2_WSDL_EXTENSIBLE_COMPONENT_H */

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