axis2_callback.h

Go to the documentation of this file.
00001 
00002 /*
00003 * Licensed to the Apache Software Foundation (ASF) under one or more
00004 * contributor license agreements.  See the NOTICE file distributed with
00005 * this work for additional information regarding copyright ownership.
00006 * The ASF licenses this file to You under the Apache License, Version 2.0
00007 * (the "License"); you may not use this file except in compliance with
00008 * the License.  You may obtain a copy of the License at
00009 *
00010 *      http://www.apache.org/licenses/LICENSE-2.0
00011 *
00012 * Unless required by applicable law or agreed to in writing, software
00013 * distributed under the License is distributed on an "AS IS" BASIS,
00014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00015 * See the License for the specific language governing permissions and
00016 * limitations under the License.
00017 */
00018 
00019 #ifndef AXIS2_CALLBACK_H
00020 #define AXIS2_CALLBACK_H
00021 
00037 #include <axis2_defines.h>
00038 #include <axutil_env.h>
00039 #include <axis2_async_result.h>
00040 #include <axiom_soap_envelope.h>
00041 
00042 #ifdef __cplusplus
00043 extern "C"
00044 {
00045 #endif
00046 
00048     typedef struct axis2_callback axis2_callback_t;
00049 
00051     typedef axis2_status_t AXIS2_CALL
00052     axis2_on_complete_func_ptr(
00053         axis2_callback_t *,
00054         const axutil_env_t *);
00055 
00057     typedef axis2_status_t AXIS2_CALL
00058     axis2_on_error_func_ptr(
00059         axis2_callback_t *,
00060         const axutil_env_t *,
00061         int);
00062 
00071     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00072     axis2_callback_invoke_on_complete(
00073         axis2_callback_t * callback,
00074         const axutil_env_t * env,
00075         axis2_async_result_t * result);
00076 
00085     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00086     axis2_callback_report_error(
00087         axis2_callback_t * callback,
00088         const axutil_env_t * env,
00089         const int exception);
00090 
00109     AXIS2_EXTERN axis2_bool_t AXIS2_CALL
00110     axis2_callback_get_complete(
00111         const axis2_callback_t * callback,
00112         const axutil_env_t * env);
00113 
00121     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00122     axis2_callback_set_complete(
00123         axis2_callback_t * callback,
00124         const axutil_env_t * env,
00125         const axis2_bool_t complete);
00126 
00133     AXIS2_EXTERN axiom_soap_envelope_t *AXIS2_CALL
00134 
00135     axis2_callback_get_envelope(
00136         const axis2_callback_t * callback,
00137         const axutil_env_t * env);
00138 
00146     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00147     axis2_callback_set_envelope(
00148         axis2_callback_t * callback,
00149         const axutil_env_t * env,
00150         axiom_soap_envelope_t * envelope);
00151 
00158     AXIS2_EXTERN int AXIS2_CALL
00159     axis2_callback_get_error(
00160         const axis2_callback_t * callback,
00161         const axutil_env_t * env);
00162 
00170     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00171     axis2_callback_set_error(
00172         axis2_callback_t * callback,
00173         const axutil_env_t * env,
00174         const int error);
00175 
00182     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00183     axis2_callback_set_data(
00184         axis2_callback_t * callback,
00185         void *data);
00186 
00192     AXIS2_EXTERN void *AXIS2_CALL
00193     axis2_callback_get_data(
00194         const axis2_callback_t * callback);
00195 
00201     AXIS2_EXTERN void AXIS2_CALL
00202     axis2_callback_set_on_complete(
00203         axis2_callback_t * callback,
00204         axis2_on_complete_func_ptr f);
00205 
00211     AXIS2_EXTERN void AXIS2_CALL
00212     axis2_callback_set_on_error(
00213         axis2_callback_t * callback,
00214         axis2_on_error_func_ptr f);
00215 
00222     AXIS2_EXTERN void AXIS2_CALL
00223     axis2_callback_free(
00224         axis2_callback_t * callback,
00225         const axutil_env_t * env);
00226 
00232     AXIS2_EXTERN axis2_callback_t *AXIS2_CALL
00233     axis2_callback_create(
00234         const axutil_env_t * env);
00235 
00237 #ifdef __cplusplus
00238 }
00239 #endif
00240 
00241 #endif                          /* AXIS2_CALL_BACK_H */

Generated on Tue Jan 8 01:28:16 2008 for Axis2/C by  doxygen 1.5.1