axis2_wsdl_import.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_IMPORT_H
00018 #define AXIS2_WSDL_IMPORT_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_wsdl_component.h>
00031 
00032 #ifdef __cplusplus
00033 extern "C"
00034 {
00035 #endif
00036 
00037 struct axis2_wsdl_component;    
00038 typedef struct axis2_wsdl_import axis2_wsdl_import_t;
00039 typedef struct axis2_wsdl_import_ops axis2_wsdl_import_ops_t;
00040 
00050  struct axis2_wsdl_import_ops
00051 {
00055    axis2_status_t (AXIS2_CALL *
00056     free)(axis2_wsdl_import_t *wsdl_import,
00057            const axis2_env_t *env);
00058                                
00064     axis2_char_t *(AXIS2_CALL *
00065     get_namespace) (axis2_wsdl_import_t *wsdl_import,
00066                                     const axis2_env_t *env);
00067                                     
00073     axis2_status_t (AXIS2_CALL *
00074     set_namespace) (axis2_wsdl_import_t *wsdl_import,
00075                                     const axis2_env_t *env,
00076                                     axis2_char_t *namespace);
00077     
00078     
00084     axis2_char_t *(AXIS2_CALL *
00085     get_location) (axis2_wsdl_import_t *wsdl_import,
00086                                     const axis2_env_t *env);
00087                                     
00093     axis2_status_t (AXIS2_CALL *
00094     set_location) (axis2_wsdl_import_t *wsdl_import,
00095                                     const axis2_env_t *env,
00096                                     axis2_char_t *location);  
00097 
00098 
00099 };
00100 
00105  struct axis2_wsdl_import
00106 {
00107    axis2_wsdl_import_ops_t *ops;
00108     struct axis2_wsdl_component *wsdl_component;
00109 };
00110 
00115 AXIS2_EXTERN axis2_wsdl_import_t *AXIS2_CALL axis2_wsdl_import_create (const axis2_env_t *env);
00116 
00117 /*************************** Function macros **********************************/
00118 
00119 #define AXIS2_WSDL_IMPORT_FREE(wsdl_import, env) \
00120       ((wsdl_import)->ops->free (wsdl_import, env))
00121 
00122 #define AXIS2_WSDL_IMPORT_GET_NAMESPACE(wsdl_import, env) \
00123       ((wsdl_import)->ops->get_namespace (wsdl_import, env))
00124 
00125 #define AXIS2_WSDL_IMPORT_SET_NAMESPACE(wsdl_import, env, namespace) \
00126       ((wsdl_import)->ops->set_namespace (wsdl_import, env, namespace))
00127         
00128 #define AXIS2_WSDL_IMPORT_GET_LOCATION(wsdl_import, env) \
00129       ((wsdl_import)->ops->is_location (wsdl_import, env))
00130 
00131 #define AXIS2_WSDL_IMPORT_SET_LOCATION(wsdl_import, env, location) \
00132       ((wsdl_import)->ops->set_location (wsdl_import, env, location))        
00133 
00134 /*************************** End of function macros ***************************/
00135 
00138 #ifdef __cplusplus
00139 }
00140 #endif
00141 #endif  /* AXIS2_WSDL_IMPORT_H */

Generated on Tue Oct 3 18:21:10 2006 for Axis2/C by  doxygen 1.4.7