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 sh...@apache.org on 2009/08/18 12:15:53 UTC

svn commit: r805347 [31/31] - in /webservices/axis2/trunk/c/src: core/addr/ core/clientapi/ core/context/ core/deployment/ core/description/ core/engine/ core/phaseresolver/ core/receivers/ core/transport/amqp/receiver/ core/transport/amqp/receiver/qpi...

Modified: webservices/axis2/trunk/c/src/modules/mod_addr/mod_addr.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/modules/mod_addr/mod_addr.c?rev=805347&r1=805346&r2=805347&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/modules/mod_addr/mod_addr.c (original)
+++ webservices/axis2/trunk/c/src/modules/mod_addr/mod_addr.c Tue Aug 18 10:15:49 2009
@@ -1,4 +1,3 @@
-
 /*
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
@@ -19,25 +18,25 @@
 #include <axis2_addr_mod.h>
 #include <axis2_conf_ctx.h>
 
-axis2_status_t AXIS2_CALL axis2_mod_addr_shutdown(
+axis2_status_t AXIS2_CALL
+axis2_mod_addr_shutdown(
     axis2_module_t * module,
     const axutil_env_t * env);
 
-axis2_status_t AXIS2_CALL axis2_mod_addr_init(
+axis2_status_t AXIS2_CALL
+axis2_mod_addr_init(
     axis2_module_t * module,
     const axutil_env_t * env,
     axis2_conf_ctx_t * conf_ctx,
     axis2_module_desc_t * module_desc);
 
-axis2_status_t AXIS2_CALL axis2_mod_addr_fill_handler_create_func_map(
+axis2_status_t AXIS2_CALL
+axis2_mod_addr_fill_handler_create_func_map(
     axis2_module_t * module,
     const axutil_env_t * env);
 
-static const axis2_module_ops_t addr_module_ops_var = {
-    axis2_mod_addr_init,
-    axis2_mod_addr_shutdown,
-    axis2_mod_addr_fill_handler_create_func_map
-};
+static const axis2_module_ops_t addr_module_ops_var = { axis2_mod_addr_init,
+    axis2_mod_addr_shutdown, axis2_mod_addr_fill_handler_create_func_map };
 
 axis2_module_t *
 axis2_mod_addr_create(
@@ -50,8 +49,7 @@
     if(!module)
     {
         AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
-        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
-                        "No memory. Cannot create the addressing module");
+        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "No memory. Cannot create the addressing module");
         return NULL;
     }
 
@@ -77,13 +75,13 @@
     axis2_module_t * module,
     const axutil_env_t * env)
 {
-    if (module->handler_create_func_map)
+    if(module->handler_create_func_map)
     {
         axutil_hash_free(module->handler_create_func_map, env);
         module->handler_create_func_map = NULL;
     }
 
-    if (module)
+    if(module)
     {
         AXIS2_FREE(env->allocator, module);
         module = NULL;
@@ -101,18 +99,17 @@
 
     module->handler_create_func_map = axutil_hash_make(env);
 
-    if (!module->handler_create_func_map)
+    if(!module->handler_create_func_map)
     {
         AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
-        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
-                        "No memory. Cannot create the function map");
+        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "No memory. Cannot create the function map");
         return AXIS2_FAILURE;
     }
-    axutil_hash_set(module->handler_create_func_map, ADDR_IN_HANDLER,
-                    AXIS2_HASH_KEY_STRING, axis2_addr_in_handler_create);
+    axutil_hash_set(module->handler_create_func_map, ADDR_IN_HANDLER, AXIS2_HASH_KEY_STRING,
+        axis2_addr_in_handler_create);
 
-    axutil_hash_set(module->handler_create_func_map, ADDR_OUT_HANDLER,
-                    AXIS2_HASH_KEY_STRING, axis2_addr_out_handler_create);
+    axutil_hash_set(module->handler_create_func_map, ADDR_OUT_HANDLER, AXIS2_HASH_KEY_STRING,
+        axis2_addr_out_handler_create);
 
     return AXIS2_SUCCESS;
 }
@@ -127,11 +124,10 @@
     const axutil_env_t * env)
 {
     *inst = axis2_mod_addr_create(env);
-    if (!(*inst))
+    if(!(*inst))
     {
         AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
-        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
-                        "No memory. Cannot create addressing module");
+        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "No memory. Cannot create addressing module");
         return AXIS2_FAILURE;
     }
 
@@ -144,17 +140,16 @@
     const axutil_env_t * env)
 {
     axis2_status_t status = AXIS2_FAILURE;
-   
-    if (inst)
+
+    if(inst)
     {
         status = axis2_mod_addr_shutdown(inst, env);
     }
     else
     {
         AXIS2_ERROR_SET(env->error, AXIS2_ERROR_MODULE_NOT_FOUND, AXIS2_FAILURE);
-        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
-                        "Addressing module not found");
+        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Addressing module not found");
     }
-    
+
     return status;
 }

Modified: webservices/axis2/trunk/c/src/modules/mod_log/log_in_handler.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/modules/mod_log/log_in_handler.c?rev=805347&r1=805346&r2=805347&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/modules/mod_log/log_in_handler.c (original)
+++ webservices/axis2/trunk/c/src/modules/mod_log/log_in_handler.c Tue Aug 18 10:15:49 2009
@@ -1,4 +1,3 @@
-
 /*
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
@@ -28,7 +27,8 @@
 #include <axis2_msg_info_headers.h>
 #include <axutil_property.h>
 
-axis2_status_t AXIS2_CALL axutil_log_in_handler_invoke(
+axis2_status_t AXIS2_CALL
+axutil_log_in_handler_invoke(
     struct axis2_handler * handler,
     const axutil_env_t * env,
     struct axis2_msg_ctx * msg_ctx);
@@ -43,7 +43,7 @@
     AXIS2_ENV_CHECK(env, NULL);
 
     handler = axis2_handler_create(env);
-    if (!handler)
+    if(!handler)
     {
         return NULL;
     }
@@ -69,17 +69,17 @@
 
     soap_envelope = axis2_msg_ctx_get_soap_envelope(msg_ctx, env);
 
-    if (soap_envelope)
+    if(soap_envelope)
     {
         /* ensure SOAP buider state is in sync */
         axiom_soap_envelope_get_body(soap_envelope, env);
         ret_node = axiom_soap_envelope_get_base_node(soap_envelope, env);
 
