sandesha2_msg_number.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 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 /************************** Start of function macros **************************/
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 /************************** End of function macros ****************************/
00080 
00082 #ifdef __cplusplus
00083 }
00084 #endif
00085 
00086 #endif                          /* SANDESHA2_MSG_NUMBER_H */
00087 

Generated on Mon Oct 1 17:19:03 2007 for Sandesha2/C by  doxygen 1.5.3