axis2_wsdl_types.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_TYPES_H
00019 #define AXIS2_WSDL_TYPES_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_hash.h>
00032 #include <axis2_linked_list.h>
00033 #include <axis2_qname.h>
00034 
00035 #ifdef __cplusplus
00036 extern "C"
00037 {
00038 #endif
00039     
00040 struct axis2_wsdl_extensible_element;   
00041 struct axis2_wsdl_extensible_component;    
00042 typedef struct axis2_wsdl_types axis2_wsdl_types_t;
00043 typedef struct axis2_wsdl_types_ops axis2_wsdl_types_ops_t;
00044 
00055  struct axis2_wsdl_types_ops
00056 {
00060    axis2_status_t (AXIS2_CALL *
00061     free)(axis2_wsdl_types_t *wsdl_types,
00062           const axis2_env_t *env);
00069     axis2_status_t (AXIS2_CALL *
00070     add_element) (axis2_wsdl_types_t *wsdl_types,
00071                     const axis2_env_t *env,
00072                     struct axis2_wsdl_extensible_element *element);
00073 
00074 
00082     struct axis2_wsdl_extensible_element *(AXIS2_CALL *
00083     get_first_element) (axis2_wsdl_types_t *wsdl_types,
00084                         const axis2_env_t *env,
00085                         axis2_qname_t *qname);
00086 
00087 
00088 };
00089 
00094  struct axis2_wsdl_types
00095 {
00096    axis2_wsdl_types_ops_t *ops;
00097     struct axis2_wsdl_extensible_component *ext_component;
00098 };
00099 
00104 AXIS2_EXTERN axis2_wsdl_types_t * AXIS2_CALL 
00105 axis2_wsdl_types_create (const axis2_env_t *env);
00106 
00107 /*************************** Function macros **********************************/
00108 
00109 #define AXIS2_WSDL_TYPES_FREE(wsdl_types, env) \
00110       ((wsdl_types)->ops->free (wsdl_types, env))
00111 
00112 #define AXIS2_WSDL_TYPES_ADD_ELEMENT(wsdl_types, env, element) \
00113       ((wsdl_types)->ops->add_element (wsdl_types, env, element))
00114 
00115 #define AXIS2_WSDL_TYPES_GET_FIRST_ELEMENT(wsdl_types, env, qname) \
00116       ((wsdl_types)->ops->get_first_element (wsdl_types, env, qname))
00117 
00118 /*************************** End of function macros ***************************/
00119 
00122 #ifdef __cplusplus
00123 }
00124 #endif
00125 #endif  /* AXIS2_WSDL_TYPES_H */

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