woden_direction.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_DIRECTION_H
00019 #define WODEN_DIRECTION_H
00020 
00050 #include <axis2_allocator.h>
00051 #include <axis2_env.h>
00052 #include <axis2_error.h>
00053 #include <axis2_string.h>
00054 #include <axis2_utils.h>
00055 #include <axis2_hash.h>
00056 #include <axis2_qname.h>
00057 #include <woden.h>
00058 
00059 #ifdef __cplusplus
00060 extern "C"
00061 {
00062 #endif
00063 
00064 typedef struct woden_direction woden_direction_t;
00065 typedef struct woden_direction_ops woden_direction_ops_t;
00066 struct woden_ext_element;
00067 
00073 struct woden_direction_ops
00074 {
00079     axis2_status_t (AXIS2_CALL *
00080     free) (
00081             void *direction,
00082             const axis2_env_t *env);
00083     
00084     axis2_char_t *(AXIS2_CALL *
00085     to_string) (
00086             void *direction,
00087             const axis2_env_t *env);
00088 
00089 
00090 };
00091 
00092 struct woden_direction
00093 {
00094     woden_direction_ops_t *ops;
00095     
00096 };
00097 
00098 AXIS2_EXTERN woden_direction_t *AXIS2_CALL
00099 woden_direction_get_direction_in(
00100         const axis2_env_t *env);
00101 
00102 AXIS2_EXTERN woden_direction_t *AXIS2_CALL
00103 woden_direction_get_direction_out(
00104         const axis2_env_t *env);
00105 
00106 #define WODEN_DIRECTION_FREE(direction, env) \
00107       (((woden_direction_t *) direction)->ops->\
00108          free (direction, env))
00109 
00110 #define WODEN_DIRECTION_TO_STRING(direction, env) \
00111       (((woden_direction_t *) direction)->ops->\
00112          to_string (direction, env))
00113 
00114 
00116 #ifdef __cplusplus
00117 }
00118 #endif
00119 #endif /* WODEN_DIRECTION_H */

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