woden_msg_label.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 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 /* WODEN_MSG_LABEL_H */

Generated on Tue Oct 3 20:47:59 2006 for Axis2/C by  doxygen 1.4.7