00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef SANDESHA2_MSG_NUMBER_H
00018 #define SANDESHA2_MSG_NUMBER_H
00019
00025 #include <sandesha2_iom_rm_element.h>
00026 #include <sandesha2_error.h>
00027
00028
00029 #ifdef __cplusplus
00030 extern "C"
00031 {
00032 #endif
00033
00038 typedef struct sandesha2_msg_number_ops sandesha2_msg_number_ops_t;
00039 typedef struct sandesha2_msg_number sandesha2_msg_number_t;
00040
00045 AXIS2_DECLARE_DATA struct sandesha2_msg_number_ops
00046 {
00047 long (AXIS2_CALL *
00048 get_msg_num)
00049 (sandesha2_msg_number_t *msg_number,
00050 const axutil_env_t *env);
00051
00052 axis2_status_t (AXIS2_CALL *
00053 set_msg_num)
00054 (sandesha2_msg_number_t *msg_number,
00055 const axutil_env_t *env,
00056 long value);
00057 };
00058
00063 AXIS2_DECLARE_DATA struct sandesha2_msg_number
00064 {
00065 sandesha2_iom_rm_element_t element;
00066 sandesha2_msg_number_ops_t *ops;
00067 };
00068
00069 AXIS2_EXTERN sandesha2_msg_number_t* AXIS2_CALL
00070 sandesha2_msg_number_create(
00071 const axutil_env_t *env,
00072 axis2_char_t *ns_value);
00073
00074
00075 #define SANDESHA2_MSG_NUMBER_SET_MSG_NUM(msg_number, env, value) \
00076 ((msg_number)->ops->set_msg_num (msg_number, env, value))
00077 #define SANDESHA2_MSG_NUMBER_GET_MSG_NUM(msg_number, env) \
00078 ((msg_number)->ops->get_msg_num (msg_number, env))
00079
00080
00082 #ifdef __cplusplus
00083 }
00084 #endif
00085
00086 #endif
00087