00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
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