-        if (ret_node)
+        if(ret_node)
         {
             axis2_char_t *om_str = NULL;
             om_str = axiom_node_to_string(ret_node, env);
-            if (om_str)
+            if(om_str)
             {
                 AXIS2_LOG_INFO(env->log, "Input message: %s", om_str);
             }

Modified: webservices/axis2/trunk/c/src/modules/mod_log/log_out_handler.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/modules/mod_log/log_out_handler.c?rev=805347&r1=805346&r2=805347&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/modules/mod_log/log_out_handler.c (original)
+++ webservices/axis2/trunk/c/src/modules/mod_log/log_out_handler.c Tue Aug 18 10:15:49 2009
@@ -1,4 +1,3 @@
-
 /*
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
@@ -28,7 +27,8 @@
 #include <axis2_msg_info_headers.h>
 #include <axutil_property.h>
 
-axis2_status_t AXIS2_CALL axutil_log_out_handler_invoke(
+axis2_status_t AXIS2_CALL
+axutil_log_out_handler_invoke(
     struct axis2_handler * handler,
     const axutil_env_t * env,
     struct axis2_msg_ctx * msg_ctx);
@@ -43,7 +43,7 @@
     AXIS2_ENV_CHECK(env, NULL);
 
     handler = axis2_handler_create(env);
-    if (!handler)
+    if(!handler)
     {
         return NULL;
     }
@@ -69,15 +69,15 @@
 
     soap_envelope = axis2_msg_ctx_get_soap_envelope(msg_ctx, env);
 
-    if (soap_envelope)
+    if(soap_envelope)
     {
         ret_node = axiom_soap_envelope_get_base_node(soap_envelope, env);
 
-        if (ret_node)
+        if(ret_node)
         {
             axis2_char_t *om_str = NULL;
             om_str = axiom_node_to_string(ret_node, env);
-            if (om_str)
+            if(om_str)
             {
                 AXIS2_LOG_INFO(env->log, "Output message: %s", om_str);
             }

Modified: webservices/axis2/trunk/c/src/modules/mod_log/mod_log.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/modules/mod_log/mod_log.c?rev=805347&r1=805346&r2=805347&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/modules/mod_log/mod_log.c (original)
+++ webservices/axis2/trunk/c/src/modules/mod_log/mod_log.c Tue Aug 18 10:15:49 2009
@@ -1,4 +1,3 @@
-
 /*
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
@@ -20,28 +19,28 @@
 
 #include "mod_log.h"
 
-axis2_status_t AXIS2_CALL axis2_mod_log_shutdown(
+axis2_status_t AXIS2_CALL
+axis2_mod_log_shutdown(
     axis2_module_t * module,
     const axutil_env_t * env);
 
-axis2_status_t AXIS2_CALL axis2_mod_log_init(
+axis2_status_t AXIS2_CALL
+axis2_mod_log_init(
     axis2_module_t * module,
     const axutil_env_t * env,
     axis2_conf_ctx_t * conf_ctx,
     axis2_module_desc_t * module_desc);
 
-axis2_status_t AXIS2_CALL axis2_mod_log_fill_handler_create_func_map(
+axis2_status_t AXIS2_CALL
+axis2_mod_log_fill_handler_create_func_map(
     axis2_module_t * module,
     const axutil_env_t * env);
 
 /**
  * Module operations struct variable with functions assigned to members
  */
-static const axis2_module_ops_t log_module_ops_var = {
-    axis2_mod_log_init,
-    axis2_mod_log_shutdown,
-    axis2_mod_log_fill_handler_create_func_map
-};
+static const axis2_module_ops_t log_module_ops_var = { axis2_mod_log_init, axis2_mod_log_shutdown,
+    axis2_mod_log_fill_handler_create_func_map };
 
 axis2_module_t *
 axis2_mod_log_create(
@@ -72,12 +71,12 @@
     axis2_module_t * module,
     const axutil_env_t * env)
 {
-    if (module->handler_create_func_map)
+    if(module->handler_create_func_map)
     {
         axutil_hash_free(module->handler_create_func_map, env);
     }
 
-    if (module)
+    if(module)
     {
         AXIS2_FREE(env->allocator, module);
     }
@@ -92,19 +91,19 @@
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
     module->handler_create_func_map = axutil_hash_make(env);
-    if (!module->handler_create_func_map)
+    if(!module->handler_create_func_map)
     {
         AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return AXIS2_FAILURE;
     }
 
     /* add in handler */
-    axutil_hash_set(module->handler_create_func_map, "LoggingInHandler",
-                    AXIS2_HASH_KEY_STRING, axutil_log_in_handler_create);
+    axutil_hash_set(module->handler_create_func_map, "LoggingInHandler", AXIS2_HASH_KEY_STRING,
+        axutil_log_in_handler_create);
 
     /* add out handler */
-    axutil_hash_set(module->handler_create_func_map, "LoggingOutHandler",
-                    AXIS2_HASH_KEY_STRING, axutil_log_out_handler_create);
+    axutil_hash_set(module->handler_create_func_map, "LoggingOutHandler", AXIS2_HASH_KEY_STRING,
+        axutil_log_out_handler_create);
 
     return AXIS2_SUCCESS;
 }
@@ -120,7 +119,7 @@
     const axutil_env_t * env)
 {
     *inst = axis2_mod_log_create(env);
-    if (!(*inst))
+    if(!(*inst))
     {
         return AXIS2_FAILURE;
     }
@@ -134,7 +133,7 @@
     const axutil_env_t * env)
 {
     axis2_status_t status = AXIS2_FAILURE;
-    if (inst)
+    if(inst)
     {
         status = axis2_mod_log_shutdown(inst, env);
     }