Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Examples

axis2_async_result.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 AXIS2_ASYNC_RESULT_H
00018 #define AXIS2_ASYNC_RESULT_H
00019 
00020 
00026 #include <axis2_defines.h>
00027 #include <axis2_env.h>
00028 #include <axis2_msg_ctx.h>
00029 #include <axiom_soap_envelope.h>
00030 
00031 #ifdef __cplusplus
00032 extern "C"
00033 {
00034 #endif
00035 
00041 typedef struct axis2_async_result_ops axis2_async_result_ops_t;
00042 typedef struct axis2_async_result axis2_async_result_t; 
00043 
00044     
00049 struct axis2_async_result_ops
00050 {
00051     axiom_soap_envelope_t* (AXIS2_CALL *
00052    get_envelope)(struct axis2_async_result *async_result, 
00053               const axis2_env_t *env);
00054    
00055    
00056     axis2_msg_ctx_t* (AXIS2_CALL *
00057    get_result)(struct axis2_async_result *async_result, 
00058             const axis2_env_t *env);
00059    
00060     axis2_status_t (AXIS2_CALL *
00061    free)(struct axis2_async_result *async_result, 
00062           const axis2_env_t *env);
00063 };
00064 
00069 struct axis2_async_result
00070 {
00071     axis2_async_result_ops_t *ops;    
00072 };
00073 
00074 AXIS2_EXTERN axis2_async_result_t* AXIS2_CALL 
00075 axis2_async_result_create(const axis2_env_t *env, 
00076                      axis2_msg_ctx_t *result); 
00077     
00078 /************************** Start of function macros **************************/
00079 
00080 #define AXIS2_ASYNC_RESULT_GET_ENVELOPE(async_result, env) \
00081       ((async_result)->ops->get_envelope(async_result, env))
00082 
00083 #define AXIS2_ASYNC_RESULT_GET_RESULT(async_result, env) \
00084       ((async_result)->ops->get_result(async_result, env))
00085 
00086 #define AXIS2_ASYNC_RESULT_FREE(async_result, env) \
00087       ((async_result)->ops->free (async_result, env))
00088 
00089 /************************** End of function macros ****************************/    
00090 
00092 #ifdef __cplusplus
00093 }
00094 #endif
00095 
00096 #endif                          /* AXIS2_ASYNC_RESULT_H */

Generated on Fri Jun 16 18:02:30 2006 for Axis2/C by  doxygen 1.4.2