# 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
    00108     AXIS2_EXTERN axis2_bool_t AXIS2_CALL
    00109     axis2_callback_get_complete(
    00110         const axis2_callback_t * callback,
    00111         const axutil_env_t * env);
    00112
    00120     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00121     axis2_callback_set_complete(
    00122         axis2_callback_t * callback,
    00123         const axutil_env_t * env,
    00124         const axis2_bool_t complete);
    00125
    00132     AXIS2_EXTERN axiom_soap_envelope_t *AXIS2_CALL
    00133     axis2_callback_get_envelope(
    00134         const axis2_callback_t * callback,
    00135         const axutil_env_t * env);
    00136
    00144     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00145     axis2_callback_set_envelope(
    00146         axis2_callback_t * callback,
    00147         const axutil_env_t * env,
    00148         axiom_soap_envelope_t * envelope);
    00149
    00156     AXIS2_EXTERN axis2_msg_ctx_t *AXIS2_CALL
    00157     axis2_callback_get_msg_ctx(
    00158         const axis2_callback_t * callback,
    00159         const axutil_env_t * env);
    00160
    00168     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00169     axis2_callback_set_msg_ctx(
    00170         axis2_callback_t * callback,
    00171         const axutil_env_t * env,
    00172         axis2_msg_ctx_t * msg_ctx);
    00173
    00180     AXIS2_EXTERN int AXIS2_CALL
    00181     axis2_callback_get_error(
    00182         const axis2_callback_t * callback,
    00183         const axutil_env_t * env);
    00184
    00192     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00193     axis2_callback_set_error(
    00194         axis2_callback_t * callback,
    00195         const axutil_env_t * env,
    00196         const int error);
    00197
    00204     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00205     axis2_callback_set_data(
    00206         axis2_callback_t * callback,
    00207         void *data);
    00208
    00214     AXIS2_EXTERN void *AXIS2_CALL
    00215     axis2_callback_get_data(
    00216         const axis2_callback_t * callback);
    00217
    00223     AXIS2_EXTERN void AXIS2_CALL
    00224     axis2_callback_set_on_complete(
    00225         axis2_callback_t * callback,
    00226         axis2_on_complete_func_ptr f);
    00227
    00233     AXIS2_EXTERN void AXIS2_CALL
    00234     axis2_callback_set_on_error(
    00235         axis2_callback_t * callback,
    00236         axis2_on_error_func_ptr f);
    00237
    00244     AXIS2_EXTERN void AXIS2_CALL
    00245     axis2_callback_free(
    00246         axis2_callback_t * callback,
    00247         const axutil_env_t * env);
    00248
    00254     AXIS2_EXTERN axis2_callback_t *AXIS2_CALL
    00255     axis2_callback_create(
    00256         const axutil_env_t * env);
    00257
    00259 #ifdef __cplusplus
    00260 }
    00261 #endif
    00262
    00263 #endif                          /* AXIS2_CALL_BACK_H */