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 
00033 #include <axis2_defines.h>
00034 #include <axis2_env.h>
00035 #include <axis2_msg_ctx.h>
00036 #include <axiom_soap_envelope.h>
00037 
00038 #ifdef __cplusplus
00039 extern "C"
00040 {
00041 #endif
00042 
00043 
00045     typedef struct axis2_async_result_ops axis2_async_result_ops_t;
00047     typedef struct axis2_async_result axis2_async_result_t;
00048 
00049 
00054     struct axis2_async_result_ops
00055     {
00062         axiom_soap_envelope_t *(AXIS2_CALL *
00063                 get_envelope)(
00064                     axis2_async_result_t *async_result,
00065                     const axis2_env_t *env);
00066 
00067 
00074         axis2_msg_ctx_t *(AXIS2_CALL *
00075                 get_result)(
00076                     axis2_async_result_t *async_result,
00077                     const axis2_env_t *env);
00078 
00085         axis2_status_t (AXIS2_CALL *
00086                 free)(
00087                     axis2_async_result_t *async_result,
00088                     const axis2_env_t *env);
00089     };
00090 
00094     struct axis2_async_result
00095     {
00097         axis2_async_result_ops_t *ops;
00098     };
00099 
00107     AXIS2_EXTERN axis2_async_result_t *AXIS2_CALL
00108     axis2_async_result_create(
00109         const axis2_env_t *env,
00110         axis2_msg_ctx_t *result);
00111 
00114 #define AXIS2_ASYNC_RESULT_GET_ENVELOPE(async_result, env) \
00115       ((async_result)->ops->get_envelope(async_result, env))
00116 
00119 #define AXIS2_ASYNC_RESULT_GET_RESULT(async_result, env) \
00120       ((async_result)->ops->get_result(async_result, env))
00121 
00124 #define AXIS2_ASYNC_RESULT_FREE(async_result, env) \
00125       ((async_result)->ops->free (async_result, env))
00126 
00128 #ifdef __cplusplus
00129 }
00130 #endif
00131 
00132 #endif                          /* AXIS2_ASYNC_RESULT_H */

Generated on Thu Oct 26 21:11:23 2006 for Axis2/C by  doxygen 1.4.7