You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by na...@apache.org on 2006/03/20 04:56:00 UTC
svn commit: r387127 [1/5] - in /webservices/axis2/trunk/c: include/
modules/core/deployment/ modules/xml/om/ modules/xml/soap/ test/unit/
test/xml/om/
Author: nandika
Date: Sun Mar 19 19:55:55 2006
New Revision: 387127
URL: http://svn.apache.org/viewcvs?rev=387127&view=rev
Log:
code layout corrected according to cording convention, warnings removed
Modified:
webservices/axis2/trunk/c/include/axis2_addr_mod.h
webservices/axis2/trunk/c/include/axis2_allocator.h
webservices/axis2/trunk/c/include/axis2_any_content_type.h
webservices/axis2/trunk/c/include/axis2_async_result.h
webservices/axis2/trunk/c/include/axis2_call.h
webservices/axis2/trunk/c/include/axis2_callback.h
webservices/axis2/trunk/c/include/axis2_disp_checker.h
webservices/axis2/trunk/c/include/axis2_endpoint_ref.h
webservices/axis2/trunk/c/include/axis2_flow.h
webservices/axis2/trunk/c/include/axis2_flow_container.h
webservices/axis2/trunk/c/include/axis2_handler.h
webservices/axis2/trunk/c/include/axis2_http_server.h
webservices/axis2/trunk/c/include/axis2_http_simple_response.h
webservices/axis2/trunk/c/include/axis2_http_status_line.h
webservices/axis2/trunk/c/include/axis2_log.h
webservices/axis2/trunk/c/include/axis2_mep_client.h
webservices/axis2/trunk/c/include/axis2_msg_ctx.h
webservices/axis2/trunk/c/include/axis2_msg_info_headers.h
webservices/axis2/trunk/c/include/axis2_network_handler.h
webservices/axis2/trunk/c/include/axis2_om_attribute.h
webservices/axis2/trunk/c/include/axis2_om_child_element_iterator.h
webservices/axis2/trunk/c/include/axis2_om_children_iterator.h
webservices/axis2/trunk/c/include/axis2_om_children_qname_iterator.h
webservices/axis2/trunk/c/include/axis2_om_children_with_specific_attribute_iterator.h
webservices/axis2/trunk/c/include/axis2_om_comment.h
webservices/axis2/trunk/c/include/axis2_om_doctype.h
webservices/axis2/trunk/c/include/axis2_om_document.h
webservices/axis2/trunk/c/include/axis2_om_element.h
webservices/axis2/trunk/c/include/axis2_om_namespace.h
webservices/axis2/trunk/c/include/axis2_om_node.h
webservices/axis2/trunk/c/include/axis2_om_output.h
webservices/axis2/trunk/c/include/axis2_om_processing_instruction.h
webservices/axis2/trunk/c/include/axis2_om_stax_builder.h
webservices/axis2/trunk/c/include/axis2_om_text.h
webservices/axis2/trunk/c/include/axis2_op.h
webservices/axis2/trunk/c/include/axis2_op_ctx.h
webservices/axis2/trunk/c/include/axis2_param.h
webservices/axis2/trunk/c/include/axis2_param_container.h
webservices/axis2/trunk/c/include/axis2_phase.h
webservices/axis2/trunk/c/include/axis2_phase_holder.h
webservices/axis2/trunk/c/include/axis2_phase_rule.h
webservices/axis2/trunk/c/include/axis2_qname.h
webservices/axis2/trunk/c/include/axis2_relates_to.h
webservices/axis2/trunk/c/include/axis2_simple_http_svr_conn.h
webservices/axis2/trunk/c/include/axis2_soap.h
webservices/axis2/trunk/c/include/axis2_soap_body.h
webservices/axis2/trunk/c/include/axis2_soap_envelope.h
webservices/axis2/trunk/c/include/axis2_soap_fault.h
webservices/axis2/trunk/c/include/axis2_soap_fault_code.h
webservices/axis2/trunk/c/include/axis2_soap_fault_detail.h
webservices/axis2/trunk/c/include/axis2_soap_fault_node.h
webservices/axis2/trunk/c/include/axis2_soap_fault_reason.h
webservices/axis2/trunk/c/include/axis2_soap_fault_role.h
webservices/axis2/trunk/c/include/axis2_soap_fault_sub_code.h
webservices/axis2/trunk/c/include/axis2_soap_fault_text.h
webservices/axis2/trunk/c/include/axis2_soap_fault_value.h
webservices/axis2/trunk/c/include/axis2_soap_header.h
webservices/axis2/trunk/c/include/axis2_soap_header_block.h
webservices/axis2/trunk/c/include/axis2_soap_message.h
webservices/axis2/trunk/c/include/axis2_stream.h
webservices/axis2/trunk/c/include/axis2_svc_ctx.h
webservices/axis2/trunk/c/include/axis2_svc_grp_ctx.h
webservices/axis2/trunk/c/include/axis2_svc_name.h
webservices/axis2/trunk/c/include/axis2_thread_mutex.h
webservices/axis2/trunk/c/include/axis2_thread_pool.h
webservices/axis2/trunk/c/include/axis2_url.h
webservices/axis2/trunk/c/include/axis2_xml_reader.h
webservices/axis2/trunk/c/include/axis2_xml_writer.h
webservices/axis2/trunk/c/modules/core/deployment/repos_listener.c
webservices/axis2/trunk/c/modules/xml/om/axis2_om_node_internal.h
webservices/axis2/trunk/c/modules/xml/om/om_children_qname_iterator.c
webservices/axis2/trunk/c/modules/xml/om/om_element.c
webservices/axis2/trunk/c/modules/xml/om/om_node.c
webservices/axis2/trunk/c/modules/xml/soap/soap_fault.c
webservices/axis2/trunk/c/modules/xml/soap/soap_message.c
webservices/axis2/trunk/c/test/unit/main.c
webservices/axis2/trunk/c/test/xml/om/test_om.c
Modified: webservices/axis2/trunk/c/include/axis2_addr_mod.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_addr_mod.h?rev=387127&r1=387126&r2=387127&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_addr_mod.h (original)
+++ webservices/axis2/trunk/c/include/axis2_addr_mod.h Sun Mar 19 19:55:55 2006
@@ -30,10 +30,12 @@
#endif
AXIS2_DECLARE(axis2_handler_t*)
-axis2_addr_in_handler_create(axis2_env_t **env, axis2_qname_t *qname);
+axis2_addr_in_handler_create(axis2_env_t **env,
+ axis2_qname_t *qname);
AXIS2_DECLARE(axis2_handler_t*)
-axis2_addr_out_handler_create(axis2_env_t **env, axis2_qname_t *qname);
+axis2_addr_out_handler_create(axis2_env_t **env,
+ axis2_qname_t *qname);
/** @} */
Modified: webservices/axis2/trunk/c/include/axis2_allocator.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_allocator.h?rev=387127&r1=387126&r2=387127&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_allocator.h (original)
+++ webservices/axis2/trunk/c/include/axis2_allocator.h Sun Mar 19 19:55:55 2006
@@ -32,6 +32,7 @@
/**
* @defgroup axis2_allocator Memory Allocator
* @ingroup axis2_util
+
* @{
*/
@@ -71,18 +72,25 @@
* @param allocator user defined allcator. Optional, can be NULL. If NULL, a default allocator will be returned.
* @return initialized allocator. NULL on error.
*/
- AXIS2_DECLARE(axis2_allocator_t *) axis2_allocator_init (axis2_allocator_t * allocator);
+ AXIS2_DECLARE(axis2_allocator_t *)
+ axis2_allocator_init (axis2_allocator_t * allocator);
/**
* This function should be used to deallocate memory if the default allocator provided by
* axis2_allocator_init()
* @param allocator
*/
- AXIS2_DECLARE(axis2_status_t) axis2_allocator_free(axis2_allocator_t *allocator);
+ AXIS2_DECLARE(axis2_status_t)
+ axis2_allocator_free(axis2_allocator_t *allocator);
-#define AXIS2_MALLOC(allocator, size) ((allocator)->malloc(size))
-#define AXIS2_REALLOC(allocator, ptr, size) ((allocator)->realloc(ptr, size))
-#define AXIS2_FREE(allocator, ptr) ((allocator)->free(ptr))
+#define AXIS2_MALLOC(allocator, size) \
+ ((allocator)->malloc(size))
+
+#define AXIS2_REALLOC(allocator, ptr, size) \
+ ((allocator)->realloc(ptr, size))
+
+#define AXIS2_FREE(allocator, ptr) \
+ ((allocator)->free(ptr))
/** @} */
Modified: webservices/axis2/trunk/c/include/axis2_any_content_type.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_any_content_type.h?rev=387127&r1=387126&r2=387127&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_any_content_type.h (original)
+++ webservices/axis2/trunk/c/include/axis2_any_content_type.h Sun Mar 19 19:55:55 2006
@@ -68,7 +68,10 @@
* @return Pointer to the value if present, else returns NULL.
* Environment status would be set to AXIS2_FAILURE on error.
*/
- axis2_char_t* (AXIS2_CALL *get_value)(struct axis2_any_content_type *any_content_type, axis2_env_t **env, axis2_qname_t *qname);
+ axis2_char_t* (AXIS2_CALL *
+ get_value)(struct axis2_any_content_type *any_content_type,
+ axis2_env_t **env,
+ axis2_qname_t *qname);
/**
* Gets the map of values
* @param any_content_type any_content_type struct. cannot be NULL.
@@ -76,15 +79,20 @@
* @return Pointer to the value map. Would return NULL and set
* Environment status to AXIS2_FAILURE on error.
*/
- axis2_hash_t* (AXIS2_CALL *get_value_map)(struct axis2_any_content_type *any_content_type, axis2_env_t **env);
+ axis2_hash_t* (AXIS2_CALL *
+ get_value_map)(struct axis2_any_content_type *any_content_type,
+ axis2_env_t **env);
+
/**
* Frees the given any_content_type struct
* @param any_content_type any_content_type struct. cannot be NULL.
* @param env Environment. MUST NOT be NULL.
* @return AXIS2_SUCCESS on success else AXIS2_FAILURE
*/
- axis2_status_t (AXIS2_CALL *free)(struct axis2_any_content_type *any_content_type,
- axis2_env_t **env);
+ axis2_status_t (AXIS2_CALL *
+ free)(struct axis2_any_content_type *any_content_type,
+ axis2_env_t **env);
+
} axis2_any_content_type_ops_t;
/**
Modified: webservices/axis2/trunk/c/include/axis2_async_result.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_async_result.h?rev=387127&r1=387126&r2=387127&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_async_result.h (original)
+++ webservices/axis2/trunk/c/include/axis2_async_result.h Sun Mar 19 19:55:55 2006
@@ -48,10 +48,18 @@
*/
struct axis2_async_result_ops
{
- axis2_soap_envelope_t* (AXIS2_CALL *get_envelope)(struct axis2_async_result *async_result, axis2_env_t **env);
- axis2_msg_ctx_t* (AXIS2_CALL *get_result)(struct axis2_async_result *async_result, axis2_env_t **env);
- axis2_status_t (AXIS2_CALL *free)(struct axis2_async_result *async_result,
- axis2_env_t **env);
+ axis2_soap_envelope_t* (AXIS2_CALL *
+ get_envelope)(struct axis2_async_result *async_result,
+ axis2_env_t **env);
+
+
+ axis2_msg_ctx_t* (AXIS2_CALL *
+ get_result)(struct axis2_async_result *async_result,
+ axis2_env_t **env);
+
+ axis2_status_t (AXIS2_CALL *
+ free)(struct axis2_async_result *async_result,
+ axis2_env_t **env);
};
/**
@@ -63,13 +71,20 @@
axis2_async_result_ops_t *ops;
};
-AXIS2_DECLARE(axis2_async_result_t*) axis2_async_result_create(axis2_env_t **env, axis2_msg_ctx_t *result);
+AXIS2_DECLARE(axis2_async_result_t*)
+axis2_async_result_create(axis2_env_t **env,
+ axis2_msg_ctx_t *result);
/************************** Start of function macros **************************/
-#define AXIS2_ASYNC_RESULT_GET_ENVELOPE(async_result, env) ((async_result)->ops->get_envelope(async_result, env))
-#define AXIS2_ASYNC_RESULT_GET_RESULT(async_result, env) ((async_result)->ops->get_result(async_result, env))
-#define AXIS2_ASYNC_RESULT_FREE(async_result, env) ((async_result)->ops->free (async_result, env))
+#define AXIS2_ASYNC_RESULT_GET_ENVELOPE(async_result, env) \
+ ((async_result)->ops->get_envelope(async_result, env))
+
+#define AXIS2_ASYNC_RESULT_GET_RESULT(async_result, env) \
+ ((async_result)->ops->get_result(async_result, env))
+
+#define AXIS2_ASYNC_RESULT_FREE(async_result, env) \
+ ((async_result)->ops->free (async_result, env))
/************************** End of function macros ****************************/
Modified: webservices/axis2/trunk/c/include/axis2_call.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_call.h?rev=387127&r1=387126&r2=387127&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_call.h (original)
+++ webservices/axis2/trunk/c/include/axis2_call.h Sun Mar 19 19:55:55 2006
@@ -51,10 +51,12 @@
*/
struct axis2_call_ops
{
- axis2_mep_client_t* (AXIS2_CALL *get_base)(struct axis2_call *call,
- axis2_env_t **env);
+ axis2_mep_client_t* (AXIS2_CALL *
+ get_base)(struct axis2_call *call,
+ axis2_env_t **env);
/**
- * This accepts a ServiceContext, and the axis2_svc_ctx_t *should have all the parents set in to it right
+ * This accepts a ServiceContext, and the axis2_svc_ctx_t *should have all
+ * the parents set in to it right
* Ideall this should be generated from a WSDL, we do not have it yet.
* <p/>
* Follwoing code works for the time been
@@ -78,9 +80,10 @@
/**
* @param to
*/
- axis2_status_t (AXIS2_CALL *set_to)(struct axis2_call *call,
- axis2_env_t **env,
- axis2_endpoint_ref_t *to);
+ axis2_status_t (AXIS2_CALL *
+ set_to)(struct axis2_call *call,
+ axis2_env_t **env,
+ axis2_endpoint_ref_t *to);
/**
* Set transport information to the the Call, for find how the each parameter
* acts see the commant at the instance variables. The senarios supoorted
@@ -97,34 +100,38 @@
* @param use_separate_listener
* @throws AxisFault
*/
- axis2_status_t (AXIS2_CALL *set_transport_info)(struct axis2_call *call,
- axis2_env_t **env,
- axis2_char_t *sender_transport,
- axis2_char_t *listener_transport,
- axis2_bool_t use_separate_listener);
- /**
+ axis2_status_t (AXIS2_CALL *
+ set_transport_info)(struct axis2_call *call,
+ axis2_env_t **env,
+ axis2_char_t *sender_transport,
+ axis2_char_t *listener_transport,
+ axis2_bool_t use_separate_listener);
+/**
* Check has the transports are identified correctly
*
* @param msg_ctx
* @throws AxisFault
*/
- axis2_status_t (AXIS2_CALL *check_transport)(struct axis2_call *call,
- axis2_env_t **env,
- axis2_msg_ctx_t *msg_ctx);
+ axis2_status_t (AXIS2_CALL *
+ check_transport)(struct axis2_call *call,
+ axis2_env_t **env,
+ axis2_msg_ctx_t *msg_ctx);
/**
* Closing the Call, this will stop the started Transport Listeners. If there are multiple
* request to send the Call should be kept open closing only when done
*/
- axis2_status_t (AXIS2_CALL *close)(struct axis2_call *call,
- axis2_env_t **env);
+ axis2_status_t (AXIS2_CALL *
+ close)(struct axis2_call *call,
+ axis2_env_t **env);
/**
* This will be used in invoke blocking scenario. Client will wait the amount of time specified here
* and if there is no response, call will timeout. This should be given in multiples of 100 and defaults to 2000.
* @param time_out_ms
*/
- axis2_status_t (AXIS2_CALL *set_time)(struct axis2_call *call,
- axis2_env_t **env,
- long time_out_ms);
+ axis2_status_t (AXIS2_CALL *
+ set_time)(struct axis2_call *call,
+ axis2_env_t **env,
+ long time_out_ms);
/**
* This invocation done via this method blocks till the result arrives,
* using this method does not indicate
@@ -137,19 +144,21 @@
* </ol>
*/
- axis2_msg_ctx_t* (AXIS2_CALL *invoke_blocking)(struct axis2_call *call,
- axis2_env_t **env,
- axis2_op_t *op,
- axis2_msg_ctx_t *msg_ctx);
+ axis2_msg_ctx_t* (AXIS2_CALL *
+ invoke_blocking)(struct axis2_call *call,
+ axis2_env_t **env,
+ axis2_op_t *op,
+ axis2_msg_ctx_t *msg_ctx);
/**
* This invocation done via this method blocks till the result arrives, using this method does not indicate
* anyhting about the transport used or the nature of the transport.
*/
- axis2_status_t (AXIS2_CALL *invoke_non_blocking)(struct axis2_call *call,
- axis2_env_t **env,
- axis2_op_t *op,
- axis2_msg_ctx_t *msg_ctx,
- axis2_callback_t *callback);
+ axis2_status_t (AXIS2_CALL *
+ invoke_non_blocking)(struct axis2_call *call,
+ axis2_env_t **env,
+ axis2_op_t *op,
+ axis2_msg_ctx_t *msg_ctx,
+ axis2_callback_t *callback);
/**
* Invoke the blocking/Synchronous call
*
@@ -158,9 +167,11 @@
* @return
* @throws AxisFault
*/
- axis2_om_node_t* (AXIS2_CALL *invoke_blocking_with_om)(struct axis2_call *call,
- axis2_env_t **env,
- axis2_char_t *op_name, axis2_om_node_t *om_node_to_send);
+ axis2_om_node_t* (AXIS2_CALL *
+ invoke_blocking_with_om)(struct axis2_call *call,
+ axis2_env_t **env,
+ axis2_char_t *op_name,
+ axis2_om_node_t *om_node_to_send);
/**
* Invoke the blocking/Synchronous call
*
@@ -169,9 +180,11 @@
* @return
* @throws AxisFault
*/
- axis2_soap_envelope_t* (AXIS2_CALL *invoke_blocking_with_soap)(struct axis2_call *call,
- axis2_env_t **env,
- axis2_char_t *op_name, axis2_soap_envelope_t *envelope);
+ axis2_soap_envelope_t* (AXIS2_CALL *
+ invoke_blocking_with_soap)(struct axis2_call *call,
+ axis2_env_t **env,
+ axis2_char_t *op_name,
+ axis2_soap_envelope_t *envelope);
/**
* Invoke the nonblocking/Asynchronous call
*
@@ -179,9 +192,10 @@
* @param om_node_to_send - This should be OM Element (payload)
* invocation behaves accordingly
* @param callback
- * @throws org.apache.axis2.AxisFault
+ * @
*/
- axis2_status_t (AXIS2_CALL *invoke_non_blocking_with_om)(struct axis2_call *call,
+ axis2_status_t (AXIS2_CALL *
+ invoke_non_blocking_with_om)(struct axis2_call *call,
axis2_env_t **env,
axis2_char_t *op_name,
axis2_om_node_t *om_node_to_send,
@@ -190,30 +204,34 @@
* Invoke the nonblocking/Asynchronous call
*
* @param op_name
- * @param envelope - This should be a SOAP Envelope
- * invocation behaves accordingly
+ * @param envelope - This should be a axis2_soap_envelope_t
+ * invocation behaves accordingly
* @param callback
- * @throws org.apache.axis2.AxisFault
+ *
*/
- axis2_status_t (AXIS2_CALL *invoke_non_blocking_with_soap)(struct axis2_call *call,
- axis2_env_t **env,
- axis2_char_t *op_name,
- axis2_soap_envelope_t *envelope,
- axis2_callback_t * callback);
+ axis2_status_t (AXIS2_CALL *
+ invoke_non_blocking_with_soap)(struct axis2_call *call,
+ axis2_env_t **env,
+ axis2_char_t *op_name,
+ axis2_soap_envelope_t *envelope,
+ axis2_callback_t * callback);
/**
- * This method create a operation desc if it null and copy the flows from the template operation
+ * This method create a operation desc if it null and copy the
+ * flows from the template operation
* @param op
* @param axisOp
*/
- axis2_op_t* (AXIS2_CALL *create_op_fill_flow)(struct axis2_call *call,
- axis2_env_t **env,
- axis2_char_t *op_name);
+ axis2_op_t* (AXIS2_CALL *
+ create_op_fill_flow)(struct axis2_call *call,
+ axis2_env_t **env,
+ axis2_char_t *op_name);
/**
* @return
*/
- axis2_msg_ctx_t* (AXIS2_CALL *get_last_res_msg_ctx)(struct axis2_call *call,
- axis2_env_t **env);
+ axis2_msg_ctx_t* (AXIS2_CALL *
+ get_last_res_msg_ctx)(struct axis2_call *call,
+ axis2_env_t **env);
/**
* @param key
@@ -225,8 +243,9 @@
axis2_char_t *key,
axis2_property_t *value);
- axis2_status_t (AXIS2_CALL *free)(struct axis2_call *call,
- axis2_env_t **env);
+ axis2_status_t (AXIS2_CALL *
+ free)(struct axis2_call *call,
+ axis2_env_t **env);
};
/**
@@ -244,23 +263,53 @@
/************************** Start of function macros **************************/
-#define AXIS2_CALL_GET_BASE(call, env) ((call)->ops->get_base(call, env))
-#define AXIS2_CALL_INVOKE_BLOCKING(call, env, op, msg_ctx) ((call)->ops->invoke_blocking(call, env, op, msg_ctx))
-#define AXIS2_CALL_INVOKE_NON_BLOCKING(call, env, op, msg_ctx, callback) ((call)->ops->invoke_non_blocking(call, env, op, msg_ctx, callback))
-#define AXIS2_CALL_SET_TO(call, env, to) ((call)->ops->set_to(call, env, to))
-#define AXIS2_CALL_SET_TRANSPORT_INFO(call, env, sender_transport, listener_transport, use_separate_listener) ((call)->ops->set_transport_info(call, env, sender_transport, listener_transport, use_separate_listener))
-#define AXIS2_CALL_CHECK_TRANSPORT(call, env, msg_ctx) ((call)->ops->check_transport(call, env, msg_ctx))
-#define AXIS2_CALL_CLOSE(call, env) ((call)->ops->close(call, env))
-#define AXIS2_CALL_SET_TIME(call, env, time_out_ms) ((call)->ops->set_time(call, env, time_out_ms))
-#define AXIS2_CALL_INVOKE_BLOCKING_WITH_OM(call, env, op_name, om_node_to_send) ((call)->ops->invoke_blocking_with_om(call, env, op_name, om_node_to_send))
-#define AXIS2_CALL_INVOKE_BLOCKING_WITH_SOAP(call, env, op_name, envelope) ((call)->ops->invoke_blocking_with_soap(call, env, op_name, envelope))
-#define AXIS2_CALL_INVOKE_NON_BLOCKING_WITH_OM(call, env, op_name, om_node_to_send, callback) ((call)->ops->invoke_non_blocking_with_om(call, env, op_name, om_node_to_send, callback))
-#define AXIS2_CALL_INVOKE_NON_BLOCKING_WITH_SOAP(call, env, op_name, envelope, callback) ((call)->ops->invoke_non_blocking_with_soap(call, env, op_name, envelope, callback))
-#define AXIS2_CALL_CREATE_OP_FILL_FLOW(call, env, op_name) ((call)->ops->create_op_fill_flow(call, env, op_name))
-#define AXIS2_CALL_GET_LAST_RES_MSG_CTX(call, env) ((call)->ops->get_last_res_msg_ctx(call, env))
+#define AXIS2_CALL_GET_BASE(call, env) \
+ ((call)->ops->get_base(call, env))
+
+#define AXIS2_CALL_INVOKE_BLOCKING(call, env, op, msg_ctx) \
+ ((call)->ops->invoke_blocking(call, env, op, msg_ctx))
+
+#define AXIS2_CALL_INVOKE_NON_BLOCKING(call, env, op, msg_ctx, callback) \
+ ((call)->ops->invoke_non_blocking(call, env, op, msg_ctx, callback))
+
+#define AXIS2_CALL_SET_TO(call, env, to) \
+ ((call)->ops->set_to(call, env, to))
+
+#define AXIS2_CALL_SET_TRANSPORT_INFO(call, env, sender_transport, listener_transport, use_separate_listener) \
+ ((call)->ops->set_transport_info(call, env, sender_transport, listener_transport, use_separate_listener))
+
+#define AXIS2_CALL_CHECK_TRANSPORT(call, env, msg_ctx) \
+ ((call)->ops->check_transport(call, env, msg_ctx))
+
+#define AXIS2_CALL_CLOSE(call, env) \
+ ((call)->ops->close(call, env))
+
+#define AXIS2_CALL_SET_TIME(call, env, time_out_ms) \
+ ((call)->ops->set_time(call, env, time_out_ms))
+
+#define AXIS2_CALL_INVOKE_BLOCKING_WITH_OM(call, env, op_name, om_node_to_send)\
+ ((call)->ops->invoke_blocking_with_om(call, env, op_name, om_node_to_send))
+
+#define AXIS2_CALL_INVOKE_BLOCKING_WITH_SOAP(call, env, op_name, envelope) \
+ ((call)->ops->invoke_blocking_with_soap(call, env, op_name, envelope))
+
+#define AXIS2_CALL_INVOKE_NON_BLOCKING_WITH_OM(call, env, op_name, om_node_to_send, callback) \
+ ((call)->ops->invoke_non_blocking_with_om(call, env, op_name, om_node_to_send, callback))
+
+#define AXIS2_CALL_INVOKE_NON_BLOCKING_WITH_SOAP(call, env, op_name, envelope, callback)\
+ ((call)->ops->invoke_non_blocking_with_soap(call, env, op_name, envelope, callback))
+
+#define AXIS2_CALL_CREATE_OP_FILL_FLOW(call, env, op_name) \
+ ((call)->ops->create_op_fill_flow(call, env, op_name))
+
+#define AXIS2_CALL_GET_LAST_RES_MSG_CTX(call, env) \
+ ((call)->ops->get_last_res_msg_ctx(call, env))
+
#define AXIS2_CALL_SET(call, env, key, value) \
((call)->ops->set(call, env, key, value))
-#define AXIS2_CALL_FREE(call, env) ((call)->ops->free(call, env))
+
+#define AXIS2_CALL_FREE(call, env) \
+ ((call)->ops->free(call, env))
/************************** End of function macros ****************************/
Modified: webservices/axis2/trunk/c/include/axis2_callback.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_callback.h?rev=387127&r1=387126&r2=387127&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_callback.h (original)
+++ webservices/axis2/trunk/c/include/axis2_callback.h Sun Mar 19 19:55:55 2006
@@ -53,17 +53,19 @@
*
* @param result
*/
- axis2_status_t (AXIS2_CALL *invoke_on_complete)(struct axis2_callback *callback,
- axis2_env_t **env,
- axis2_async_result_t *result);
+ axis2_status_t (AXIS2_CALL *
+ invoke_on_complete)(struct axis2_callback *callback,
+ axis2_env_t **env,
+ axis2_async_result_t *result);
/**
* This Method is called by Axis2 once the Async Operation fails and the result returns
*
* @param e
*/
- axis2_status_t (AXIS2_CALL *report_error)(struct axis2_callback *callback,
- axis2_env_t **env,
- int exception);
+ axis2_status_t (AXIS2_CALL *
+ report_error)(struct axis2_callback *callback,
+ axis2_env_t **env,
+ int exception);
/**
* This says has the Async Operation is completed or not. this could be useful for poleing
* with a special callback written for poleing (checking repeatedly time to time).
@@ -79,27 +81,45 @@
*
* @return
*/
- axis2_bool_t (AXIS2_CALL *get_complete)(struct axis2_callback *callback,
- axis2_env_t **env);
+ axis2_bool_t (AXIS2_CALL *
+ get_complete)(struct axis2_callback *callback,
+ axis2_env_t **env);
/**
* Method setComplete
*
* @param complete
*/
- axis2_status_t (AXIS2_CALL *set_complete)(struct axis2_callback *callback,
- axis2_env_t **env,
- axis2_bool_t complete);
- axis2_soap_envelope_t* (AXIS2_CALL *get_envelope)(struct axis2_callback *callback,
- axis2_env_t **env);
- axis2_status_t (AXIS2_CALL *set_envelope)(struct axis2_callback *callback,
- axis2_env_t **env, axis2_soap_envelope_t *envelope);
- int (AXIS2_CALL *get_error)(struct axis2_callback *callback,
- axis2_env_t **env);
- axis2_status_t (AXIS2_CALL *set_error)(struct axis2_callback *callback,
- axis2_env_t **env,
- int error);
- axis2_status_t (AXIS2_CALL *free)(struct axis2_callback *callback,
- axis2_env_t **env);
+ axis2_status_t (AXIS2_CALL *
+ set_complete)(struct axis2_callback *callback,
+ axis2_env_t **env,
+ axis2_bool_t complete);
+
+
+ axis2_soap_envelope_t* (AXIS2_CALL *
+ get_envelope)(struct axis2_callback *callback,
+ axis2_env_t **env);
+
+
+ axis2_status_t (AXIS2_CALL *
+ set_envelope)(struct axis2_callback *callback,
+ axis2_env_t **env,
+ axis2_soap_envelope_t *envelope);
+
+
+ int (AXIS2_CALL *
+ get_error)(struct axis2_callback *callback,
+ axis2_env_t **env);
+
+
+ axis2_status_t (AXIS2_CALL *
+ set_error)(struct axis2_callback *callback,
+ axis2_env_t **env,
+ int error);
+
+
+ axis2_status_t (AXIS2_CALL *
+ free)(struct axis2_callback *callback,
+ axis2_env_t **env);
};
/**
@@ -115,15 +135,32 @@
/************************** Start of function macros **************************/
-#define AXIS2_CALLBACK_INVOKE_ON_COMPLETE(callback, env, result) ((callback)->ops->invoke_on_complete(callback, env, result))
-#define AXIS2_CALLBACK_REPORT_ERROR(callback, env, error) ((callback)->ops->report_error(callback, env, error))
-#define AXIS2_CALLBACK_GET_COMPLETE(callback, env) ((callback)->ops->get_complete(callback, env))
-#define AXIS2_CALLBACK_SET_COMPLETE(callback, env, complete) ((callback)->ops->set_complete(callback, env, complete))
-#define AXIS2_CALLBACK_GET_ENVELOPE(callback, env) ((callback)->ops->get_envelope(callback, env))
-#define AXIS2_CALLBACK_SET_ENVELOPE(callback, env, envelope) ((callback)->ops->set_envelope(callback, env, envelope))
-#define AXIS2_CALLBACK_GET_ERROR(callback, env) ((callback)->ops->get_error(callback, env))
-#define AXIS2_CALLBACK_SET_ERROR(callback, env, error) ((callback)->ops->set_error(callback, env, error))
-#define AXIS2_CALLBACK_FREE(callback, env) ((callback)->ops->free (callback, env))
+#define AXIS2_CALLBACK_INVOKE_ON_COMPLETE(callback, env, result) \
+ ((callback)->ops->invoke_on_complete(callback, env, result))
+
+#define AXIS2_CALLBACK_REPORT_ERROR(callback, env, error) \
+ ((callback)->ops->report_error(callback, env, error))
+
+#define AXIS2_CALLBACK_GET_COMPLETE(callback, env)\
+ ((callback)->ops->get_complete(callback, env))
+
+#define AXIS2_CALLBACK_SET_COMPLETE(callback, env, complete) \
+ ((callback)->ops->set_complete(callback, env, complete))
+
+#define AXIS2_CALLBACK_GET_ENVELOPE(callback, env) \
+ ((callback)->ops->get_envelope(callback, env))
+
+#define AXIS2_CALLBACK_SET_ENVELOPE(callback, env, envelope) \
+ ((callback)->ops->set_envelope(callback, env, envelope))
+
+#define AXIS2_CALLBACK_GET_ERROR(callback, env) \
+ ((callback)->ops->get_error(callback, env))
+
+#define AXIS2_CALLBACK_SET_ERROR(callback, env, error) \
+ ((callback)->ops->set_error(callback, env, error))
+
+#define AXIS2_CALLBACK_FREE(callback, env) \
+ ((callback)->ops->free (callback, env))
/************************** End of function macros ****************************/
Modified: webservices/axis2/trunk/c/include/axis2_disp_checker.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_disp_checker.h?rev=387127&r1=387126&r2=387127&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_disp_checker.h (original)
+++ webservices/axis2/trunk/c/include/axis2_disp_checker.h Sun Mar 19 19:55:55 2006
@@ -45,14 +45,23 @@
*/
AXIS2_DECLARE_DATA typedef struct axis2_disp_checker_ops
{
- axis2_handler_t* (AXIS2_CALL *get_base) (struct axis2_disp_checker *disp_checker,
- axis2_env_t **env);
- axis2_qname_t* (AXIS2_CALL *get_qname) (struct axis2_disp_checker *disp_checker,
- axis2_env_t **env);
- axis2_status_t (AXIS2_CALL *set_qname) (struct axis2_disp_checker *disp_checker,
- axis2_env_t **env, axis2_qname_t *qname);
- axis2_status_t (AXIS2_CALL *free) (struct axis2_disp_checker *disp_checker,
- axis2_env_t **env);
+ axis2_handler_t* (AXIS2_CALL *
+ get_base) (struct axis2_disp_checker *disp_checker,
+ axis2_env_t **env);
+
+
+ axis2_qname_t* (AXIS2_CALL *
+ get_qname) (struct axis2_disp_checker *disp_checker,
+ axis2_env_t **env);
+
+ axis2_status_t (AXIS2_CALL *
+ set_qname) (struct axis2_disp_checker *disp_checker,
+ axis2_env_t **env,
+ axis2_qname_t *qname);
+
+ axis2_status_t (AXIS2_CALL *
+ free) (struct axis2_disp_checker *disp_checker,
+ axis2_env_t **env);
} axis2_disp_checker_ops_t;
@@ -70,12 +79,22 @@
* creates disp_checker struct
* @param qname qname, can be NULL
*/
-AXIS2_DECLARE(axis2_disp_checker_t*) axis2_disp_checker_create(axis2_env_t **env, axis2_qname_t *qname);
+AXIS2_DECLARE(axis2_disp_checker_t*)
+axis2_disp_checker_create(axis2_env_t **env,
+ axis2_qname_t *qname);
-#define AXIS2_DISP_CHECKER_GET_BASE(disp_checker, env) ((disp_checker)->ops->get_base(disp_checker, env))
-#define AXIS2_DISP_CHECKER_GET_QNAME(disp_checker, env) ((disp_checker)->ops->get_qname(disp_checker, env))
-#define AXIS2_DISP_CHECKER_SET_QNAME(disp_checker, env, name) ((disp_checker)->ops->set_qname(disp_checker, env, name))
-#define AXIS2_DISP_CHECKER_FREE(disp_checker, env) ((disp_checker)->ops->free(disp_checker, env))
+#define AXIS2_DISP_CHECKER_GET_BASE(disp_checker, env) \
+ ((disp_checker)->ops->get_base(disp_checker, env))
+
+#define AXIS2_DISP_CHECKER_GET_QNAME(disp_checker, env) \
+ ((disp_checker)->ops->get_qname(disp_checker, env))
+
+#define AXIS2_DISP_CHECKER_SET_QNAME(disp_checker, env, name) \
+ ((disp_checker)->ops->set_qname(disp_checker, env, name))
+
+#define AXIS2_DISP_CHECKER_FREE(disp_checker, env) \
+ ((disp_checker)->ops->free(disp_checker, env))
+
/** @} */
Modified: webservices/axis2/trunk/c/include/axis2_endpoint_ref.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_endpoint_ref.h?rev=387127&r1=387126&r2=387127&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_endpoint_ref.h (original)
+++ webservices/axis2/trunk/c/include/axis2_endpoint_ref.h Sun Mar 19 19:55:55 2006
@@ -51,74 +51,108 @@
/**
* Method get_address
*/
- axis2_char_t* (AXIS2_CALL *get_address)(struct axis2_endpoint_ref *endpoint_ref,
- axis2_env_t **env);
+ axis2_char_t* (AXIS2_CALL *
+ get_address)(struct axis2_endpoint_ref *endpoint_ref,
+ axis2_env_t **env);
/**
* Method set_address
*
* @param address
*/
- axis2_status_t (AXIS2_CALL *set_address)(struct axis2_endpoint_ref *endpoint_ref,
- axis2_env_t **env, axis2_char_t *address);
+ axis2_status_t (AXIS2_CALL *
+ set_address)(struct axis2_endpoint_ref *endpoint_ref,
+ axis2_env_t **env,
+ axis2_char_t *address);
/**
* Method get_interface_qname
*/
- axis2_qname_t* (AXIS2_CALL *get_interface_qname)(struct axis2_endpoint_ref *endpoint_ref,
- axis2_env_t **env);
+ axis2_qname_t* (AXIS2_CALL *
+ get_interface_qname)(struct axis2_endpoint_ref *endpoint_ref,
+ axis2_env_t **env);
/**
* Method set_interface_qname
*
* @param interface_qname
*/
- axis2_status_t (AXIS2_CALL *set_interface_qname)(struct axis2_endpoint_ref *endpoint_ref,
- axis2_env_t **env, axis2_qname_t *interface_qname);
+ axis2_status_t (AXIS2_CALL *
+ set_interface_qname)(struct axis2_endpoint_ref *endpoint_ref,
+ axis2_env_t **env,
+ axis2_qname_t *interface_qname);
/**
* Method get_ref_properties
*/
- axis2_any_content_type_t* (AXIS2_CALL *get_ref_properties)(struct axis2_endpoint_ref *endpoint_ref,
- axis2_env_t **env);
+ axis2_any_content_type_t* (AXIS2_CALL *
+ get_ref_properties)(struct axis2_endpoint_ref *endpoint_ref,
+ axis2_env_t **env);
/**
* Method set_ref_properties
*
* @param ref_properties
*/
- axis2_status_t (AXIS2_CALL *set_ref_properties)(struct axis2_endpoint_ref *endpoint_ref,
- axis2_env_t **env, axis2_any_content_type_t *ref_properties);
+ axis2_status_t (AXIS2_CALL *
+ set_ref_properties)(struct axis2_endpoint_ref *endpoint_ref,
+ axis2_env_t **env,
+ axis2_any_content_type_t *ref_properties);
/**
* Method get_ref_params
*/
- axis2_any_content_type_t* (AXIS2_CALL *get_ref_params)(struct axis2_endpoint_ref *endpoint_ref,
- axis2_env_t **env);
+ axis2_any_content_type_t* (AXIS2_CALL *
+ get_ref_params)(struct axis2_endpoint_ref *endpoint_ref,
+ axis2_env_t **env);
/**
* Method set_ref_params
*/
- axis2_status_t (AXIS2_CALL *set_ref_params)(struct axis2_endpoint_ref *endpoint_ref,
- axis2_env_t **env,
- axis2_any_content_type_t* any_content_type);
+ axis2_status_t (AXIS2_CALL *
+ set_ref_params)(struct axis2_endpoint_ref *endpoint_ref,
+ axis2_env_t **env,
+ axis2_any_content_type_t* any_content_type);
/**
* Method get_svc_name
*/
- axis2_svc_name_t* (AXIS2_CALL *get_svc_name)(struct axis2_endpoint_ref *endpoint_ref,
- axis2_env_t **env);
+ axis2_svc_name_t* (AXIS2_CALL *
+ get_svc_name)(struct axis2_endpoint_ref *endpoint_ref,
+ axis2_env_t **env);
/**
* Method set_svc_name
*
* @param svc_name
*/
- axis2_status_t (AXIS2_CALL *set_svc_name)(struct axis2_endpoint_ref *endpoint_ref,
- axis2_env_t **env, axis2_svc_name_t *svc_name);
- axis2_om_node_t* (AXIS2_CALL *get_policies)(struct axis2_endpoint_ref *endpoint_ref,
- axis2_env_t **env);
- axis2_status_t (AXIS2_CALL *set_policies)(struct axis2_endpoint_ref *endpoint_ref,
- axis2_env_t **env, axis2_om_node_t *policies);
- axis2_any_content_type_t* (AXIS2_CALL *get_metadata)(struct axis2_endpoint_ref *endpoint_ref,
- axis2_env_t **env);
- axis2_status_t (AXIS2_CALL *set_metadata)(struct axis2_endpoint_ref *endpoint_ref,
- axis2_env_t **env, axis2_any_content_type_t *metadata);
- axis2_status_t (AXIS2_CALL *add_ref_param)(struct axis2_endpoint_ref *endpoint_ref,
- axis2_env_t **env, axis2_qname_t *qname, axis2_char_t *value);
- axis2_status_t (AXIS2_CALL *free)(struct axis2_endpoint_ref *endpoint_ref,
- axis2_env_t **env);
+ axis2_status_t (AXIS2_CALL *
+ set_svc_name)(struct axis2_endpoint_ref *endpoint_ref,
+ axis2_env_t **env,
+ axis2_svc_name_t *svc_name);
+
+
+ axis2_om_node_t* (AXIS2_CALL *
+ get_policies)(struct axis2_endpoint_ref *endpoint_ref,
+ axis2_env_t **env);
+
+ axis2_status_t (AXIS2_CALL *
+ set_policies)(struct axis2_endpoint_ref *endpoint_ref,
+ axis2_env_t **env,
+ axis2_om_node_t *policies);
+
+ axis2_any_content_type_t* (AXIS2_CALL *
+ get_metadata)(struct axis2_endpoint_ref *endpoint_ref,
+ axis2_env_t **env);
+
+ axis2_status_t (AXIS2_CALL *
+ set_metadata)(struct axis2_endpoint_ref *endpoint_ref,
+ axis2_env_t **env,
+ axis2_any_content_type_t *metadata);
+
+
+ axis2_status_t (AXIS2_CALL *
+ add_ref_param)(struct axis2_endpoint_ref *endpoint_ref,
+ axis2_env_t **env,
+ axis2_qname_t *qname,
+ axis2_char_t *value);
+
+
+ axis2_status_t (AXIS2_CALL *
+ free)(struct axis2_endpoint_ref *endpoint_ref,
+ axis2_env_t **env);
+
} axis2_endpoint_ref_ops_t;
/**
@@ -137,24 +171,57 @@
* @param value
* @param relationship_type
*/
-AXIS2_DECLARE(axis2_endpoint_ref_t*) axis2_endpoint_ref_create(axis2_env_t **env, axis2_char_t *address);
+AXIS2_DECLARE(axis2_endpoint_ref_t*)
+axis2_endpoint_ref_create(axis2_env_t **env,
+ axis2_char_t *address);
-#define AXIS2_ENDPOINT_REF_GET_ADDRESS(endpoint_ref, env) ((endpoint_ref)->ops->get_address(endpoint_ref, env))
-#define AXIS2_ENDPOINT_REF_SET_ADDRESS(endpoint_ref, env, address) ((endpoint_ref)->ops->set_address(endpoint_ref, env, address))
-#define AXIS2_ENDPOINT_REF_GET_INTERFACE_NAME(endpoint_ref, env) ((endpoint_ref)->ops->get_interface_qname(endpoint_ref, env))
-#define AXIS2_ENDPOINT_REF_SET_INTERFACE_NAME(endpoint_ref, env, interface_qname) ((endpoint_ref)->ops->set_interface_qname(endpoint_ref, env, interface_qname))
-#define AXIS2_ENDPOINT_REF_GET_REF_PROPERTIES(endpoint_ref, env) ((endpoint_ref)->ops->get_ref_properties(endpoint_ref, env))
-#define AXIS2_ENDPOINT_REF_SET_REF_PROPERTIES(endpoint_ref, env, ref_properties) ((endpoint_ref)->ops->set_ref_properties(endpoint_ref, env, ref_properties))
-#define AXIS2_ENDPOINT_REF_GET_REF_PARAMS(endpoint_ref, env) ((endpoint_ref)->ops->get_ref_params(endpoint_ref, env))
-#define AXIS2_ENDPOINT_REF_SET_REF_PARAMS(endpoint_ref, env, any_content_type) ((endpoint_ref)->ops->set_ref_params(endpoint_ref, env, any_content_type))
-#define AXIS2_ENDPOINT_REF_GET_SVC_NAME(endpoint_ref, env) ((endpoint_ref)->ops->get_svc_name(endpoint_ref, env))
-#define AXIS2_ENDPOINT_REF_SET_SVC_NAME(endpoint_ref, env, svc_name) ((endpoint_ref)->ops->set_svc_name(endpoint_ref, env, svc_name))
-#define AXIS2_ENDPOINT_REF_GET_POLICIES(endpoint_ref, env) ((endpoint_ref)->ops->get_policies(endpoint_ref, env))
-#define AXIS2_ENDPOINT_REF_SET_POLICIES(endpoint_ref, env, policies) ((endpoint_ref)->ops->set_policies(endpoint_ref, env, policies))
-#define AXIS2_ENDPOINT_REF_GET_METADATA(endpoint_ref, env) ((endpoint_ref)->ops->get_metadata(endpoint_ref, env))
-#define AXIS2_ENDPOINT_REF_SET_METADATA(endpoint_ref, env, metadata) ((endpoint_ref)->ops->set_metadata(endpoint_ref, env, metadata))
-#define AXIS2_ENDPOINT_REF_ADD_REF_PARAM(endpoint_ref, env, qname, value) ((endpoint_ref)->ops->add_ref_param(endpoint_ref, env, qname, value))
-#define AXIS2_ENDPOINT_REF_FREE(endpoint_ref, env) ((endpoint_ref)->ops->free(endpoint_ref, env))
+#define AXIS2_ENDPOINT_REF_GET_ADDRESS(endpoint_ref, env) \
+ ((endpoint_ref)->ops->get_address(endpoint_ref, env))
+
+#define AXIS2_ENDPOINT_REF_SET_ADDRESS(endpoint_ref, env, address) \
+ ((endpoint_ref)->ops->set_address(endpoint_ref, env, address))
+
+#define AXIS2_ENDPOINT_REF_GET_INTERFACE_NAME(endpoint_ref, env) \
+ ((endpoint_ref)->ops->get_interface_qname(endpoint_ref, env))
+
+#define AXIS2_ENDPOINT_REF_SET_INTERFACE_NAME(endpoint_ref, env, interface_qname)\
+ ((endpoint_ref)->ops->set_interface_qname(endpoint_ref, env, interface_qname))
+
+#define AXIS2_ENDPOINT_REF_GET_REF_PROPERTIES(endpoint_ref, env) \
+ ((endpoint_ref)->ops->get_ref_properties(endpoint_ref, env))
+
+#define AXIS2_ENDPOINT_REF_SET_REF_PROPERTIES(endpoint_ref, env, ref_properties)\
+ ((endpoint_ref)->ops->set_ref_properties(endpoint_ref, env, ref_properties))
+
+#define AXIS2_ENDPOINT_REF_GET_REF_PARAMS(endpoint_ref, env) \
+ ((endpoint_ref)->ops->get_ref_params(endpoint_ref, env))
+
+#define AXIS2_ENDPOINT_REF_SET_REF_PARAMS(endpoint_ref, env, any_content_type) \
+ ((endpoint_ref)->ops->set_ref_params(endpoint_ref, env, any_content_type))
+
+#define AXIS2_ENDPOINT_REF_GET_SVC_NAME(endpoint_ref, env) \
+ ((endpoint_ref)->ops->get_svc_name(endpoint_ref, env))
+
+#define AXIS2_ENDPOINT_REF_SET_SVC_NAME(endpoint_ref, env, svc_name) \
+ ((endpoint_ref)->ops->set_svc_name(endpoint_ref, env, svc_name))
+
+#define AXIS2_ENDPOINT_REF_GET_POLICIES(endpoint_ref, env) \
+ ((endpoint_ref)->ops->get_policies(endpoint_ref, env))
+
+#define AXIS2_ENDPOINT_REF_SET_POLICIES(endpoint_ref, env, policies) \
+ ((endpoint_ref)->ops->set_policies(endpoint_ref, env, policies))
+
+#define AXIS2_ENDPOINT_REF_GET_METADATA(endpoint_ref, env) \
+ ((endpoint_ref)->ops->get_metadata(endpoint_ref, env))
+
+#define AXIS2_ENDPOINT_REF_SET_METADATA(endpoint_ref, env, metadata) \
+ ((endpoint_ref)->ops->set_metadata(endpoint_ref, env, metadata))
+
+#define AXIS2_ENDPOINT_REF_ADD_REF_PARAM(endpoint_ref, env, qname, value) \
+ ((endpoint_ref)->ops->add_ref_param(endpoint_ref, env, qname, value))
+
+#define AXIS2_ENDPOINT_REF_FREE(endpoint_ref, env) \
+ ((endpoint_ref)->ops->free(endpoint_ref, env))
/** @} */
Modified: webservices/axis2/trunk/c/include/axis2_flow.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_flow.h?rev=387127&r1=387126&r2=387127&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_flow.h (original)
+++ webservices/axis2/trunk/c/include/axis2_flow.h Sun Mar 19 19:55:55 2006
@@ -55,32 +55,36 @@
/** Deallocate memory
* @return status code
*/
- axis2_status_t (AXIS2_CALL *free) (axis2_flow_t *flow,
- axis2_env_t **env);
+ axis2_status_t (AXIS2_CALL *
+ free) (axis2_flow_t *flow,
+ axis2_env_t **env);
/**
* Add handler description
* @param handler handler description
*/
- axis2_status_t (AXIS2_CALL *add_handler) (axis2_flow_t *flow,
- axis2_env_t **env,
- axis2_handler_desc_t *handler);
+ axis2_status_t (AXIS2_CALL *
+ add_handler) (axis2_flow_t *flow,
+ axis2_env_t **env,
+ axis2_handler_desc_t *handler);
/**
* Get handler
* @param index index of the handler
* @return handler description
*/
- axis2_handler_desc_t * (AXIS2_CALL *get_handler) (axis2_flow_t *flow,
- axis2_env_t **env,
- int index);
+ axis2_handler_desc_t * (AXIS2_CALL *
+ get_handler) (axis2_flow_t *flow,
+ axis2_env_t **env,
+ int index);
/**
* Get handler count
* @return handler count
*/
- int (AXIS2_CALL *get_handler_count) (axis2_flow_t *flow,
- axis2_env_t **env);
+ int (AXIS2_CALL *
+ get_handler_count) (axis2_flow_t *flow,
+ axis2_env_t **env);
};
/**
Modified: webservices/axis2/trunk/c/include/axis2_flow_container.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_flow_container.h?rev=387127&r1=387126&r2=387127&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_flow_container.h (original)
+++ webservices/axis2/trunk/c/include/axis2_flow_container.h Sun Mar 19 19:55:55 2006
@@ -55,74 +55,76 @@
/** Deallocate memory
* @return status code
*/
- axis2_status_t (AXIS2_CALL *free) (axis2_flow_container_t *flow_container,
- axis2_env_t **env);
+ axis2_status_t (AXIS2_CALL *
+ free) (axis2_flow_container_t *flow_container,
+ axis2_env_t **env);
/**
* Get fault out flow
* @return in flow
*/
- axis2_flow_t *(AXIS2_CALL *get_inflow)(axis2_flow_container_t *flow_container,
- axis2_env_t **env);
+ axis2_flow_t *(AXIS2_CALL *
+ get_inflow)(axis2_flow_container_t *flow_container,
+ axis2_env_t **env);
/**
* Set in flow
* @param inflow in flow
*/
- axis2_status_t (AXIS2_CALL *set_inflow)(
- axis2_flow_container_t *flow_container,
- axis2_env_t **env,
- axis2_flow_t *inflow);
+ axis2_status_t (AXIS2_CALL *
+ set_inflow)(axis2_flow_container_t *flow_container,
+ axis2_env_t **env,
+ axis2_flow_t *inflow);
/**
* Get out flow
* @return out flow
*/
- axis2_flow_t *(AXIS2_CALL *get_outflow)(
- axis2_flow_container_t *flow_container,
- axis2_env_t **env);
+ axis2_flow_t *(AXIS2_CALL *
+ get_outflow)(axis2_flow_container_t *flow_container,
+ axis2_env_t **env);
/**
* Set out flow
* @param outflow out flow
*/
- axis2_status_t (AXIS2_CALL *set_outflow)(
- axis2_flow_container_t *flow_container,
- axis2_env_t **env,
- axis2_flow_t *outflow);
+ axis2_status_t (AXIS2_CALL *
+ set_outflow)(axis2_flow_container_t *flow_container,
+ axis2_env_t **env,
+ axis2_flow_t *outflow);
/**
* Get fault in flow
* @return fault in flow
*/
- axis2_flow_t * (AXIS2_CALL *get_fault_inflow)(
- axis2_flow_container_t *flow_container,
- axis2_env_t **env);
+ axis2_flow_t * (AXIS2_CALL *
+ get_fault_inflow)(axis2_flow_container_t *flow_container,
+ axis2_env_t **env);
/**
* set fault in flow
* @param falut_inflow falut in flow
*/
- axis2_status_t (AXIS2_CALL *set_fault_inflow)(
- axis2_flow_container_t *flow_container,
- axis2_env_t **env,
- axis2_flow_t *falut_inflow);
+ axis2_status_t (AXIS2_CALL *
+ set_fault_inflow)(axis2_flow_container_t *flow_container,
+ axis2_env_t **env,
+ axis2_flow_t *falut_inflow);
/**
* Get fault out flow
* @return fault out flow
*/
- axis2_flow_t *(AXIS2_CALL *get_fault_outflow)(
- axis2_flow_container_t *flow_container,
- axis2_env_t **env);
+ axis2_flow_t *(AXIS2_CALL *
+ get_fault_outflow)(axis2_flow_container_t *flow_container,
+ axis2_env_t **env);
/**
* Set fault out flow
* @param fault_outflow fault out flow
*/
- axis2_status_t (AXIS2_CALL *set_fault_outflow)(
- axis2_flow_container_t *flow_container,
- axis2_env_t **env,
- axis2_flow_t *fault_outflow);
+ axis2_status_t (AXIS2_CALL *
+ set_fault_outflow)(axis2_flow_container_t *flow_container,
+ axis2_env_t **env,
+ axis2_flow_t *fault_outflow);
};
/**
Modified: webservices/axis2/trunk/c/include/axis2_handler.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_handler.h?rev=387127&r1=387126&r2=387127&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_handler.h (original)
+++ webservices/axis2/trunk/c/include/axis2_handler.h Sun Mar 19 19:55:55 2006
@@ -54,8 +54,9 @@
* @param axis2_handler pointer to axis2_handler struct to be freed
* @return satus of the op. AXIS2_SUCCESS on success else AXIS2_FAILURE
*/
- axis2_status_t (AXIS2_CALL *free) (struct axis2_handler * handler,
- axis2_env_t **env);
+ axis2_status_t (AXIS2_CALL *
+ free) (struct axis2_handler * handler,
+ axis2_env_t **env);
/**
@@ -63,9 +64,10 @@
*
* @param handlerdesc
*/
- axis2_status_t (AXIS2_CALL *init) (struct axis2_handler * handler,
- axis2_env_t **env,
- struct axis2_handler_desc *handler_desc);
+ axis2_status_t (AXIS2_CALL *
+ init) (struct axis2_handler * handler,
+ axis2_env_t **env,
+ struct axis2_handler_desc *handler_desc);
/**
* Invoke is called to do the actual work of the Handler object.
@@ -76,17 +78,19 @@
* @param msgContext the <code>axis2_context_message</code> to process with this
* <code>Handler</code>.
*/
- axis2_status_t (AXIS2_CALL *invoke) (struct axis2_handler * handler,
- axis2_env_t **env,
- struct axis2_msg_ctx *msg_ctx);
+ axis2_status_t (AXIS2_CALL *
+ invoke) (struct axis2_handler * handler,
+ axis2_env_t **env,
+ struct axis2_msg_ctx *msg_ctx);
/**
* Method getName
*
* @return
*/
- axis2_qname_t* (AXIS2_CALL *get_name) (struct axis2_handler * handler,
- axis2_env_t **env);
+ axis2_qname_t* (AXIS2_CALL *
+ get_name) (struct axis2_handler * handler,
+ axis2_env_t **env);
/**
* Method getParameter
@@ -94,9 +98,10 @@
* @param name
* @return
*/
- axis2_param_t* (AXIS2_CALL *get_param) (struct axis2_handler * handler,
- axis2_env_t **env,
- axis2_char_t *name);
+ axis2_param_t* (AXIS2_CALL *
+ get_param) (struct axis2_handler * handler,
+ axis2_env_t **env,
+ axis2_char_t *name);
/**
* To get the phaseRule of a handler it is required to get the HnadlerDescription of the handler
@@ -104,8 +109,9 @@
*
* @return
*/
- struct axis2_handler_desc* (AXIS2_CALL * get_handler_desc) (struct axis2_handler * handler,
- axis2_env_t **env);
+ struct axis2_handler_desc* (AXIS2_CALL *
+ get_handler_desc) (struct axis2_handler * handler,
+ axis2_env_t **env);
/**
* derived struct accessor
*/
@@ -136,16 +142,34 @@
/**
* creates handler struct
*/
-AXIS2_DECLARE(axis2_handler_t*) axis2_handler_create(axis2_env_t **env);
-AXIS2_DECLARE(axis2_handler_t*) axis2_ctx_handler_create(axis2_env_t **env, axis2_qname_t *qname);
+AXIS2_DECLARE(axis2_handler_t*)
+axis2_handler_create(axis2_env_t **env);
+
+AXIS2_DECLARE(axis2_handler_t*)
+axis2_ctx_handler_create(axis2_env_t **env, axis2_qname_t *qname);
-#define AXIS2_HANDLER_FREE(handler, env) ((handler)->ops->free(handler, env))
-#define AXIS2_HANDLER_INIT(handler, env, handler_desc) ((handler)->ops->init(handler, env, handler_desc))
-#define AXIS2_HANDLER_INVOKE(handler, env, msg_ctx) ((handler)->ops->invoke(handler, env, msg_ctx))
-#define AXIS2_HANDLER_SET_INVOKE(handler, env, invoke) ((handler)->ops->set_invoke(handler, env, invoke))
-#define AXIS2_HANDLER_GET_NAME(handler, env) ((handler)->ops->get_name(handler, env))
-#define AXIS2_HANDLER_GET_PARAM(handler, env, name) ((handler)->ops->get_param(handler, env, name))
-#define AXIS2_HANDLER_GET_HANDLER_DESC(handler, env) ((handler)->ops->get_handler_desc(handler, env))
+#define AXIS2_HANDLER_FREE(handler, env) \
+ ((handler)->ops->free(handler, env))
+
+
+#define AXIS2_HANDLER_INIT(handler, env, handler_desc) \
+ ((handler)->ops->init(handler, env, handler_desc))
+
+#define AXIS2_HANDLER_INVOKE(handler, env, msg_ctx) \
+ ((handler)->ops->invoke(handler, env, msg_ctx))
+
+#define AXIS2_HANDLER_SET_INVOKE(handler, env, invoke) \
+ ((handler)->ops->set_invoke(handler, env, invoke))
+
+#define AXIS2_HANDLER_GET_NAME(handler, env) \
+ ((handler)->ops->get_name(handler, env))
+
+#define AXIS2_HANDLER_GET_PARAM(handler, env, name) \
+ ((handler)->ops->get_param(handler, env, name))
+
+#define AXIS2_HANDLER_GET_HANDLER_DESC(handler, env) \
+ ((handler)->ops->get_handler_desc(handler, env))
+
/*#define AXIS2_HANDLER_GET_DERIVED(handler, env) ((handler)->ops->get_derived(handler, env))
#define AXIS2_HANDLER_SET_DERIVED(handler, env, derived) ((handler)->ops->set_derived(handler, env, derived))
*/
Modified: webservices/axis2/trunk/c/include/axis2_http_server.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_http_server.h?rev=387127&r1=387126&r2=387127&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_http_server.h (original)
+++ webservices/axis2/trunk/c/include/axis2_http_server.h Sun Mar 19 19:55:55 2006
@@ -39,11 +39,16 @@
* @{
*/
int axis2_http_socket_read_timeout = 0;
+
+
AXIS2_DECLARE(axis2_transport_receiver_t *)
-axis2_http_server_create (axis2_env_t **env, axis2_char_t *repo, int port);
+axis2_http_server_create (axis2_env_t **env,
+ axis2_char_t *repo,
+ int port);
axis2_status_t AXIS2_CALL
-axis2_http_server_stop(axis2_transport_receiver_t *server, axis2_env_t **env);
+axis2_http_server_stop(axis2_transport_receiver_t *server,
+ axis2_env_t **env);
/** @} */
Modified: webservices/axis2/trunk/c/include/axis2_http_simple_response.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_http_simple_response.h?rev=387127&r1=387126&r2=387127&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_http_simple_response.h (original)
+++ webservices/axis2/trunk/c/include/axis2_http_simple_response.h Sun Mar 19 19:55:55 2006
@@ -51,83 +51,93 @@
*/
AXIS2_DECLARE_DATA struct axis2_http_simple_response_ops
{
- axis2_status_t (AXIS2_CALL *set_status_line)
- (struct axis2_http_simple_response *simple_response,
- axis2_env_t **env, const axis2_char_t *http_ver,
- const int status_code, const axis2_char_t *phrase);
-
- axis2_char_t* (AXIS2_CALL *get_phrase)
- (axis2_http_simple_response_t *simple_response,
- axis2_env_t **env);
-
- int (AXIS2_CALL *get_status_code)
- (axis2_http_simple_response_t *simple_response,
- axis2_env_t **env);
-
- axis2_char_t* (AXIS2_CALL *get_http_version)
- (axis2_http_simple_response_t *simple_response,
- axis2_env_t **env);
-
- axis2_char_t* (AXIS2_CALL *get_status_line)
- (axis2_http_simple_response_t *simple_response,
- axis2_env_t **env);
-
- axis2_bool_t (AXIS2_CALL *contains_header)
- (axis2_http_simple_response_t *simple_response,
- axis2_env_t **env, axis2_char_t *name);
-
- axis2_array_list_t* (AXIS2_CALL *get_headers)
- (axis2_http_simple_response_t *simple_response,
- axis2_env_t **env);
-
- axis2_http_header_t* (AXIS2_CALL *get_first_header)
- (axis2_http_simple_response_t *simple_response,
- axis2_env_t **env, axis2_char_t *str);
-
- axis2_status_t (AXIS2_CALL *remove_headers)
- (axis2_http_simple_response_t *simple_response,
- axis2_env_t **env, const axis2_char_t *str);
-
- axis2_status_t (AXIS2_CALL *set_header)
- (axis2_http_simple_response_t *simple_response,
- axis2_env_t **env, axis2_http_header_t* header);
-
- axis2_status_t (AXIS2_CALL *set_headers)
- (axis2_http_simple_response_t *simple_response,
- axis2_env_t **env, axis2_http_header_t** headers,
- axis2_ssize_t array_size);
-
- axis2_char_t* (AXIS2_CALL *get_charset)
- (axis2_http_simple_response_t *simple_response,
- axis2_env_t **env);
-
- axis2_ssize_t (AXIS2_CALL *get_content_length)
- (axis2_http_simple_response_t *simple_response,
- axis2_env_t **env);
-
- axis2_char_t* (AXIS2_CALL *get_content_type)
- (axis2_http_simple_response_t *simple_response,
- axis2_env_t **env);
-
- axis2_status_t (AXIS2_CALL *set_body_string)
- (axis2_http_simple_response_t *simple_response,
- axis2_env_t **env, axis2_char_t *str);
-
- axis2_status_t (AXIS2_CALL *set_body_stream)
- (axis2_http_simple_response_t *simple_response,
- axis2_env_t **env, axis2_stream_t *stream);
-
- axis2_stream_t* (AXIS2_CALL *get_body)
- (axis2_http_simple_response_t *simple_response,
- axis2_env_t **env);
-
- axis2_ssize_t (AXIS2_CALL *get_body_bytes)
- (axis2_http_simple_response_t *simple_response,
- axis2_env_t **env, axis2_char_t **buf);
-
- axis2_status_t (AXIS2_CALL *free)
- (axis2_http_simple_response_t *simple_response,
- axis2_env_t **env);
+ axis2_status_t (AXIS2_CALL *
+ set_status_line)(struct axis2_http_simple_response *simple_response,
+ axis2_env_t **env,
+ const axis2_char_t *http_ver,
+ const int status_code,
+ const axis2_char_t *phrase);
+
+ axis2_char_t* (AXIS2_CALL *
+ get_phrase)(axis2_http_simple_response_t *simple_response,
+ axis2_env_t **env);
+
+ int (AXIS2_CALL *
+ get_status_code)(axis2_http_simple_response_t *simple_response,
+ axis2_env_t **env);
+
+ axis2_char_t* (AXIS2_CALL *
+ get_http_version)(axis2_http_simple_response_t *simple_response,
+ axis2_env_t **env);
+
+ axis2_char_t* (AXIS2_CALL *
+ get_status_line)(axis2_http_simple_response_t *simple_response,
+ axis2_env_t **env);
+
+ axis2_bool_t (AXIS2_CALL *
+ contains_header)(axis2_http_simple_response_t *simple_response,
+ axis2_env_t **env,
+ axis2_char_t *name);
+
+ axis2_array_list_t* (AXIS2_CALL *
+ get_headers)(axis2_http_simple_response_t *simple_response,
+ axis2_env_t **env);
+
+ axis2_http_header_t* (AXIS2_CALL *
+ get_first_header)(axis2_http_simple_response_t *simple_response,
+ axis2_env_t **env,
+ axis2_char_t *str);
+
+ axis2_status_t (AXIS2_CALL *
+ remove_headers)(axis2_http_simple_response_t *simple_response,
+ axis2_env_t **env,
+ const axis2_char_t *str);
+
+ axis2_status_t (AXIS2_CALL *
+ set_header)(axis2_http_simple_response_t *simple_response,
+ axis2_env_t **env,
+ axis2_http_header_t* header);
+
+ axis2_status_t (AXIS2_CALL *
+ set_headers)(axis2_http_simple_response_t *simple_response,
+ axis2_env_t **env,
+ axis2_http_header_t** headers,
+ axis2_ssize_t array_size);
+
+ axis2_char_t* (AXIS2_CALL *
+ get_charset)(axis2_http_simple_response_t *simple_response,
+ axis2_env_t **env);
+
+ axis2_ssize_t (AXIS2_CALL *
+ get_content_length)(axis2_http_simple_response_t *simple_response,
+ axis2_env_t **env);
+
+ axis2_char_t* (AXIS2_CALL *
+ get_content_type)(axis2_http_simple_response_t *simple_response,
+ axis2_env_t **env);
+
+ axis2_status_t (AXIS2_CALL *
+ set_body_string)(axis2_http_simple_response_t *simple_response,
+ axis2_env_t **env,
+ axis2_char_t *str);
+
+ axis2_status_t (AXIS2_CALL *
+ set_body_stream)(axis2_http_simple_response_t *simple_response,
+ axis2_env_t **env,
+ axis2_stream_t *stream);
+
+ axis2_stream_t* (AXIS2_CALL *
+ get_body)(axis2_http_simple_response_t *simple_response,
+ axis2_env_t **env);
+
+ axis2_ssize_t (AXIS2_CALL *
+ get_body_bytes)(axis2_http_simple_response_t *simple_response,
+ axis2_env_t **env,
+ axis2_char_t **buf);
+
+ axis2_status_t (AXIS2_CALL *
+ free)(axis2_http_simple_response_t *simple_response,
+ axis2_env_t **env);
};
Modified: webservices/axis2/trunk/c/include/axis2_http_status_line.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_http_status_line.h?rev=387127&r1=387126&r2=387127&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_http_status_line.h (original)
+++ webservices/axis2/trunk/c/include/axis2_http_status_line.h Sun Mar 19 19:55:55 2006
@@ -46,23 +46,29 @@
*/
AXIS2_DECLARE_DATA struct axis2_http_status_line_ops
{
- int (AXIS2_CALL *get_status_code) (axis2_http_status_line_t *status_line,
- axis2_env_t **env);
+ int (AXIS2_CALL *
+ get_status_code)(axis2_http_status_line_t *status_line,
+ axis2_env_t **env);
- axis2_char_t* (AXIS2_CALL *get_http_version)
- (axis2_http_status_line_t *status_line, axis2_env_t **env);
+ axis2_char_t* (AXIS2_CALL *
+ get_http_version)(axis2_http_status_line_t *status_line,
+ axis2_env_t **env);
- axis2_char_t* (AXIS2_CALL *get_reason_phrase)
- (axis2_http_status_line_t *status_line, axis2_env_t **env);
+ axis2_char_t* (AXIS2_CALL *
+ get_reason_phrase)(axis2_http_status_line_t *status_line,
+ axis2_env_t **env);
- axis2_bool_t (AXIS2_CALL *starts_with_http)
- (axis2_http_status_line_t *status_line, axis2_env_t **env);
+ axis2_bool_t (AXIS2_CALL *
+ starts_with_http)(axis2_http_status_line_t *status_line,
+ axis2_env_t **env);
- axis2_char_t* (AXIS2_CALL *to_string)
- (axis2_http_status_line_t *status_line, axis2_env_t **env);
+ axis2_char_t* (AXIS2_CALL *
+ to_string)(axis2_http_status_line_t *status_line,
+ axis2_env_t **env);
- axis2_status_t (AXIS2_CALL *free) (axis2_http_status_line_t *status_line,
- axis2_env_t **env);
+ axis2_status_t (AXIS2_CALL *
+ free) (axis2_http_status_line_t *status_line,
+ axis2_env_t **env);
};
/**
@@ -76,7 +82,8 @@
AXIS2_DECLARE(axis2_http_status_line_t *)
-axis2_http_status_line_create(axis2_env_t **env, axis2_char_t *str);
+axis2_http_status_line_create(axis2_env_t **env,
+ axis2_char_t *str);
/************************* Start of function macros ***************************/
Modified: webservices/axis2/trunk/c/include/axis2_log.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_log.h?rev=387127&r1=387126&r2=387127&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_log.h (original)
+++ webservices/axis2/trunk/c/include/axis2_log.h Sun Mar 19 19:55:55 2006
@@ -88,8 +88,9 @@
* @return axis2_status_t AXIS2_SUCCESS on success else AXIS2_FAILURE
*/
- axis2_status_t (AXIS2_CALL *free) (axis2_allocator_t *allocator,
- struct axis2_log *log);
+ axis2_status_t (AXIS2_CALL *
+ free) (axis2_allocator_t *allocator,
+ struct axis2_log *log);
/**
* writes to the log
@@ -97,7 +98,12 @@
* @param size size of the buffer to be written to log
* @return satus of the op. AXIS2_SUCCESS on success else AXIS2_FAILURE
*/
- axis2_status_t (AXIS2_CALL *write) (axis2_log_t *log, const axis2_char_t *buffer, axis2_log_levels_t level,const axis2_char_t *file,const int line);
+ axis2_status_t (AXIS2_CALL *
+ write) (axis2_log_t *log,
+ const axis2_char_t *buffer,
+ axis2_log_levels_t level,
+ const axis2_char_t *file,
+ const int line);
};
/**
@@ -116,21 +122,45 @@
};
-AXIS2_DECLARE(axis2_status_t) axis2_log_impl_log_critical(axis2_log_t *log,const axis2_char_t *filename,const int linenumber,const axis2_char_t *format,...);
+AXIS2_DECLARE(axis2_status_t)
+axis2_log_impl_log_critical(axis2_log_t *log,
+ const axis2_char_t *filename,
+ const int linenumber,
+ const axis2_char_t *format,...);
+
+AXIS2_DECLARE(axis2_status_t)
+axis2_log_impl_log_error(axis2_log_t *log,
+ const axis2_char_t *filename,
+ const int linenumber,
+ const axis2_char_t *format,...);
+
+AXIS2_DECLARE(axis2_status_t)
+axis2_log_impl_log_warning(axis2_log_t *log,
+ const axis2_char_t *filename,
+ const int linenumber,
+ const axis2_char_t *format,...);
+
+AXIS2_DECLARE(axis2_status_t)
+axis2_log_impl_log_info(axis2_log_t *log,
+ const axis2_char_t *format,...);
+
+AXIS2_DECLARE(axis2_status_t)
+axis2_log_impl_log_debug(axis2_log_t *log,
+ const axis2_char_t *filename,
+ const int linenumber,
+ const axis2_char_t *format,...);
+
+AXIS2_DECLARE(axis2_status_t)
+axis2_log_impl_log_trace(axis2_log_t *log,
+ const axis2_char_t *filename,
+ const int linenumber,
+ const axis2_char_t *format,...);
-AXIS2_DECLARE(axis2_status_t) axis2_log_impl_log_error(axis2_log_t *log,const axis2_char_t *filename,const int linenumber,const axis2_char_t *format,...);
+#define AXIS2_LOG_FREE(allocator, log) \
+ ((log->ops)->free(allocator, log))
-AXIS2_DECLARE(axis2_status_t) axis2_log_impl_log_warning(axis2_log_t *log,const axis2_char_t *filename,const int linenumber,const axis2_char_t *format,...);
-
-AXIS2_DECLARE(axis2_status_t) axis2_log_impl_log_info(axis2_log_t *log, const axis2_char_t *format,...);
-
-AXIS2_DECLARE(axis2_status_t) axis2_log_impl_log_debug(axis2_log_t *log,const axis2_char_t *filename,const int linenumber,const axis2_char_t *format,...);
-
-AXIS2_DECLARE(axis2_status_t) axis2_log_impl_log_trace(axis2_log_t *log,const axis2_char_t *filename,const int linenumber,const axis2_char_t *format,...);
-
-#define AXIS2_LOG_FREE(allocator, log) ((log->ops)->free(allocator, log))
-
-#define AXIS2_LOG_WRITE(log, buffer, level) ((log)->ops->write(log, buffer, level,AXIS2_LOG_SI))
+#define AXIS2_LOG_WRITE(log, buffer, level) \
+ ((log)->ops->write(log, buffer, level,AXIS2_LOG_SI))
#define AXIS2_LOG_DEBUG axis2_log_impl_log_debug
#define AXIS2_LOG_INFO axis2_log_impl_log_info
Modified: webservices/axis2/trunk/c/include/axis2_mep_client.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_mep_client.h?rev=387127&r1=387126&r2=387127&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_mep_client.h (original)
+++ webservices/axis2/trunk/c/include/axis2_mep_client.h Sun Mar 19 19:55:55 2006
@@ -50,16 +50,18 @@
*/
struct axis2_mep_client_ops
{
- axis2_char_t* (AXIS2_CALL *get_soap_action)(struct axis2_mep_client *mep_client,
- axis2_env_t **env);
+ axis2_char_t* (AXIS2_CALL *
+ get_soap_action)(struct axis2_mep_client *mep_client,
+ axis2_env_t **env);
/**
* prepare the message context for invocation, here the properties kept in the
* MEPClient copied to the axis2_msg_ctx_t *
*/
- axis2_status_t (AXIS2_CALL *prepare_invocation)(struct axis2_mep_client *mep_client,
- axis2_env_t **env,
- axis2_op_t *op,
- axis2_msg_ctx_t *msg_ctx);
+ axis2_status_t (AXIS2_CALL *
+ prepare_invocation)(struct axis2_mep_client *mep_client,
+ axis2_env_t **env,
+ axis2_op_t *op,
+ axis2_msg_ctx_t *msg_ctx);
/**
* This class prepare the SOAP Envelope using the payload
*
@@ -67,9 +69,10 @@
* @return
* @
*/
- axis2_msg_ctx_t* (AXIS2_CALL *prepare_soap_envelope)(struct axis2_mep_client *mep_client,
- axis2_env_t **env,
- axis2_om_node_t *to_send);
+ axis2_msg_ctx_t* (AXIS2_CALL *
+ prepare_soap_envelope)(struct axis2_mep_client *mep_client,
+ axis2_env_t **env,
+ axis2_om_node_t *to_send);
/**
* try to infer the transport looking at the URL, the URL can be http://
* tcp:// mail:// local://. The method will look for the trnasport name as the
@@ -79,16 +82,19 @@
* @return
* @
*/
- axis2_transport_out_desc_t* (AXIS2_CALL *infer_transport)(struct axis2_mep_client *mep_client, axis2_env_t **env,
- axis2_endpoint_ref_t *epr);
+ axis2_transport_out_desc_t* (AXIS2_CALL *
+ infer_transport)(struct axis2_mep_client *mep_client,
+ axis2_env_t **env,
+ axis2_endpoint_ref_t *epr);
/**
* create write SOAPEvelope(in terms of version) based on the values set.
*
* @return
* @
*/
- axis2_soap_envelope_t* (AXIS2_CALL *create_default_soap_envelope)(struct axis2_mep_client *mep_client,
- axis2_env_t **env);
+ axis2_soap_envelope_t* (AXIS2_CALL *
+ create_default_soap_envelope)(struct axis2_mep_client *mep_client,
+ axis2_env_t **env);
/**
* Engage a given Module to the current invocation. But to call this method the
* Module *MUST* be enable (picked up by the deployment and known to Axis2) .
@@ -97,22 +103,41 @@
* @param name
* @
*/
- axis2_status_t (AXIS2_CALL *engage_module)(struct axis2_mep_client *mep_client, axis2_env_t **env, axis2_qname_t *qname);
+ axis2_status_t (AXIS2_CALL *
+ engage_module)(struct axis2_mep_client *mep_client,
+ axis2_env_t **env,
+ axis2_qname_t *qname);
/**
* @param string
*/
- axis2_status_t (AXIS2_CALL *set_soap_version_uri)(struct axis2_mep_client *mep_client, axis2_env_t **env, axis2_char_t *soap_version_uri);
+ axis2_status_t (AXIS2_CALL *
+ set_soap_version_uri)(struct axis2_mep_client *mep_client,
+ axis2_env_t **env,
+ axis2_char_t *soap_version_uri);
/**
* @param string
*/
- axis2_status_t (AXIS2_CALL *set_soap_action)(struct axis2_mep_client *mep_client, axis2_env_t **env, axis2_char_t *soap_action);
+ axis2_status_t (AXIS2_CALL *
+ set_soap_action)(struct axis2_mep_client *mep_client,
+ axis2_env_t **env,
+ axis2_char_t *soap_action);
/**
* @param string
*/
- axis2_status_t (AXIS2_CALL *set_wsa_action)(struct axis2_mep_client *mep_client, axis2_env_t **env, axis2_char_t *wsa_action);
- axis2_svc_ctx_t* (AXIS2_CALL *get_svc_ctx)(struct axis2_mep_client *mep_client, axis2_env_t **env);
- axis2_status_t (AXIS2_CALL *free)(struct axis2_mep_client *mep_client,
- axis2_env_t **env);
+ axis2_status_t (AXIS2_CALL *
+ set_wsa_action)(struct axis2_mep_client *mep_client,
+ axis2_env_t **env,
+ axis2_char_t *wsa_action);
+
+
+ axis2_svc_ctx_t* (AXIS2_CALL *
+ get_svc_ctx)(struct axis2_mep_client *mep_client,
+ axis2_env_t **env);
+
+
+ axis2_status_t (AXIS2_CALL *
+ free)(struct axis2_mep_client *mep_client,
+ axis2_env_t **env);
};
/**
@@ -128,21 +153,45 @@
axis2_svc_ctx_t *svc_ctx,
axis2_char_t *mep);
-axis2_msg_ctx_t* AXIS2_CALL axis2_two_way_send(axis2_env_t **env, axis2_msg_ctx_t *msg_ctx);
+axis2_msg_ctx_t* AXIS2_CALL
+axis2_two_way_send(axis2_env_t **env,
+ axis2_msg_ctx_t *msg_ctx);
/************************** Start of function macros **************************/
-#define AXIS2_MEP_CLIENT_GET_SOAP_ACTION(mep_client, env) ((mep_client)->ops->get_soap_action(mep_client, env))
-#define AXIS2_MEP_CLIENT_PREPARE_INVOCATION(mep_client, env, op, msg_ctx) ((mep_client)->ops->prepare_invocation(mep_client, env, op, msg_ctx))
-#define AXIS2_MEP_CLIENT_PREPARE_SOAP_ENVELOPE(mep_client, env, to_send) ((mep_client)->ops->prepare_soap_envelope(mep_client, env, to_send))
-#define AXIS2_MEP_CLIENT_INFER_TRANSPORT(mep_client, env, epr) ((mep_client)->ops->infer_transport(mep_client, env, epr))
-#define AXIS2_MEP_CLIENT_CREATE_DEFAULT_SOAP_ENVELOPE(mep_client, env) ((mep_client)->ops->create_default_soap_envelope(mep_client, env))
-#define AXIS2_MEP_CLIENT_ENGAGE_MODULE(mep_client, env, qname) ((mep_client)->ops->engage_module(mep_client, env, qname))
-#define AXIS2_MEP_CLIENT_SET_SOAP_VERSION_URI(mep_client, env, soap_version_uri) ((mep_client)->ops->set_soap_version_uri(mep_client, env, soap_version_uri))
-#define AXIS2_MEP_CLIENT_SET_SOAP_ACTION(mep_client, env, soap_action) ((mep_client)->ops->set_soap_action(mep_client, env, soap_action))
-#define AXIS2_MEP_CLIENT_SET_WSA_ACTION(mep_client, env, wsa_action) ((mep_client)->ops->set_wsa_action(mep_client, env, wsa_action))
-#define AXIS2_MEP_CLIENT_GET_SVC_CTX(mep_client, env) ((mep_client)->ops->get_svc_ctx(mep_client, env))
-#define AXIS2_MEP_CLIENT_FREE(mep_client, env) ((mep_client)->ops->free (mep_client, env))
+#define AXIS2_MEP_CLIENT_GET_SOAP_ACTION(mep_client, env) \
+ ((mep_client)->ops->get_soap_action(mep_client, env))
+
+#define AXIS2_MEP_CLIENT_PREPARE_INVOCATION(mep_client, env, op, msg_ctx) \
+ ((mep_client)->ops->prepare_invocation(mep_client, env, op, msg_ctx))
+
+#define AXIS2_MEP_CLIENT_PREPARE_SOAP_ENVELOPE(mep_client, env, to_send) \
+ ((mep_client)->ops->prepare_soap_envelope(mep_client, env, to_send))
+
+#define AXIS2_MEP_CLIENT_INFER_TRANSPORT(mep_client, env, epr) \
+ ((mep_client)->ops->infer_transport(mep_client, env, epr))
+
+#define AXIS2_MEP_CLIENT_CREATE_DEFAULT_SOAP_ENVELOPE(mep_client, env) \
+ ((mep_client)->ops->create_default_soap_envelope(mep_client, env))
+
+#define AXIS2_MEP_CLIENT_ENGAGE_MODULE(mep_client, env, qname) \
+ ((mep_client)->ops->engage_module(mep_client, env, qname))
+
+#define AXIS2_MEP_CLIENT_SET_SOAP_VERSION_URI(mep_client, env, soap_version_uri)\
+ ((mep_client)->ops->set_soap_version_uri(mep_client, env, soap_version_uri))
+
+#define AXIS2_MEP_CLIENT_SET_SOAP_ACTION(mep_client, env, soap_action) \
+ ((mep_client)->ops->set_soap_action(mep_client, env, soap_action))
+
+#define AXIS2_MEP_CLIENT_SET_WSA_ACTION(mep_client, env, wsa_action) \
+ ((mep_client)->ops->set_wsa_action(mep_client, env, wsa_action))
+
+#define AXIS2_MEP_CLIENT_GET_SVC_CTX(mep_client, env) \
+ ((mep_client)->ops->get_svc_ctx(mep_client, env))
+
+#define AXIS2_MEP_CLIENT_FREE(mep_client, env) \
+ ((mep_client)->ops->free (mep_client, env))
+
/************************** End of function macros ****************************/