woden_resolver.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_RESOLVER_H
00019 #define WODEN_RESOLVER_H
00020 
00028 #include <woden.h>
00029 #include <axiom_document.h>
00030 #include <axiom_node.h>
00031 
00037 typedef union woden_resolver_base woden_resolver_base_t;
00038 typedef struct woden_resolver woden_resolver_t;
00039 typedef struct woden_resolver_ops woden_resolver_ops_t;
00040 
00041 #define WODEN_WSDL10 10
00042 #define WODEN_WSDL20 20
00043 
00044 #ifdef __cplusplus
00045 extern "C"
00046 {
00047 #endif
00048 
00049 struct woden_resolver_ops
00050 {
00055     axis2_status_t (AXIS2_CALL *
00056     free) (
00057             void *resolver,
00058             const axis2_env_t *env);
00059  
00060     void *(AXIS2_CALL *
00061     read) (
00062             void *resolver,
00063             const axis2_env_t *env,
00064             axiom_document_t *om_doc,
00065             const axis2_char_t *doc_base_uri);
00066 
00067     int (AXIS2_CALL *
00068     get_spec) (
00069             void *resolver,
00070             const axis2_env_t *env);
00071 
00072    
00073 };
00074 
00075 struct woden_resolver
00076 {
00077     woden_resolver_ops_t *ops;
00078 };
00079 
00080 AXIS2_EXTERN woden_resolver_t * AXIS2_CALL
00081 woden_resolver_create(
00082         const axis2_env_t *env);
00083 
00084 #define WODEN_RESOLVER_FREE(resolver, env) \
00085       (((woden_resolver_t *) resolver)->ops->free(resolver, env))
00086 
00087 #define WODEN_RESOLVER_READ(resolver, env, om_doc, doc_base_uri) \
00088       (((woden_resolver_t *) resolver)->ops->\
00089       read (resolver, env, om_doc, doc_base_uri))
00090 
00091 #define WODEN_RESOLVER_GET_SPEC(resolver, env) \
00092       (((woden_resolver_t *) resolver)->ops->\
00093        get_spec(resolver, env))
00094 
00096 #ifdef __cplusplus
00097 }
00098 #endif
00099 
00100 
00101 #endif /* WODEN_RESOLVER_H */

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