axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject svn commit: r356740 - in /webservices/axis2/trunk/c: include/axis2_msg_ctx.h modules/core/context/src/msg_ctx.c
Date Wed, 14 Dec 2005 06:52:29 GMT
Author: samisa
Date: Tue Dec 13 22:52:17 2005
New Revision: 356740

URL: http://svn.apache.org/viewcvs?rev=356740&view=rev
Log:
Added get_property interface. Need to implement the logic


Modified:
    webservices/axis2/trunk/c/include/axis2_msg_ctx.h
    webservices/axis2/trunk/c/modules/core/context/src/msg_ctx.c

Modified: webservices/axis2/trunk/c/include/axis2_msg_ctx.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_msg_ctx.h?rev=356740&r1=356739&r2=356740&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_msg_ctx.h (original)
+++ webservices/axis2/trunk/c/include/axis2_msg_ctx.h Tue Dec 13 22:52:17 2005
@@ -435,6 +435,11 @@
                                         axis2_char_t *key, 
                                         axis2_bool_t persistent);
     
+    axis2_status_t (AXIS2_CALL *set_property)(struct axis2_msg_ctx *msg_ctx, 
+                                        axis2_env_t **env, 
+                                        axis2_char_t *key, 
+                                        void *value,
+                                        axis2_bool_t persistent);
     /**
      * @return
      */
@@ -636,7 +641,8 @@
 #define AXIS2_MSG_CTX_SET_MSG_INFO_HEADERS(msg_ctx, env, msg_info_headers) ((msg_ctx)->ops->set_msg_info_headers(msg_ctx,
env, msg_info_headers))
 #define AXIS2_MSG_CTX_GET_PARAMETER(msg_ctx, env, key) ((msg_ctx)->ops->get_parameter(msg_ctx,
env, key))
 #define AXIS2_MSG_CTX_GET_MODULE_PARAMETER(msg_ctx, env, key, module_name, handler_desc)
((msg_ctx)->ops->get_module_parameter(msg_ctx, env, key, module_name, handler_desc))
-#define AXIS2_MSG_CTX_GET_PROPERTY(msg_ctx, env, key, persistent) ((msg_ctx)->ops->get_parameter(msg_ctx,
env, key, persistent))
+#define AXIS2_MSG_CTX_GET_PROPERTY(msg_ctx, env, key, persistent) ((msg_ctx)->ops->get_property(msg_ctx,
env, key, persistent))
+#define AXIS2_MSG_CTX_SET_PROPERTY(msg_ctx, env, key, value, persistent) ((msg_ctx)->ops->set_property(msg_ctx,
env, key, value, persistent))
 #define AXIS2_MSG_CTX_GET_PAUSED_HANDLER_NAME(msg_ctx, env) ((msg_ctx)->ops->get_paused_handler_name(msg_ctx,
env))
 #define AXIS2_MSG_CTX_GET_PAUSED_PHASE_NAME(msg_ctx, env) ((msg_ctx)->ops->get_paused_phase_name(msg_ctx,
env))
 #define AXIS2_MSG_CTX_SET_PAUSED_PHASE_NAME(msg_ctx, env, paused_phase_name) ((msg_ctx)->ops->set_paused_phase_name(msg_ctx,
env, paused_phase_name))

Modified: webservices/axis2/trunk/c/modules/core/context/src/msg_ctx.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/context/src/msg_ctx.c?rev=356740&r1=356739&r2=356740&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/context/src/msg_ctx.c (original)
+++ webservices/axis2/trunk/c/modules/core/context/src/msg_ctx.c Tue Dec 13 22:52:17 2005
@@ -305,6 +305,10 @@
 axis2_msg_ctx_get_property(struct axis2_msg_ctx *msg_ctx, 
                             axis2_env_t **env, 
                             axis2_char_t *key, axis2_bool_t persistent);
+axis2_status_t AXIS2_CALL
+axis2_msg_ctx_set_property(struct axis2_msg_ctx *msg_ctx, 
+                            axis2_env_t **env, 
+                            axis2_char_t *key, void *value, axis2_bool_t persistent);
 axis2_qname_t* AXIS2_CALL
 axis2_msg_ctx_get_paused_handler_name(struct axis2_msg_ctx *msg_ctx, 
                                         axis2_env_t **env);
@@ -535,6 +539,7 @@
     msg_ctx_impl->msg_ctx.ops->get_parameter = axis2_msg_ctx_get_parameter;
     msg_ctx_impl->msg_ctx.ops->get_module_parameter = axis2_msg_ctx_get_module_parameter;
     msg_ctx_impl->msg_ctx.ops->get_property = axis2_msg_ctx_get_property;
+    msg_ctx_impl->msg_ctx.ops->set_property = axis2_msg_ctx_set_property;
     msg_ctx_impl->msg_ctx.ops->get_paused_handler_name = axis2_msg_ctx_get_paused_handler_name;
     msg_ctx_impl->msg_ctx.ops->get_paused_phase_name = axis2_msg_ctx_get_paused_phase_name;
     msg_ctx_impl->msg_ctx.ops->set_paused_phase_name = axis2_msg_ctx_set_paused_phase_name;
@@ -1547,6 +1552,12 @@
     return NULL;
 }
 
+axis2_status_t AXIS2_CALL axis2_msg_ctx_set_property(struct axis2_msg_ctx *msg_ctx, 
+                                axis2_env_t **env, 
+                                axis2_char_t *key, void *value, axis2_bool_t persistent)
+{
+    return AXIS2_SUCCESS;
+}
 axis2_qname_t *AXIS2_CALL axis2_msg_ctx_get_paused_handler_name(struct axis2_msg_ctx *msg_ctx,

                                             axis2_env_t **env)
 {



Mime
View raw message