- Main Page
- Modules
- Classes
- Files
- Directories
- Related Pages
- Examples

- Search for |

# 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     axis2_callback_get_envelope(
    00135         const axis2_callback_t * callback,
    00136         const axutil_env_t * env);
    00137
    00145     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00146     axis2_callback_set_envelope(
    00147         axis2_callback_t * callback,
    00148         const axutil_env_t * env,
    00149         axiom_soap_envelope_t * envelope);
    00150
    00157     AXIS2_EXTERN int AXIS2_CALL
    00158     axis2_callback_get_error(
    00159         const axis2_callback_t * callback,
    00160         const axutil_env_t * env);
    00161
    00169     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00170     axis2_callback_set_error(
    00171         axis2_callback_t * callback,
    00172         const axutil_env_t * env,
    00173         const int error);
    00174
    00181     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00182     axis2_callback_set_data(
    00183         axis2_callback_t * callback,
    00184         void *data);
    00185
    00191     AXIS2_EXTERN void *AXIS2_CALL
    00192     axis2_callback_get_data(
    00193         const axis2_callback_t * callback);
    00194
    00200     AXIS2_EXTERN void AXIS2_CALL
    00201     axis2_callback_set_on_complete(
    00202         axis2_callback_t * callback,
    00203         axis2_on_complete_func_ptr f);
    00204
    00210     AXIS2_EXTERN void AXIS2_CALL
    00211     axis2_callback_set_on_error(
    00212         axis2_callback_t * callback,
    00213         axis2_on_error_func_ptr f);
    00214
    00221     AXIS2_EXTERN void AXIS2_CALL
    00222     axis2_callback_free(
    00223         axis2_callback_t * callback,
    00224         const axutil_env_t * env);
    00225
    00231     AXIS2_EXTERN axis2_callback_t *AXIS2_CALL
    00232     axis2_callback_create(
    00233         const axutil_env_t * env);
    00234
    00236 #ifdef __cplusplus
    00237 }
    00238 #endif
    00239
    00240 #endif                          /* AXIS2_CALL_BACK_H */