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_FLOW_H 00020 #define AXIS2_FLOW_H 00021 00030 #include <axis2_const.h> 00031 #include <axutil_error.h> 00032 #include <axis2_defines.h> 00033 #include <axutil_env.h> 00034 #include <axutil_allocator.h> 00035 #include <axutil_string.h> 00036 #include <axutil_array_list.h> 00037 #include <axis2_handler_desc.h> 00038 00039 #ifdef __cplusplus 00040 extern "C" 00041 { 00042 #endif 00043 00045 typedef struct axis2_flow axis2_flow_t; 00046 00052 AXIS2_EXTERN axis2_flow_t *AXIS2_CALL 00053 axis2_flow_create( 00054 const axutil_env_t * env); 00055 00062 AXIS2_EXTERN void AXIS2_CALL 00063 axis2_flow_free( 00064 axis2_flow_t * flow, 00065 const axutil_env_t * env); 00066 00074 AXIS2_EXTERN axis2_status_t AXIS2_CALL 00075 axis2_flow_add_handler( 00076 axis2_flow_t * flow, 00077 const axutil_env_t * env, 00078 axis2_handler_desc_t * handler); 00079 00087 AXIS2_EXTERN axis2_handler_desc_t *AXIS2_CALL 00088 axis2_flow_get_handler( 00089 const axis2_flow_t * flow, 00090 const axutil_env_t * env, 00091 const int index); 00092 00099 AXIS2_EXTERN int AXIS2_CALL 00100 axis2_flow_get_handler_count( 00101 const axis2_flow_t * flow, 00102 const axutil_env_t * env); 00103 00111 AXIS2_EXTERN void AXIS2_CALL 00112 axis2_flow_free_void_arg( 00113 void *flow, 00114 const axutil_env_t * env); 00115 00118 #ifdef __cplusplus 00119 } 00120 #endif 00121 #endif /* AXIS2_FLOW_H */