You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sh...@apache.org on 2008/03/25 04:00:12 UTC
svn commit: r640677 - in /webservices/axis2/trunk/c:
src/core/clientapi/op_client.c util/include/axutil_hash.h
util/src/date_time.c util/src/hash.c
Author: shankar
Date: Mon Mar 24 20:00:10 2008
New Revision: 640677
URL: http://svn.apache.org/viewvc?rev=640677&view=rev
Log:
(1) setting env to hash
(2) build break on windows due to date_time.c modifications (casting problem)
(3) copying opetions to in_flow's msg_ctx from out_flow's msg_ctx for client side.
Modified:
webservices/axis2/trunk/c/src/core/clientapi/op_client.c
webservices/axis2/trunk/c/util/include/axutil_hash.h
webservices/axis2/trunk/c/util/src/date_time.c
webservices/axis2/trunk/c/util/src/hash.c
Modified: webservices/axis2/trunk/c/src/core/clientapi/op_client.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/clientapi/op_client.c?rev=640677&r1=640676&r2=640677&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/clientapi/op_client.c (original)
+++ webservices/axis2/trunk/c/src/core/clientapi/op_client.c Mon Mar 24 20:00:10 2008
@@ -1218,6 +1218,7 @@
axis2_msg_ctx_get_conf_ctx(msg_ctx, env));
axis2_msg_ctx_set_svc_grp_ctx(response, env,
axis2_msg_ctx_get_svc_grp_ctx(msg_ctx, env));
+ axis2_msg_ctx_set_options(response, env, axis2_msg_ctx_get_options(msg_ctx, env));
/* If request is REST we assume the response is REST, so set the variable */
axis2_msg_ctx_set_doing_rest(response, env,
Modified: webservices/axis2/trunk/c/util/include/axutil_hash.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/include/axutil_hash.h?rev=640677&r1=640676&r2=640677&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/include/axutil_hash.h (original)
+++ webservices/axis2/trunk/c/util/include/axutil_hash.h Mon Mar 24 20:00:10 2008
@@ -287,6 +287,11 @@
void *ht_void,
const axutil_env_t * env);
+ AXIS2_EXTERN void AXIS2_CALL
+ axutil_hash_set_env(
+ axutil_hash_t * ht,
+ const axutil_env_t * env);
+
/** @} */
#ifdef __cplusplus
Modified: webservices/axis2/trunk/c/util/src/date_time.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/src/date_time.c?rev=640677&r1=640676&r2=640677&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/src/date_time.c (original)
+++ webservices/axis2/trunk/c/util/src/date_time.c Mon Mar 24 20:00:10 2008
@@ -66,7 +66,7 @@
date_time->day = utc_time->tm_mday;
date_time->hour = utc_time->tm_hour;
date_time->min = utc_time->tm_min;
- date_time->sec = utc_time->tm_sec;
+ date_time->sec = (float)utc_time->tm_sec;
date_time->sec += (float)axutil_get_milliseconds(env) / 1000;
date_time->tz_hour = 0;
date_time->tz_min = 0;
@@ -769,7 +769,7 @@
{
if (date_time->sec >= 1)
{
- float temp = (int)date_time->sec * 1000;
+ float temp = (float)((int)date_time->sec * 1000);
temp /= 1000;
return (int)((date_time->sec - temp) * 1000);
}
Modified: webservices/axis2/trunk/c/util/src/hash.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/src/hash.c?rev=640677&r1=640676&r2=640677&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/src/hash.c (original)
+++ webservices/axis2/trunk/c/util/src/hash.c Mon Mar 24 20:00:10 2008
@@ -657,3 +657,15 @@
return;
}
+AXIS2_EXTERN void AXIS2_CALL
+axutil_hash_set_env(
+ axutil_hash_t * ht,
+ const axutil_env_t * env)
+{
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ if (ht)
+ {
+ ht->env = env;
+ }
+}
+
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org