axis2_wsdl_types.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 AXIS2_WSDL_TYPES_H
00018 #define AXIS2_WSDL_TYPES_H
00019 
00025 #include <axis2_const.h>
00026 #include <axis2_error.h>
00027 #include <axis2_defines.h>
00028 #include <axis2_env.h>
00029 #include <axis2_allocator.h>
00030 #include <axis2_hash.h>
00031 #include <axis2_linked_list.h>
00032 #include <axis2_qname.h>
00033 
00034 #ifdef __cplusplus
00035 extern "C"
00036 {
00037 #endif
00038     
00039 struct axis2_wsdl_extensible_element;   
00040 struct axis2_wsdl_extensible_component;    
00041 typedef struct axis2_wsdl_types axis2_wsdl_types_t;
00042 typedef struct axis2_wsdl_types_ops axis2_wsdl_types_ops_t;
00043 
00054  struct axis2_wsdl_types_ops
00055 {
00059    axis2_status_t (AXIS2_CALL *
00060     free)(axis2_wsdl_types_t *wsdl_types,
00061           const axis2_env_t *env);
00068     axis2_status_t (AXIS2_CALL *
00069     add_element) (axis2_wsdl_types_t *wsdl_types,
00070                     const axis2_env_t *env,
00071                     struct axis2_wsdl_extensible_element *element);
00072 
00073 
00081     struct axis2_wsdl_extensible_element *(AXIS2_CALL *
00082     get_first_element) (axis2_wsdl_types_t *wsdl_types,
00083                         const axis2_env_t *env,
00084                         axis2_qname_t *qname);
00085 
00086 
00087 };
00088 
00093  struct axis2_wsdl_types
00094 {
00095    axis2_wsdl_types_ops_t *ops;
00096     struct axis2_wsdl_extensible_component *ext_component;
00097 };
00098 
00103 AXIS2_EXTERN axis2_wsdl_types_t * AXIS2_CALL 
00104 axis2_wsdl_types_create (const axis2_env_t *env);
00105 
00106 /*************************** Function macros **********************************/
00107 
00108 #define AXIS2_WSDL_TYPES_FREE(wsdl_types, env) \
00109       ((wsdl_types)->ops->free (wsdl_types, env))
00110 
00111 #define AXIS2_WSDL_TYPES_ADD_ELEMENT(wsdl_types, env, element) \
00112       ((wsdl_types)->ops->add_element (wsdl_types, env, element))
00113 
00114 #define AXIS2_WSDL_TYPES_GET_FIRST_ELEMENT(wsdl_types, env, qname) \
00115       ((wsdl_types)->ops->get_first_element (wsdl_types, env, qname))
00116 
00117 /*************************** End of function macros ***************************/
00118 
00121 #ifdef __cplusplus
00122 }
00123 #endif
00124 #endif  /* AXIS2_WSDL_TYPES_H */

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