00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef WODEN_MSG_LABEL_H
00018 #define WODEN_MSG_LABEL_H
00019
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_msg_label woden_msg_label_t;
00065 typedef struct woden_msg_label_ops woden_msg_label_ops_t;
00066 struct woden_ext_element;
00067
00073 struct woden_msg_label_ops
00074 {
00079 axis2_status_t (AXIS2_CALL *
00080 free) (
00081 void *msg_label,
00082 const axis2_env_t *env);
00083
00084 axis2_char_t *(AXIS2_CALL *
00085 to_string) (
00086 void *msg_label,
00087 const axis2_env_t *env);
00088
00089 axis2_bool_t (AXIS2_CALL *
00090 is_valid) (
00091 void *msg_label,
00092 const axis2_env_t *env);
00093
00094 axis2_bool_t (AXIS2_CALL *
00095 equals) (
00096 void *msg_label,
00097 const axis2_env_t *env,
00098 woden_msg_label_t *other);
00099
00100
00101 };
00102
00103 struct woden_msg_label
00104 {
00105 woden_msg_label_ops_t *ops;
00106
00107 };
00108
00109 AXIS2_EXTERN woden_msg_label_t *AXIS2_CALL
00110 woden_msg_label_get_msg_label_in(
00111 const axis2_env_t *env);
00112
00113 AXIS2_EXTERN woden_msg_label_t *AXIS2_CALL
00114 woden_msg_label_get_msg_label_out(
00115 const axis2_env_t *env);
00116
00117 AXIS2_EXTERN woden_msg_label_t *AXIS2_CALL
00118 woden_msg_label_get_invalid_value(
00119 const axis2_env_t *env,
00120 const axis2_char_t *value);
00121
00122 #define WODEN_MSG_LABEL_FREE(msg_label, env) \
00123 (((woden_msg_label_t *) msg_label)->ops->\
00124 free (msg_label, env))
00125
00126 #define WODEN_MSG_LABEL_TO_STRING(msg_label, env) \
00127 (((woden_msg_label_t *) msg_label)->ops->\
00128 to_string (msg_label, env))
00129
00130 #define WODEN_MSG_LABEL_IS_VALID(msg_label, env) \
00131 (((woden_msg_label_t *) msg_label)->ops->\
00132 is_valid (msg_label, env))
00133
00134 #define WODEN_MSG_LABEL_EQUALS(msg_label, env, other) \
00135 (((woden_msg_label_t *) msg_label)->ops->\
00136 equals (msg_label, env, other))
00137
00138
00140 #ifdef __cplusplus
00141 }
00142 #endif
00143 #endif