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 sa...@apache.org on 2006/05/31 17:54:39 UTC

svn commit: r410566 [17/49] - in /webservices/axis2/trunk/c: axiom/include/ axiom/src/attachments/ axiom/src/om/ axiom/src/parser/guththila/ axiom/src/parser/libxml2/ axiom/src/soap/ axiom/test/om/ axiom/test/soap/ axiom/test/unit/om/ include/ modules/...

Modified: webservices/axis2/trunk/c/modules/core/context/ctx.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/context/ctx.c?rev=410566&r1=410565&r2=410566&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/context/ctx.c (original)
+++ webservices/axis2/trunk/c/modules/core/context/ctx.c Wed May 31 08:54:07 2006
@@ -35,54 +35,54 @@
 
 axis2_property_t* AXIS2_CALL 
 axis2_ctx_get_property(struct axis2_ctx *ctx, 
-                        axis2_env_t **env, 
+                        const axis2_env_t *env, 
                         axis2_char_t *key, 
                         axis2_bool_t persistent);
 
 axis2_status_t AXIS2_CALL 
 axis2_ctx_set_property(struct axis2_ctx *ctx, 
-                       axis2_env_t **env, 
+                       const axis2_env_t *env, 
                        axis2_char_t *key, 
                        axis2_property_t *value, 
                        axis2_bool_t persistent);
 
 axis2_hash_t* AXIS2_CALL 
 axis2_ctx_get_non_persistent_map(struct axis2_ctx *ctx, 
-                                axis2_env_t **env);
+                                const axis2_env_t *env);
 
                                 
 axis2_hash_t* AXIS2_CALL 
 axis2_ctx_get_persistent_map(struct axis2_ctx *ctx, 
-                            axis2_env_t **env);
+                            const axis2_env_t *env);
 
 axis2_status_t AXIS2_CALL 
 axis2_ctx_set_non_persistent_map(
     struct axis2_ctx *ctx, 
-    axis2_env_t **env,
+    const axis2_env_t *env,
     axis2_hash_t* map);
     
 axis2_status_t AXIS2_CALL
 axis2_ctx_set_persistent_map(
     struct axis2_ctx *ctx, 
-    axis2_env_t **env,
+    const axis2_env_t *env,
     axis2_hash_t* map);
     
 axis2_status_t AXIS2_CALL 
 axis2_ctx_free (struct axis2_ctx *ctx, 
-                axis2_env_t **env);
+                const axis2_env_t *env);
                 
 
 AXIS2_DECLARE(axis2_ctx_t*)
-axis2_ctx_create(axis2_env_t **env) 
+axis2_ctx_create(const axis2_env_t *env) 
 {
     axis2_ctx_impl_t *ctx_impl = NULL;
     
     AXIS2_ENV_CHECK(env, NULL);
     
-    ctx_impl = AXIS2_MALLOC( (*env)->allocator, sizeof(axis2_ctx_impl_t) );
+    ctx_impl = AXIS2_MALLOC( env->allocator, sizeof(axis2_ctx_impl_t) );
     if (!ctx_impl)
     { 
-        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return NULL;        
     }
 
@@ -105,10 +105,10 @@
 	
     /* initialize ops */
     ctx_impl->ctx.ops = NULL;
-    ctx_impl->ctx.ops  = AXIS2_MALLOC( (*env)->allocator, sizeof(axis2_ctx_ops_t) );
+    ctx_impl->ctx.ops  = AXIS2_MALLOC( env->allocator, sizeof(axis2_ctx_ops_t) );
     if (!ctx_impl->ctx.ops)
     {
-        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         axis2_ctx_free(&(ctx_impl->ctx), env);
         return NULL;        
     }
@@ -126,7 +126,7 @@
 
 axis2_status_t AXIS2_CALL 
 axis2_ctx_set_property(struct axis2_ctx *ctx, 
-                       axis2_env_t **env, 
+                       const axis2_env_t *env, 
                        axis2_char_t *key, 
                        axis2_property_t *value, 
                        axis2_bool_t persistent) 
@@ -154,7 +154,7 @@
 
 axis2_property_t* AXIS2_CALL 
 axis2_ctx_get_property(struct axis2_ctx *ctx, 
-                        axis2_env_t **env, 
+                        const axis2_env_t *env, 
                         axis2_char_t *key, 
                         axis2_bool_t persistent) 
 {
@@ -186,7 +186,7 @@
 
 axis2_hash_t* AXIS2_CALL 
 axis2_ctx_get_non_persistent_map(struct axis2_ctx *ctx, 
-                                 axis2_env_t **env) 
+                                 const axis2_env_t *env) 
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(ctx)->non_persistent_map;
@@ -194,7 +194,7 @@
 
 axis2_hash_t* AXIS2_CALL 
 axis2_ctx_get_persistent_map(struct axis2_ctx *ctx, 
-                             axis2_env_t **env) 
+                             const axis2_env_t *env) 
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(ctx)->persistent_map;
@@ -202,7 +202,7 @@
 
 axis2_status_t AXIS2_CALL 
 axis2_ctx_free (struct axis2_ctx *ctx, 
-                axis2_env_t **env)
+                const axis2_env_t *env)
 {
     axis2_ctx_impl_t *ctx_impl = NULL;
     
@@ -212,7 +212,7 @@
     
     if (ctx_impl->ctx.ops)
     {
-        AXIS2_FREE((*env)->allocator, ctx_impl->ctx.ops);
+        AXIS2_FREE(env->allocator, ctx_impl->ctx.ops);
         ctx_impl->ctx.ops = NULL;
     }
     
@@ -268,7 +268,7 @@
         ctx_impl->persistent_map = NULL;
     }    
     
-    AXIS2_FREE((*env)->allocator, ctx_impl);
+    AXIS2_FREE(env->allocator, ctx_impl);
     ctx_impl = NULL;
     
     return AXIS2_SUCCESS;
@@ -277,7 +277,7 @@
 axis2_status_t AXIS2_CALL 
 axis2_ctx_set_non_persistent_map(
     struct axis2_ctx *ctx, 
-    axis2_env_t **env,
+    const axis2_env_t *env,
     axis2_hash_t* map)
 {
     axis2_ctx_impl_t *ctx_impl = NULL;
@@ -320,7 +320,7 @@
 axis2_status_t AXIS2_CALL
 axis2_ctx_set_persistent_map(
     struct axis2_ctx *ctx, 
-    axis2_env_t **env,
+    const axis2_env_t *env,
     axis2_hash_t* map)
 {
     axis2_ctx_impl_t *ctx_impl = NULL;

Modified: webservices/axis2/trunk/c/modules/core/context/msg_ctx.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/context/msg_ctx.c?rev=410566&r1=410565&r2=410566&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/context/msg_ctx.c (original)
+++ webservices/axis2/trunk/c/modules/core/context/msg_ctx.c Wed May 31 08:54:07 2006
@@ -119,307 +119,307 @@
 
 struct axis2_ctx* AXIS2_CALL
 axis2_msg_ctx_get_base(struct axis2_msg_ctx *msg_ctx, 
-                        axis2_env_t **env);
+                        const axis2_env_t *env);
 struct axis2_op_ctx* AXIS2_CALL
 axis2_msg_ctx_get_parent(struct axis2_msg_ctx *msg_ctx, 
-                            axis2_env_t **env);
+                            const axis2_env_t *env);
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_parent(struct axis2_msg_ctx *msg_ctx, 
-                            axis2_env_t **env, 
+                            const axis2_env_t *env, 
                             struct axis2_op_ctx *parent);
 
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_free (axis2_msg_ctx_t *msg_ctx,
-                        axis2_env_t **env);
+                        const axis2_env_t *env);
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_init(struct axis2_msg_ctx *msg_ctx, 
-                    axis2_env_t **env, 
+                    const axis2_env_t *env, 
                     struct axis2_conf *conf);
 axis2_endpoint_ref_t *AXIS2_CALL 
 axis2_msg_ctx_get_fault_to(struct axis2_msg_ctx *msg_ctx, 
-                            axis2_env_t **env);
+                            const axis2_env_t *env);
 axis2_endpoint_ref_t *AXIS2_CALL
 axis2_msg_ctx_get_from(struct axis2_msg_ctx *msg_ctx, 
-                        axis2_env_t **env);
+                        const axis2_env_t *env);
 axis2_bool_t AXIS2_CALL
 axis2_msg_ctx_get_in_fault_flow(struct axis2_msg_ctx *msg_ctx, 
-                                axis2_env_t **env);
+                                const axis2_env_t *env);
 axis2_soap_envelope_t* AXIS2_CALL
 axis2_msg_ctx_get_soap_envelope(struct axis2_msg_ctx *msg_ctx, 
-                                axis2_env_t **env);
+                                const axis2_env_t *env);
 axis2_soap_envelope_t* AXIS2_CALL
 axis2_msg_ctx_get_fault_soap_envelope(struct axis2_msg_ctx *msg_ctx, 
-                                axis2_env_t **env);
+                                const axis2_env_t *env);
 axis2_char_t* AXIS2_CALL
 axis2_msg_ctx_get_msg_id(struct axis2_msg_ctx *msg_ctx, 
-                            axis2_env_t **env);
+                            const axis2_env_t *env);
 axis2_bool_t AXIS2_CALL
 axis2_msg_ctx_get_process_fault(struct axis2_msg_ctx *msg_ctx, 
-                                axis2_env_t **env);
+                                const axis2_env_t *env);
 axis2_relates_to_t* AXIS2_CALL
 axis2_msg_ctx_get_relates_to(struct axis2_msg_ctx *msg_ctx, 
-                                axis2_env_t **env);
+                                const axis2_env_t *env);
 axis2_endpoint_ref_t *AXIS2_CALL
 axis2_msg_ctx_get_reply_to(struct axis2_msg_ctx *msg_ctx, 
-                            axis2_env_t **env);
+                            const axis2_env_t *env);
 axis2_bool_t AXIS2_CALL
 axis2_msg_ctx_get_response_written(struct axis2_msg_ctx *msg_ctx, 
-                                    axis2_env_t **env);
+                                    const axis2_env_t *env);
 axis2_bool_t AXIS2_CALL
 axis2_msg_ctx_get_server_side(struct axis2_msg_ctx *msg_ctx, 
-                                axis2_env_t **env);
+                                const axis2_env_t *env);
 axis2_endpoint_ref_t *AXIS2_CALL
 axis2_msg_ctx_get_to(struct axis2_msg_ctx *msg_ctx, 
-                        axis2_env_t **env);
+                        const axis2_env_t *env);
 
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_fault_to(struct axis2_msg_ctx *msg_ctx, 
-                            axis2_env_t **env, 
+                            const axis2_env_t *env, 
                             axis2_endpoint_ref_t *reference);
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_from(struct axis2_msg_ctx *msg_ctx, 
-                        axis2_env_t **env, 
+                        const axis2_env_t *env, 
                         axis2_endpoint_ref_t *reference);
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_in_fault_flow(struct axis2_msg_ctx *msg_ctx, 
-                                axis2_env_t **env, 
+                                const axis2_env_t *env, 
                                 axis2_bool_t in_fault_flow);
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_soap_envelope(struct axis2_msg_ctx *msg_ctx, 
-                            axis2_env_t **env, 
+                            const axis2_env_t *env, 
                             axis2_soap_envelope_t *soap_envelope);
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_fault_soap_envelope(struct axis2_msg_ctx *msg_ctx, 
-                            axis2_env_t **env, 
+                            const axis2_env_t *env, 
                             axis2_soap_envelope_t *soap_envelope);
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_message_id(struct axis2_msg_ctx *msg_ctx, 
-                                axis2_env_t **env, 
+                                const axis2_env_t *env, 
                                 axis2_char_t *message_id);
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_process_fault(struct axis2_msg_ctx *msg_ctx, 
-                                axis2_env_t **env, 
+                                const axis2_env_t *env, 
                                 axis2_bool_t process_fault);
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_relates_to(struct axis2_msg_ctx *msg_ctx, 
-                                axis2_env_t **env,
+                                const axis2_env_t *env,
                                 axis2_relates_to_t *reference);
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_reply_to(struct axis2_msg_ctx *msg_ctx, 
-                            axis2_env_t **env, 
+                            const axis2_env_t *env, 
                             axis2_endpoint_ref_t *reference);
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_response_written(struct axis2_msg_ctx *msg_ctx, 
-                                    axis2_env_t **env, 
+                                    const axis2_env_t *env, 
                                     axis2_bool_t response_written);
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_server_side(struct axis2_msg_ctx *msg_ctx, 
-                                axis2_env_t **env,
+                                const axis2_env_t *env,
                                 axis2_bool_t server_side);
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_to(struct axis2_msg_ctx *msg_ctx, 
-                        axis2_env_t **env, 
+                        const axis2_env_t *env, 
                         axis2_endpoint_ref_t *reference);
 axis2_bool_t AXIS2_CALL
 axis2_msg_ctx_get_new_thread_required(struct axis2_msg_ctx *msg_ctx, 
-                                        axis2_env_t **env);
+                                        const axis2_env_t *env);
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_new_thread_required(struct axis2_msg_ctx *msg_ctx, 
-                                        axis2_env_t **env, 
+                                        const axis2_env_t *env, 
                                         axis2_bool_t new_thread_required);
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_wsa_action(struct axis2_msg_ctx *msg_ctx, 
-                                axis2_env_t **env, 
+                                const axis2_env_t *env, 
                                 axis2_char_t *action_uri);
 axis2_char_t* AXIS2_CALL
 axis2_msg_ctx_get_wsa_action(struct axis2_msg_ctx *msg_ctx, 
-                             axis2_env_t **env);
+                             const axis2_env_t *env);
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_wsa_message_id(struct axis2_msg_ctx *msg_ctx, 
-                                    axis2_env_t **env, 
+                                    const axis2_env_t *env, 
                                     axis2_char_t *message_id);
 axis2_char_t* AXIS2_CALL
 axis2_msg_ctx_get_wsa_message_id(struct axis2_msg_ctx *msg_ctx, 
-                                    axis2_env_t **env);
+                                    const axis2_env_t *env);
 axis2_msg_info_headers_t* AXIS2_CALL
 axis2_msg_ctx_get_msg_info_headers(struct axis2_msg_ctx *msg_ctx, 
-                                    axis2_env_t **env);
+                                    const axis2_env_t *env);
 axis2_bool_t AXIS2_CALL
 axis2_msg_ctx_get_paused(struct axis2_msg_ctx *msg_ctx, 
-                            axis2_env_t **env);
+                            const axis2_env_t *env);
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_paused(struct axis2_msg_ctx *msg_ctx, 
-                            axis2_env_t **env, 
+                            const axis2_env_t *env, 
                             axis2_bool_t paused);
 struct axis2_transport_in_desc* AXIS2_CALL
 axis2_msg_ctx_get_transport_in_desc(struct axis2_msg_ctx *msg_ctx, 
-                                    axis2_env_t **env);
+                                    const axis2_env_t *env);
 struct axis2_transport_out_desc* AXIS2_CALL
 axis2_msg_ctx_get_transport_out_desc(struct axis2_msg_ctx *msg_ctx, 
-                                        axis2_env_t **env);
+                                        const axis2_env_t *env);
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_transport_in_desc(struct axis2_msg_ctx *msg_ctx, 
-                                    axis2_env_t **env, 
+                                    const axis2_env_t *env, 
                                     struct axis2_transport_in_desc *transport_in_desc);
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_transport_out_desc(struct axis2_msg_ctx *msg_ctx, 
-                                        axis2_env_t **env, 
+                                        const axis2_env_t *env, 
                                         struct axis2_transport_out_desc *transport_out_desc); 
 struct axis2_op_ctx* AXIS2_CALL
 axis2_msg_ctx_get_op_ctx(struct axis2_msg_ctx *msg_ctx, 
-                                    axis2_env_t **env);
+                                    const axis2_env_t *env);
 
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_op_ctx(struct axis2_msg_ctx *msg_ctx, 
-                                axis2_env_t **env, 
+                                const axis2_env_t *env, 
                                 struct axis2_op_ctx * op_ctx);
 axis2_bool_t AXIS2_CALL
 axis2_msg_ctx_get_output_written(struct axis2_msg_ctx *msg_ctx, 
-                                    axis2_env_t **env);
+                                    const axis2_env_t *env);
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_output_written(struct axis2_msg_ctx *msg_ctx, 
-                                    axis2_env_t **env,
+                                    const axis2_env_t *env,
                                     axis2_bool_t output_written);
 axis2_char_t* AXIS2_CALL
 axis2_msg_ctx_get_svc_ctx_id(struct axis2_msg_ctx *msg_ctx, 
-                                axis2_env_t **env);
+                                const axis2_env_t *env);
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_svc_ctx_id(struct axis2_msg_ctx *msg_ctx, 
-                                axis2_env_t **env,
+                                const axis2_env_t *env,
                                 axis2_char_t *svc_ctx_id);
 struct axis2_conf_ctx* AXIS2_CALL
 axis2_msg_ctx_get_conf_ctx(struct axis2_msg_ctx *msg_ctx, 
-                            axis2_env_t **env);
+                            const axis2_env_t *env);
 struct axis2_svc_ctx* AXIS2_CALL
 axis2_msg_ctx_get_svc_ctx(struct axis2_msg_ctx *msg_ctx, 
-                            axis2_env_t **env);
+                            const axis2_env_t *env);
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_conf_ctx(struct axis2_msg_ctx *msg_ctx, 
-                            axis2_env_t **env,
+                            const axis2_env_t *env,
                             struct axis2_conf_ctx *conf_ctx);
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_svc_ctx(struct axis2_msg_ctx *msg_ctx, 
-                            axis2_env_t **env, 
+                            const axis2_env_t *env, 
                             struct axis2_svc_ctx *svc_ctx);
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_msg_info_headers(struct axis2_msg_ctx *msg_ctx, 
-                                    axis2_env_t **env, 
+                                    const axis2_env_t *env, 
                                     axis2_msg_info_headers_t *msg_info_headers);
 axis2_param_t* AXIS2_CALL
 axis2_msg_ctx_get_parameter(struct axis2_msg_ctx *msg_ctx, 
-                            axis2_env_t **env, axis2_char_t *key);
+                            const axis2_env_t *env, axis2_char_t *key);
 axis2_param_t* AXIS2_CALL
 axis2_msg_ctx_get_module_parameter(struct axis2_msg_ctx *msg_ctx, 
-                                    axis2_env_t **env, 
+                                    const axis2_env_t *env, 
                                     axis2_char_t *key, axis2_char_t *module_name, 
                                     axis2_handler_desc_t *handler_desc);
 axis2_property_t* AXIS2_CALL
 axis2_msg_ctx_get_property(struct axis2_msg_ctx *msg_ctx, 
-                            axis2_env_t **env, 
+                            const 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, 
+                            const axis2_env_t *env, 
                             axis2_char_t *key, 
                             axis2_property_t *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);
+                                        const axis2_env_t *env);
 axis2_char_t* AXIS2_CALL
 axis2_msg_ctx_get_paused_phase_name(struct axis2_msg_ctx *msg_ctx, 
-                                    axis2_env_t **env);
+                                    const axis2_env_t *env);
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_paused_phase_name(struct axis2_msg_ctx *msg_ctx, 
-                                    axis2_env_t **env, 
+                                    const axis2_env_t *env, 
                                     axis2_char_t *paused_phase_name);
 axis2_char_t* AXIS2_CALL
 axis2_msg_ctx_get_soap_action(struct axis2_msg_ctx *msg_ctx, 
-                                axis2_env_t **env);
+                                const axis2_env_t *env);
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_soap_action(struct axis2_msg_ctx *msg_ctx, 
-                                axis2_env_t **env,
+                                const axis2_env_t *env,
                                 axis2_char_t *soap_action);
 axis2_bool_t AXIS2_CALL
 axis2_msg_ctx_get_doing_mtom(struct axis2_msg_ctx *msg_ctx, 
-                                axis2_env_t **env);
+                                const axis2_env_t *env);
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_doing_mtom(struct axis2_msg_ctx *msg_ctx, 
-                                axis2_env_t **env,
+                                const axis2_env_t *env,
                                 axis2_bool_t doing_mtom);
 axis2_bool_t AXIS2_CALL
 axis2_msg_ctx_get_doing_rest(struct axis2_msg_ctx *msg_ctx, 
-                                axis2_env_t **env);
+                                const axis2_env_t *env);
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_doing_rest(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env, axis2_bool_t doing_rest);
+                                            const axis2_env_t *env, axis2_bool_t doing_rest);
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_do_rest_through_post(struct axis2_msg_ctx *msg_ctx, 
-                                        axis2_env_t **env, 
+                                        const axis2_env_t *env, 
                                         axis2_bool_t do_rest_through_post);
 axis2_bool_t AXIS2_CALL
 axis2_msg_ctx_get_do_rest_through_post(struct axis2_msg_ctx *msg_ctx, 
-                                        axis2_env_t **env);
+                                        const axis2_env_t *env);
 axis2_bool_t AXIS2_CALL
 axis2_msg_ctx_get_is_soap_11(struct axis2_msg_ctx *msg_ctx, 
-                                axis2_env_t **env);
+                                const axis2_env_t *env);
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_is_soap_11(struct axis2_msg_ctx *msg_ctx, 
-                                axis2_env_t **env,
+                                const axis2_env_t *env,
                                 axis2_bool_t is_soap11);
 struct axis2_svc_grp_ctx* AXIS2_CALL
 axis2_msg_ctx_get_svc_grp_ctx(struct axis2_msg_ctx *msg_ctx, 
-                                axis2_env_t **env);    
+                                const axis2_env_t *env);    
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_svc_grp_ctx(struct axis2_msg_ctx *msg_ctx, 
-                                axis2_env_t **env, 
+                                const axis2_env_t *env, 
                                 struct axis2_svc_grp_ctx *svc_grp_ctx);
 axis2_op_t* AXIS2_CALL
 axis2_msg_ctx_get_op(struct axis2_msg_ctx *msg_ctx, 
-                                axis2_env_t **env);
+                                const axis2_env_t *env);
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_op(struct axis2_msg_ctx *msg_ctx, 
-                            axis2_env_t **env, 
+                            const axis2_env_t *env, 
                             axis2_op_t *op);
 axis2_svc_t* AXIS2_CALL
 axis2_msg_ctx_get_svc(struct axis2_msg_ctx *msg_ctx, 
-                        axis2_env_t **env);
+                        const axis2_env_t *env);
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_svc(struct axis2_msg_ctx *msg_ctx, 
-                        axis2_env_t **env, 
+                        const axis2_env_t *env, 
                         axis2_svc_t *svc);
 axis2_svc_grp_t* AXIS2_CALL
 axis2_msg_ctx_get_svc_grp(struct axis2_msg_ctx *msg_ctx, 
-                            axis2_env_t **env);
+                            const axis2_env_t *env);
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_svc_grp(struct axis2_msg_ctx *msg_ctx, 
-                            axis2_env_t **env, 
+                            const axis2_env_t *env, 
                             axis2_svc_grp_t *svc_grp);
 axis2_char_t* AXIS2_CALL
 axis2_msg_ctx_get_svc_grp_ctx_id(struct axis2_msg_ctx *msg_ctx, 
-                                    axis2_env_t **env);
+                                    const axis2_env_t *env);
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_svc_grp_ctx_id(struct axis2_msg_ctx *msg_ctx, 
-                                    axis2_env_t **env,
+                                    const axis2_env_t *env,
                                     axis2_char_t *svc_grp_ctx_id);
 axis2_bool_t AXIS2_CALL
 axis2_msg_ctx_is_paused(axis2_msg_ctx_t *msg_ctx,
-                        axis2_env_t **env);
+                        const axis2_env_t *env);
 
 axis2_svc_t* AXIS2_CALL axis2_msg_ctx_find_svc(axis2_msg_ctx_t *msg_ctx, 
-                axis2_env_t **env);
+                const axis2_env_t *env);
 axis2_op_t* AXIS2_CALL axis2_msg_ctx_find_op(axis2_msg_ctx_t *msg_ctx,
-                            axis2_env_t **env,
+                            const axis2_env_t *env,
                             axis2_svc_t *svc);
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_options (axis2_msg_ctx_t *msg_ctx,
-    axis2_env_t **env,
+    const axis2_env_t *env,
     axis2_options_t *options);
 
 /************************* End of function headers ****************************/	
 
 AXIS2_DECLARE(axis2_msg_ctx_t *)
-axis2_msg_ctx_create (axis2_env_t **env,
+axis2_msg_ctx_create (const axis2_env_t *env,
                         struct axis2_conf_ctx *conf_ctx,
                         struct axis2_transport_in_desc *transport_in_desc,
                         struct axis2_transport_out_desc *transport_out_desc)
@@ -428,10 +428,10 @@
     
     AXIS2_ENV_CHECK(env, NULL);
     
-    msg_ctx_impl = AXIS2_MALLOC( (*env)->allocator, sizeof(axis2_msg_ctx_impl_t) );
+    msg_ctx_impl = AXIS2_MALLOC( env->allocator, sizeof(axis2_msg_ctx_impl_t) );
     if (!msg_ctx_impl)
     { 
-        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return NULL;        
     }
     
@@ -499,10 +499,10 @@
     }
     
     /* initialize ops */
-    msg_ctx_impl->msg_ctx.ops  = AXIS2_MALLOC( (*env)->allocator, sizeof(axis2_msg_ctx_ops_t) );
+    msg_ctx_impl->msg_ctx.ops  = AXIS2_MALLOC( env->allocator, sizeof(axis2_msg_ctx_ops_t) );
     if (!msg_ctx_impl->msg_ctx.ops)
     {
-        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         axis2_msg_ctx_free(&(msg_ctx_impl->msg_ctx), env);
         return NULL;        
     }
@@ -596,7 +596,7 @@
 
 /******************************************************************************/
 struct axis2_ctx* AXIS2_CALL axis2_msg_ctx_get_base(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env)
+                                            const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(msg_ctx)->base;
@@ -604,14 +604,14 @@
 
 
 struct axis2_op_ctx * AXIS2_CALL axis2_msg_ctx_get_parent(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env)
+                                            const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(msg_ctx)->parent;
 }
 
 axis2_status_t AXIS2_CALL axis2_msg_ctx_set_parent(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env, struct axis2_op_ctx *parent) 
+                                            const axis2_env_t *env, struct axis2_op_ctx *parent) 
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     
@@ -625,7 +625,7 @@
 
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_free (axis2_msg_ctx_t *msg_ctx,
-                        axis2_env_t **env)
+                        const axis2_env_t *env)
 {
     axis2_msg_ctx_impl_t *msg_ctx_impl = NULL;
     
@@ -635,7 +635,7 @@
 
     if(msg_ctx_impl->msg_ctx.ops)
     {
-        AXIS2_FREE((*env)->allocator, msg_ctx_impl->msg_ctx.ops);
+        AXIS2_FREE(env->allocator, msg_ctx_impl->msg_ctx.ops);
         msg_ctx_impl->msg_ctx.ops = NULL;
     }
     
@@ -653,37 +653,37 @@
 
     if (msg_ctx_impl->message_id)
     {
-        AXIS2_FREE((*env)->allocator, msg_ctx_impl->message_id);
+        AXIS2_FREE(env->allocator, msg_ctx_impl->message_id);
         msg_ctx_impl->message_id = NULL;
     }
     
     if (msg_ctx_impl->svc_ctx_id)
     {
-        AXIS2_FREE((*env)->allocator, msg_ctx_impl->svc_ctx_id);
+        AXIS2_FREE(env->allocator, msg_ctx_impl->svc_ctx_id);
         msg_ctx_impl->svc_ctx_id = NULL;
     }
     
     if (msg_ctx_impl->paused_phase_name)
     {
-        AXIS2_FREE((*env)->allocator, msg_ctx_impl->paused_phase_name);
+        AXIS2_FREE(env->allocator, msg_ctx_impl->paused_phase_name);
         msg_ctx_impl->paused_phase_name = NULL;
     }
 
     if (msg_ctx_impl->soap_action)
     {
-        AXIS2_FREE((*env)->allocator, msg_ctx_impl->soap_action);
+        AXIS2_FREE(env->allocator, msg_ctx_impl->soap_action);
         msg_ctx_impl->soap_action = NULL;
     }
 
     if (msg_ctx_impl->svc_grp_ctx_id)
     {
-        AXIS2_FREE((*env)->allocator, msg_ctx_impl->svc_grp_ctx_id);
+        AXIS2_FREE(env->allocator, msg_ctx_impl->svc_grp_ctx_id);
         msg_ctx_impl->svc_grp_ctx_id = NULL;
     }
 
     if (msg_ctx_impl->svc_grp_id)
     {
-        /*AXIS2_FREE((*env)->allocator, msg_ctx_impl->svc_grp_id);
+        /*AXIS2_FREE(env->allocator, msg_ctx_impl->svc_grp_id);
 		Freeing this is wrong. This is a shallow copy */
         msg_ctx_impl->svc_grp_id = NULL;
     }
@@ -700,7 +700,7 @@
         msg_ctx_impl->fault_soap_envelope = NULL;
     }
 
-    AXIS2_FREE((*env)->allocator, msg_ctx_impl);
+    AXIS2_FREE(env->allocator, msg_ctx_impl);
     
     return AXIS2_SUCCESS;
 }
@@ -710,13 +710,13 @@
  *
  */
 axis2_status_t AXIS2_CALL axis2_msg_ctx_init(struct axis2_msg_ctx *msg_ctx, 
-                    axis2_env_t **env, 
+                    const axis2_env_t *env, 
                     struct axis2_conf *conf)
 {
     axis2_msg_ctx_impl_t *msg_ctx_impl = NULL;
     
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, conf, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, conf, AXIS2_FAILURE);
     
     msg_ctx_impl = AXIS2_INTF_TO_IMPL(msg_ctx);
     
@@ -753,7 +753,7 @@
  * @return
  */
 axis2_endpoint_ref_t *AXIS2_CALL axis2_msg_ctx_get_fault_to(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env) 
+                                            const axis2_env_t *env) 
 {
     axis2_msg_ctx_impl_t *msg_ctx_impl = NULL;
 
@@ -771,7 +771,7 @@
 
 
 axis2_endpoint_ref_t *AXIS2_CALL axis2_msg_ctx_get_from(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env) 
+                                            const axis2_env_t *env) 
 {
     axis2_msg_ctx_impl_t *msg_ctx_impl = NULL;
 
@@ -788,28 +788,28 @@
 }
 
 axis2_bool_t AXIS2_CALL axis2_msg_ctx_get_in_fault_flow(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env) 
+                                            const axis2_env_t *env) 
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     return AXIS2_INTF_TO_IMPL(msg_ctx)->in_fault_flow;
 }
 
 axis2_soap_envelope_t* AXIS2_CALL axis2_msg_ctx_get_soap_envelope(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env)
+                                            const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(msg_ctx)->soap_envelope;
 }
 
 axis2_soap_envelope_t* AXIS2_CALL axis2_msg_ctx_get_fault_soap_envelope(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env)
+                                            const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(msg_ctx)->fault_soap_envelope;
 }
 
 axis2_char_t *AXIS2_CALL axis2_msg_ctx_get_msg_id(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env)
+                                            const axis2_env_t *env)
 {
     axis2_msg_ctx_impl_t *msg_ctx_impl = NULL;
     
@@ -826,14 +826,14 @@
 }
 
 axis2_bool_t AXIS2_CALL axis2_msg_ctx_get_process_fault(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env)
+                                            const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     return AXIS2_INTF_TO_IMPL(msg_ctx)->process_fault;
 }
 
 axis2_relates_to_t* AXIS2_CALL axis2_msg_ctx_get_relates_to(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env) 
+                                            const axis2_env_t *env) 
 {
     axis2_msg_ctx_impl_t *msg_ctx_impl = NULL;
     
@@ -851,7 +851,7 @@
 
 
 axis2_endpoint_ref_t *AXIS2_CALL axis2_msg_ctx_get_reply_to(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env) 
+                                            const axis2_env_t *env) 
 {
         axis2_msg_ctx_impl_t *msg_ctx_impl = NULL;
     
@@ -868,21 +868,21 @@
 }
 
 axis2_bool_t AXIS2_CALL axis2_msg_ctx_get_response_written(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env)
+                                            const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     return AXIS2_INTF_TO_IMPL(msg_ctx)->response_written;
 }
 
 axis2_bool_t AXIS2_CALL axis2_msg_ctx_get_server_side(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env)
+                                            const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     return AXIS2_INTF_TO_IMPL(msg_ctx)->server_side;
 }
 
 axis2_endpoint_ref_t *AXIS2_CALL axis2_msg_ctx_get_to(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env)
+                                            const axis2_env_t *env)
 {
     axis2_msg_ctx_impl_t *msg_ctx_impl = NULL;
     
@@ -900,7 +900,7 @@
 
 
 axis2_status_t AXIS2_CALL axis2_msg_ctx_set_fault_to(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env, axis2_endpoint_ref_t *reference) 
+                                            const axis2_env_t *env, axis2_endpoint_ref_t *reference) 
 {
     axis2_msg_ctx_impl_t *msg_ctx_impl = NULL;
 
@@ -917,7 +917,7 @@
 }
 
 axis2_status_t AXIS2_CALL axis2_msg_ctx_set_from(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env, axis2_endpoint_ref_t *reference) 
+                                            const axis2_env_t *env, axis2_endpoint_ref_t *reference) 
 {
     axis2_msg_ctx_impl_t *msg_ctx_impl = NULL;
     
@@ -936,7 +936,7 @@
 
 
 axis2_status_t AXIS2_CALL axis2_msg_ctx_set_in_fault_flow(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env, axis2_bool_t in_fault_flow) 
+                                            const axis2_env_t *env, axis2_bool_t in_fault_flow) 
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     AXIS2_INTF_TO_IMPL(msg_ctx)->in_fault_flow = in_fault_flow;
@@ -944,7 +944,7 @@
 }
 
 axis2_status_t AXIS2_CALL axis2_msg_ctx_set_soap_envelope(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env, axis2_soap_envelope_t *soap_envelope) 
+                                            const axis2_env_t *env, axis2_soap_envelope_t *soap_envelope) 
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     
@@ -966,14 +966,14 @@
                     AXIS2_INTF_TO_IMPL(msg_ctx)->is_soap_11 = AXIS2_TRUE;
                 else
                 {
-                    AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_INVALID_SOAP_VERSION, AXIS2_FAILURE);
+                    AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_SOAP_VERSION, AXIS2_FAILURE);
                     return AXIS2_FAILURE;
                 }
                 return AXIS2_SUCCESS;
             }
         }
         
-        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_INVALID_SOAP_ENVELOPE_STATE, AXIS2_FAILURE);
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_SOAP_ENVELOPE_STATE, AXIS2_FAILURE);
         return AXIS2_FAILURE;
     }
     else
@@ -983,7 +983,7 @@
 }
 
 axis2_status_t AXIS2_CALL axis2_msg_ctx_set_fault_soap_envelope(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env, axis2_soap_envelope_t *soap_envelope) 
+                                            const axis2_env_t *env, axis2_soap_envelope_t *soap_envelope) 
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     AXIS2_INTF_TO_IMPL(msg_ctx)->fault_soap_envelope  = soap_envelope ;
@@ -991,7 +991,7 @@
 }
 
 axis2_status_t AXIS2_CALL axis2_msg_ctx_set_message_id(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env, axis2_char_t *message_id) 
+                                            const axis2_env_t *env, axis2_char_t *message_id) 
 {
     axis2_msg_ctx_impl_t *msg_ctx_impl = NULL;
     
@@ -1010,7 +1010,7 @@
 
 
 axis2_status_t AXIS2_CALL axis2_msg_ctx_set_process_fault(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env, axis2_bool_t process_fault) 
+                                            const axis2_env_t *env, axis2_bool_t process_fault) 
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     AXIS2_INTF_TO_IMPL(msg_ctx)->process_fault  = process_fault;
@@ -1018,7 +1018,7 @@
 }
 
 axis2_status_t AXIS2_CALL axis2_msg_ctx_set_relates_to(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env, axis2_relates_to_t *reference) 
+                                            const axis2_env_t *env, axis2_relates_to_t *reference) 
 {
     axis2_msg_ctx_impl_t *msg_ctx_impl = NULL;
     
@@ -1037,7 +1037,7 @@
 
 
 axis2_status_t AXIS2_CALL axis2_msg_ctx_set_reply_to(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env, axis2_endpoint_ref_t *reference) 
+                                            const axis2_env_t *env, axis2_endpoint_ref_t *reference) 
 {
     axis2_msg_ctx_impl_t *msg_ctx_impl = NULL;
     
@@ -1055,7 +1055,7 @@
 }
 
 axis2_status_t AXIS2_CALL axis2_msg_ctx_set_response_written(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env, axis2_bool_t response_written ) 
+                                            const axis2_env_t *env, axis2_bool_t response_written ) 
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     AXIS2_INTF_TO_IMPL(msg_ctx)->response_written  = response_written ;
@@ -1063,7 +1063,7 @@
 }
 
 axis2_status_t AXIS2_CALL axis2_msg_ctx_set_server_side(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env, axis2_bool_t server_side) 
+                                            const axis2_env_t *env, axis2_bool_t server_side) 
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     AXIS2_INTF_TO_IMPL(msg_ctx)->server_side = server_side;
@@ -1071,7 +1071,7 @@
 }
 
 axis2_status_t AXIS2_CALL axis2_msg_ctx_set_to(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env, axis2_endpoint_ref_t *reference) 
+                                            const axis2_env_t *env, axis2_endpoint_ref_t *reference) 
 {
     axis2_msg_ctx_impl_t *msg_ctx_impl = NULL;
     
@@ -1089,14 +1089,14 @@
 }
 
 axis2_bool_t AXIS2_CALL axis2_msg_ctx_get_new_thread_required(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env) 
+                                            const axis2_env_t *env) 
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     return AXIS2_INTF_TO_IMPL(msg_ctx)->new_thread_required;
 }
 
 axis2_status_t AXIS2_CALL axis2_msg_ctx_set_new_thread_required(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env, axis2_bool_t new_thread_required) 
+                                            const axis2_env_t *env, axis2_bool_t new_thread_required) 
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     AXIS2_INTF_TO_IMPL(msg_ctx)->new_thread_required = new_thread_required;
@@ -1104,7 +1104,7 @@
 }
 
 axis2_status_t AXIS2_CALL axis2_msg_ctx_set_wsa_action(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env, axis2_char_t *action_uri) 
+                                            const axis2_env_t *env, axis2_char_t *action_uri) 
 {
     axis2_msg_ctx_impl_t *msg_ctx_impl = NULL;
     
@@ -1122,7 +1122,7 @@
 }
 
 axis2_char_t *AXIS2_CALL axis2_msg_ctx_get_wsa_action(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env)
+                                            const axis2_env_t *env)
 {
     axis2_msg_ctx_impl_t *msg_ctx_impl = NULL;
     
@@ -1140,7 +1140,7 @@
 }
 
 axis2_status_t AXIS2_CALL axis2_msg_ctx_set_wsa_message_id(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env, axis2_char_t *message_id) 
+                                            const axis2_env_t *env, axis2_char_t *message_id) 
 {
     axis2_msg_ctx_impl_t *msg_ctx_impl = NULL;
     
@@ -1158,7 +1158,7 @@
 }
 
 axis2_char_t *AXIS2_CALL axis2_msg_ctx_get_wsa_message_id(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env)
+                                            const axis2_env_t *env)
 {
     axis2_msg_ctx_impl_t *msg_ctx_impl = NULL;
 
@@ -1177,21 +1177,21 @@
 }
 
 axis2_msg_info_headers_t *AXIS2_CALL axis2_msg_ctx_get_msg_info_headers(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env)
+                                            const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(msg_ctx)->msg_info_headers;
 }
 
 axis2_bool_t AXIS2_CALL axis2_msg_ctx_get_paused(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env)
+                                            const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     return AXIS2_INTF_TO_IMPL(msg_ctx)->paused;
 }
 
 axis2_status_t AXIS2_CALL axis2_msg_ctx_set_paused(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env, axis2_bool_t paused) 
+                                            const axis2_env_t *env, axis2_bool_t paused) 
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     AXIS2_INTF_TO_IMPL(msg_ctx)->paused = paused;
@@ -1199,21 +1199,21 @@
 }
 
 struct axis2_transport_in_desc * AXIS2_CALL axis2_msg_ctx_get_transport_in_desc(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env)
+                                            const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(msg_ctx)->transport_in_desc;
 }
 
 struct axis2_transport_out_desc * AXIS2_CALL axis2_msg_ctx_get_transport_out_desc(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env)
+                                            const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(msg_ctx)->transport_out_desc;
 }
 
 axis2_status_t AXIS2_CALL axis2_msg_ctx_set_transport_in_desc(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env, struct axis2_transport_in_desc *transport_in_desc)
+                                            const axis2_env_t *env, struct axis2_transport_in_desc *transport_in_desc)
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     
@@ -1227,7 +1227,7 @@
 }
 
 axis2_status_t AXIS2_CALL axis2_msg_ctx_set_transport_out_desc(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env, struct axis2_transport_out_desc *transport_out_desc) 
+                                            const axis2_env_t *env, struct axis2_transport_out_desc *transport_out_desc) 
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     
@@ -1241,14 +1241,14 @@
 }
 
 struct axis2_op_ctx * AXIS2_CALL axis2_msg_ctx_get_op_ctx(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env)
+                                            const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(msg_ctx)->op_ctx;
 }
 
 axis2_status_t AXIS2_CALL axis2_msg_ctx_set_op_ctx(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env, struct axis2_op_ctx * op_ctx) 
+                                            const axis2_env_t *env, struct axis2_op_ctx * op_ctx) 
 {
     axis2_msg_ctx_impl_t *msg_ctx_impl = NULL;
     
@@ -1274,14 +1274,14 @@
 }
 
 axis2_bool_t AXIS2_CALL axis2_msg_ctx_get_output_written(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env)
+                                            const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     return AXIS2_INTF_TO_IMPL(msg_ctx)->output_written;
 }
 
 axis2_status_t AXIS2_CALL axis2_msg_ctx_set_output_written(struct axis2_msg_ctx *msg_ctx, 
-                                                axis2_env_t **env,
+                                                const axis2_env_t *env,
                                                 axis2_bool_t output_written) 
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
@@ -1290,14 +1290,14 @@
 }
 
 axis2_char_t *AXIS2_CALL axis2_msg_ctx_get_svc_ctx_id(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env)
+                                            const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(msg_ctx)->svc_ctx_id;
 }
 
 axis2_status_t AXIS2_CALL axis2_msg_ctx_set_svc_ctx_id(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env,
+                                            const axis2_env_t *env,
                                             axis2_char_t *svc_ctx_id) 
 {
     axis2_msg_ctx_impl_t *msg_ctx_impl = NULL;
@@ -1308,7 +1308,7 @@
     
     if (msg_ctx_impl->svc_ctx_id)
     {
-        AXIS2_FREE((*env)->allocator, msg_ctx_impl->svc_ctx_id);
+        AXIS2_FREE(env->allocator, msg_ctx_impl->svc_ctx_id);
         msg_ctx_impl->svc_ctx_id = NULL;
     } 
     
@@ -1317,7 +1317,7 @@
         msg_ctx_impl->svc_ctx_id = AXIS2_STRDUP(svc_ctx_id, env);
         if (!(msg_ctx_impl->svc_ctx_id))
         {
-            AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+            AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
             return AXIS2_FAILURE;
         }
     }
@@ -1325,21 +1325,21 @@
 }
 
 struct axis2_conf_ctx *AXIS2_CALL axis2_msg_ctx_get_conf_ctx(struct axis2_msg_ctx *msg_ctx, 
-                                                    axis2_env_t **env)
+                                                    const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(msg_ctx)->conf_ctx;
 }
 
 struct axis2_svc_ctx *AXIS2_CALL axis2_msg_ctx_get_svc_ctx(struct axis2_msg_ctx *msg_ctx, 
-                                                    axis2_env_t **env) 
+                                                    const axis2_env_t *env) 
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(msg_ctx)->svc_ctx;
 }
 
 axis2_status_t AXIS2_CALL axis2_msg_ctx_set_conf_ctx(struct axis2_msg_ctx *msg_ctx, 
-                                                    axis2_env_t **env,
+                                                    const axis2_env_t *env,
                                                     struct axis2_conf_ctx *conf_ctx) 
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
@@ -1353,7 +1353,7 @@
 }
 
 axis2_status_t AXIS2_CALL axis2_msg_ctx_set_svc_ctx(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env, 
+                                            const axis2_env_t *env, 
                                             struct axis2_svc_ctx *svc_ctx) 
 {
     axis2_msg_ctx_impl_t *msg_ctx_impl = NULL;
@@ -1378,7 +1378,7 @@
 }
 
 axis2_status_t AXIS2_CALL axis2_msg_ctx_set_msg_info_headers(struct axis2_msg_ctx *msg_ctx, 
-                                                axis2_env_t **env, 
+                                                const axis2_env_t *env, 
                                                 axis2_msg_info_headers_t *msg_info_headers) 
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
@@ -1399,7 +1399,7 @@
 
 
 axis2_param_t *AXIS2_CALL axis2_msg_ctx_get_parameter(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env, axis2_char_t *key) 
+                                            const axis2_env_t *env, axis2_char_t *key) 
 {
     axis2_msg_ctx_impl_t *msg_ctx_impl = NULL;
     axis2_param_t *param = NULL;
@@ -1446,7 +1446,7 @@
 
 
 axis2_param_t * AXIS2_CALL axis2_msg_ctx_get_module_parameter(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env, 
+                                            const axis2_env_t *env, 
                                             axis2_char_t *key, axis2_char_t *module_name, 
                                             axis2_handler_desc_t *handler_desc) 
 {
@@ -1458,7 +1458,7 @@
     axis2_conf_t *conf = NULL;*/
     
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
-    /*AXIS2_PARAM_CHECK((*env)->error, module_name, AXIS2_FAILURE);
+    /*AXIS2_PARAM_CHECK(env->error, module_name, AXIS2_FAILURE);
     
     msg_ctx_impl = AXIS2_INTF_TO_IMPL(msg_ctx);
     
@@ -1578,7 +1578,7 @@
 
 axis2_property_t* AXIS2_CALL 
 axis2_msg_ctx_get_property(struct axis2_msg_ctx *msg_ctx, 
-                           axis2_env_t **env, 
+                           const axis2_env_t *env, 
                            axis2_char_t *key, axis2_bool_t persistent) 
 {
     axis2_msg_ctx_impl_t *msg_ctx_impl = NULL;
@@ -1652,7 +1652,7 @@
 }
 
 axis2_status_t AXIS2_CALL axis2_msg_ctx_set_property(struct axis2_msg_ctx *msg_ctx, 
-                                axis2_env_t **env, 
+                                const axis2_env_t *env, 
                                 axis2_char_t *key, 
                                 axis2_property_t *value, 
                                 axis2_bool_t persistent)
@@ -1667,21 +1667,21 @@
 }
 
 axis2_qname_t *AXIS2_CALL axis2_msg_ctx_get_paused_handler_name(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env)
+                                            const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(msg_ctx)->paused_handler_name;
 }
 
 axis2_char_t * AXIS2_CALL axis2_msg_ctx_get_paused_phase_name(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env)
+                                            const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(msg_ctx)->paused_phase_name;
 }
 
 axis2_status_t AXIS2_CALL axis2_msg_ctx_set_paused_phase_name(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env, axis2_char_t *paused_phase_name) 
+                                            const axis2_env_t *env, axis2_char_t *paused_phase_name) 
 {
     axis2_msg_ctx_impl_t *msg_ctx_impl = NULL;
     
@@ -1691,7 +1691,7 @@
     
     if (msg_ctx_impl->paused_phase_name)
     {
-        AXIS2_FREE((*env)->allocator, msg_ctx_impl->paused_phase_name);
+        AXIS2_FREE(env->allocator, msg_ctx_impl->paused_phase_name);
         msg_ctx_impl->paused_phase_name = NULL;
     } 
     
@@ -1700,7 +1700,7 @@
         msg_ctx_impl->paused_phase_name = AXIS2_STRDUP(paused_phase_name, env);
         if (!(msg_ctx_impl->paused_phase_name))
         {
-            AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+            AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
             return AXIS2_FAILURE;
         }
     }
@@ -1708,14 +1708,14 @@
 }
 
 axis2_char_t* AXIS2_CALL axis2_msg_ctx_get_soap_action(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env) 
+                                            const axis2_env_t *env) 
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(msg_ctx)->soap_action;
 }
 
 axis2_status_t AXIS2_CALL axis2_msg_ctx_set_soap_action(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env,
+                                            const axis2_env_t *env,
                                             axis2_char_t *soap_action) 
 {
     axis2_msg_ctx_impl_t *msg_ctx_impl = NULL;
@@ -1726,7 +1726,7 @@
     
     if (msg_ctx_impl->soap_action)
     {
-        AXIS2_FREE((*env)->allocator, msg_ctx_impl->soap_action);
+        AXIS2_FREE(env->allocator, msg_ctx_impl->soap_action);
         msg_ctx_impl->soap_action = NULL;
     } 
     
@@ -1735,7 +1735,7 @@
         msg_ctx_impl->soap_action = AXIS2_STRDUP(soap_action, env);
         if (!(msg_ctx_impl->soap_action))
         {
-            AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+            AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
             return AXIS2_FAILURE;
         }
     }
@@ -1743,14 +1743,14 @@
 }
 
 axis2_bool_t AXIS2_CALL axis2_msg_ctx_get_doing_mtom(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env)
+                                            const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     return AXIS2_INTF_TO_IMPL(msg_ctx)->doing_mtom;
 }
 
 axis2_status_t AXIS2_CALL axis2_msg_ctx_set_doing_mtom(struct axis2_msg_ctx *msg_ctx, 
-                                        axis2_env_t **env,
+                                        const axis2_env_t *env,
                                         axis2_bool_t doing_mtom) 
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
@@ -1759,14 +1759,14 @@
 }
 
 axis2_bool_t AXIS2_CALL axis2_msg_ctx_get_doing_rest(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env) 
+                                            const axis2_env_t *env) 
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     return AXIS2_INTF_TO_IMPL(msg_ctx)->doing_rest;
 }
 
 axis2_status_t AXIS2_CALL axis2_msg_ctx_set_doing_rest(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env, axis2_bool_t doing_rest) 
+                                            const axis2_env_t *env, axis2_bool_t doing_rest) 
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     AXIS2_INTF_TO_IMPL(msg_ctx)->doing_rest = doing_rest;
@@ -1774,7 +1774,7 @@
 }
 
 axis2_status_t AXIS2_CALL axis2_msg_ctx_set_do_rest_through_post(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env, axis2_bool_t do_rest_through_post) 
+                                            const axis2_env_t *env, axis2_bool_t do_rest_through_post) 
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     AXIS2_INTF_TO_IMPL(msg_ctx)->do_rest_through_post = do_rest_through_post;
@@ -1782,14 +1782,14 @@
 }
 
 axis2_bool_t AXIS2_CALL axis2_msg_ctx_get_do_rest_through_post(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env) 
+                                            const axis2_env_t *env) 
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     return AXIS2_INTF_TO_IMPL(msg_ctx)->do_rest_through_post;
 }
 
 axis2_bool_t AXIS2_CALL axis2_msg_ctx_get_is_soap_11(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env) 
+                                            const axis2_env_t *env) 
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     return AXIS2_INTF_TO_IMPL(msg_ctx)->is_soap_11;
@@ -1797,7 +1797,7 @@
 
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_is_soap_11(struct axis2_msg_ctx *msg_ctx, 
-                                axis2_env_t **env,
+                                const axis2_env_t *env,
                                 axis2_bool_t is_soap11)
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
@@ -1806,14 +1806,14 @@
 }
 
 struct axis2_svc_grp_ctx *AXIS2_CALL axis2_msg_ctx_get_svc_grp_ctx(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env) 
+                                            const axis2_env_t *env) 
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(msg_ctx)->svc_grp_ctx;
 }
 
 axis2_status_t AXIS2_CALL axis2_msg_ctx_set_svc_grp_ctx(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env, struct axis2_svc_grp_ctx *svc_grp_ctx) 
+                                            const axis2_env_t *env, struct axis2_svc_grp_ctx *svc_grp_ctx) 
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     
@@ -1826,14 +1826,14 @@
 }
 
 axis2_op_t *AXIS2_CALL axis2_msg_ctx_get_op(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env) 
+                                            const axis2_env_t *env) 
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(msg_ctx)->op;
 }
 
 axis2_status_t AXIS2_CALL axis2_msg_ctx_set_op(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env, axis2_op_t *op) 
+                                            const axis2_env_t *env, axis2_op_t *op) 
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     
@@ -1847,14 +1847,14 @@
 }
 
 axis2_svc_t *AXIS2_CALL axis2_msg_ctx_get_svc(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env) 
+                                            const axis2_env_t *env) 
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(msg_ctx)->svc;
 }
 
 axis2_status_t AXIS2_CALL axis2_msg_ctx_set_svc(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env, axis2_svc_t *svc) 
+                                            const axis2_env_t *env, axis2_svc_t *svc) 
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     
@@ -1876,14 +1876,14 @@
 }
 
 axis2_svc_grp_t * AXIS2_CALL axis2_msg_ctx_get_svc_grp(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env)
+                                            const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(msg_ctx)->svc_grp;
 }
 
 axis2_status_t AXIS2_CALL axis2_msg_ctx_set_svc_grp(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env, axis2_svc_grp_t *svc_grp) 
+                                            const axis2_env_t *env, axis2_svc_grp_t *svc_grp) 
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     
@@ -1897,14 +1897,14 @@
 }
 
 axis2_char_t * AXIS2_CALL axis2_msg_ctx_get_svc_grp_ctx_id(struct axis2_msg_ctx *msg_ctx, 
-                                            axis2_env_t **env)
+                                            const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK(env, NULL);    
     return AXIS2_INTF_TO_IMPL(msg_ctx)->svc_grp_ctx_id;
 }
 
 axis2_status_t AXIS2_CALL axis2_msg_ctx_set_svc_grp_ctx_id(struct axis2_msg_ctx *msg_ctx, 
-                                                axis2_env_t **env,
+                                                const axis2_env_t *env,
                                                 axis2_char_t *svc_grp_ctx_id) 
 {
     axis2_msg_ctx_impl_t *msg_ctx_impl = NULL;
@@ -1915,7 +1915,7 @@
     
     if (msg_ctx_impl->svc_grp_ctx_id)
     {
-        AXIS2_FREE((*env)->allocator, msg_ctx_impl->svc_grp_ctx_id);
+        AXIS2_FREE(env->allocator, msg_ctx_impl->svc_grp_ctx_id);
         msg_ctx_impl->svc_grp_ctx_id = NULL;
     } 
     
@@ -1924,7 +1924,7 @@
         msg_ctx_impl->svc_grp_ctx_id = AXIS2_STRDUP(svc_grp_ctx_id, env);
         if (!(msg_ctx_impl->svc_grp_ctx_id))
         {
-            AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+            AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
             return AXIS2_FAILURE;
         }
     }
@@ -1933,20 +1933,20 @@
 
 axis2_bool_t AXIS2_CALL
 axis2_msg_ctx_is_paused(axis2_msg_ctx_t *msg_ctx,
-                        axis2_env_t **env) 
+                        const axis2_env_t *env) 
 {
     AXIS2_ENV_CHECK(env, AXIS2_FALSE);
     return AXIS2_INTF_TO_IMPL(msg_ctx)->paused;
 }
 
 axis2_svc_t* AXIS2_CALL axis2_msg_ctx_find_svc(axis2_msg_ctx_t *msg_ctx, 
-                axis2_env_t **env)
+                const axis2_env_t *env)
 {
     return NULL;
 }
 
 axis2_op_t* AXIS2_CALL axis2_msg_ctx_find_op(axis2_msg_ctx_t *msg_ctx,
-                            axis2_env_t **env,
+                            const axis2_env_t *env,
                             axis2_svc_t *svc)
 {
     return NULL;
@@ -1954,14 +1954,14 @@
 
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_options (axis2_msg_ctx_t *msg_ctx,
-    axis2_env_t **env,
+    const axis2_env_t *env,
     axis2_options_t *options)
 {
     axis2_msg_ctx_impl_t *msg_ctx_impl = NULL;
     axis2_char_t *rest_val = NULL;
     
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, options, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, options, AXIS2_FAILURE);
     
     msg_ctx_impl = AXIS2_INTF_TO_IMPL(msg_ctx);
     

Modified: webservices/axis2/trunk/c/modules/core/context/op_ctx.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/context/op_ctx.c?rev=410566&r1=410565&r2=410566&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/context/op_ctx.c (original)
+++ webservices/axis2/trunk/c/modules/core/context/op_ctx.c Wed May 31 08:54:07 2006
@@ -56,69 +56,69 @@
 
 axis2_ctx_t* AXIS2_CALL 
 axis2_op_ctx_get_base(struct axis2_op_ctx *op_ctx, 
-                      axis2_env_t **env);
+                      const axis2_env_t *env);
                       
 axis2_status_t AXIS2_CALL 
 axis2_op_ctx_free (struct axis2_op_ctx *op_ctx, 
-                   axis2_env_t **env);
+                   const axis2_env_t *env);
                    
 axis2_status_t AXIS2_CALL 
 axis2_op_ctx_init(struct axis2_op_ctx *op_ctx, 
-                 axis2_env_t **env, 
+                 const axis2_env_t *env, 
                  struct axis2_conf *conf);
                  
 axis2_op_t* AXIS2_CALL 
 axis2_op_ctx_getAxisOperation(struct axis2_op_ctx *op_ctx, 
-                             axis2_env_t **env);
+                             const axis2_env_t *env);
 
                              
 struct axis2_svc_ctx * AXIS2_CALL 
 axis2_op_ctx_get_parent(struct axis2_op_ctx *op_ctx, 
-                        axis2_env_t **env);
+                        const axis2_env_t *env);
 
                         
 axis2_status_t AXIS2_CALL 
 axis2_op_ctx_add_msg_ctx(struct axis2_op_ctx *op_ctx, 
-                        axis2_env_t **env, 
+                        const axis2_env_t *env, 
                         axis2_msg_ctx_t *msg_ctx);
 
                         
 axis2_msg_ctx_t* AXIS2_CALL 
 axis2_op_ctx_get_msg_ctx(struct axis2_op_ctx *op_ctx, 
-                        axis2_env_t **env, 
+                        const axis2_env_t *env, 
                         axis2_char_t *messageLabel);
                         
 axis2_bool_t AXIS2_CALL 
 axis2_op_ctx_get_is_complete(struct axis2_op_ctx *op_ctx, 
-                            axis2_env_t **env);
+                            const axis2_env_t *env);
                             
 axis2_status_t AXIS2_CALL 
 axis2_op_ctx_set_complete(struct axis2_op_ctx *op_ctx, 
-                          axis2_env_t **env, 
+                          const axis2_env_t *env, 
                           axis2_bool_t is_complete);
                           
 axis2_status_t AXIS2_CALL 
 axis2_op_ctx_cleanup(struct axis2_op_ctx *op_ctx, 
-                     axis2_env_t **env);
+                     const axis2_env_t *env);
                      
 axis2_status_t AXIS2_CALL 
 axis2_op_ctx_set_parent(struct axis2_op_ctx *op_ctx, 
-                        axis2_env_t **env, 
+                        const axis2_env_t *env, 
                         struct axis2_svc_ctx* svc_ctx);
 
                         
 axis2_op_t* AXIS2_CALL 
 axis2_op_ctx_get_op(struct axis2_op_ctx *op_ctx, 
-                    axis2_env_t **env);
+                    const axis2_env_t *env);
                     
 axis2_hash_t* AXIS2_CALL 
 axis2_op_ctx_get_msg_ctx_map(struct axis2_op_ctx *op_ctx, 
-                             axis2_env_t **env);
+                             const axis2_env_t *env);
 
 
 
 AXIS2_DECLARE(axis2_op_ctx_t*)
-axis2_op_ctx_create(axis2_env_t **env, 
+axis2_op_ctx_create(const axis2_env_t *env, 
                     axis2_op_t *op,
                     struct axis2_svc_ctx* svc_ctx) 
 {
@@ -126,10 +126,10 @@
     
     AXIS2_ENV_CHECK(env, NULL);
     
-    op_ctx_impl = AXIS2_MALLOC( (*env)->allocator, sizeof(axis2_op_ctx_impl_t) );
+    op_ctx_impl = AXIS2_MALLOC( env->allocator, sizeof(axis2_op_ctx_impl_t) );
     if (!op_ctx_impl)
     { 
-        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return NULL;        
     }
 
@@ -143,7 +143,7 @@
     op_ctx_impl->op_ctx_map = NULL;
     op_ctx_impl->op_qname = NULL;
     op_ctx_impl->svc_qname = NULL;
-    op_ctx_impl->mutex = axis2_thread_mutex_create((*env)->allocator, 
+    op_ctx_impl->mutex = axis2_thread_mutex_create(env->allocator, 
 						AXIS2_THREAD_MUTEX_DEFAULT);
 	
 	if(NULL == op_ctx_impl->mutex)
@@ -181,10 +181,10 @@
     axis2_op_ctx_set_parent(&(op_ctx_impl->op_ctx), env, svc_ctx);
     
     /* initialize ops */    
-    op_ctx_impl->op_ctx.ops  = AXIS2_MALLOC( (*env)->allocator, sizeof(axis2_op_ctx_ops_t) );
+    op_ctx_impl->op_ctx.ops  = AXIS2_MALLOC( env->allocator, sizeof(axis2_op_ctx_ops_t) );
     if (!op_ctx_impl->op_ctx.ops)
     {
-        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         axis2_op_ctx_free(&(op_ctx_impl->op_ctx), env);
         return NULL;        
     }
@@ -231,7 +231,7 @@
 
 axis2_ctx_t* AXIS2_CALL 
 axis2_op_ctx_get_base(struct axis2_op_ctx *op_ctx, 
-                      axis2_env_t **env)
+                      const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(op_ctx)->base;
@@ -240,7 +240,7 @@
 
 axis2_status_t AXIS2_CALL 
 axis2_op_ctx_free (struct axis2_op_ctx *op_ctx, 
-                   axis2_env_t **env)
+                   const axis2_env_t *env)
 {
     axis2_op_ctx_impl_t *op_ctx_impl = NULL;
     
@@ -250,7 +250,7 @@
     
     if (op_ctx_impl->op_ctx.ops)
     {
-        AXIS2_FREE((*env)->allocator, op_ctx_impl->op_ctx.ops);
+        AXIS2_FREE(env->allocator, op_ctx_impl->op_ctx.ops);
         op_ctx_impl->op_ctx.ops = NULL;
     }
     
@@ -271,7 +271,7 @@
         op_ctx_impl->mutex = NULL;
     }
     
-    AXIS2_FREE((*env)->allocator, op_ctx_impl);
+    AXIS2_FREE(env->allocator, op_ctx_impl);
     op_ctx_impl = NULL;
     
     return AXIS2_SUCCESS;
@@ -282,7 +282,7 @@
  */
 axis2_status_t AXIS2_CALL 
 axis2_op_ctx_init(struct axis2_op_ctx *op_ctx, 
-                  axis2_env_t **env, 
+                  const axis2_env_t *env, 
                   struct axis2_conf *conf)
 {
     axis2_op_ctx_impl_t *op_ctx_impl = NULL;
@@ -334,7 +334,7 @@
  */
 axis2_op_t* AXIS2_CALL 
 axis2_op_ctx_get_op(struct axis2_op_ctx *op_ctx, 
-                    axis2_env_t **env) 
+                    const axis2_env_t *env) 
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(op_ctx)->op;
@@ -347,7 +347,7 @@
  */
 struct axis2_svc_ctx * AXIS2_CALL 
 axis2_op_ctx_get_parent(struct axis2_op_ctx *op_ctx, 
-                        axis2_env_t **env) 
+                        const axis2_env_t *env) 
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(op_ctx)->parent;
@@ -363,7 +363,7 @@
  */
 axis2_status_t AXIS2_CALL 
 axis2_op_ctx_add_msg_ctx(struct axis2_op_ctx *op_ctx, 
-                        axis2_env_t **env, 
+                        const axis2_env_t *env, 
                         axis2_msg_ctx_t *msg_ctx)  
 {
     axis2_op_ctx_impl_t *op_ctx_impl = NULL;
@@ -394,7 +394,7 @@
 
 axis2_msg_ctx_t* AXIS2_CALL 
 axis2_op_ctx_get_msg_ctx(struct axis2_op_ctx *op_ctx, 
-                         axis2_env_t **env, 
+                         const axis2_env_t *env, 
                          axis2_char_t *message_id)
 {
     axis2_op_ctx_impl_t *op_ctx_impl = NULL;
@@ -423,7 +423,7 @@
  */
 axis2_bool_t AXIS2_CALL 
 axis2_op_ctx_get_is_complete(struct axis2_op_ctx *op_ctx, 
-                             axis2_env_t **env) 
+                             const axis2_env_t *env) 
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     return AXIS2_INTF_TO_IMPL(op_ctx)->is_complete;
@@ -431,7 +431,7 @@
 
 axis2_status_t AXIS2_CALL 
 axis2_op_ctx_set_complete(struct axis2_op_ctx *op_ctx, 
-                          axis2_env_t **env, 
+                          const axis2_env_t *env, 
                           axis2_bool_t is_complete) 
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
@@ -451,7 +451,7 @@
  */
 axis2_status_t AXIS2_CALL 
 axis2_op_ctx_cleanup(struct axis2_op_ctx *op_ctx, 
-                    axis2_env_t **env) 
+                    const axis2_env_t *env) 
 {
     axis2_op_ctx_impl_t *op_ctx_impl = NULL;
     axis2_hash_index_t *hi = NULL;
@@ -486,7 +486,7 @@
 
 axis2_status_t AXIS2_CALL 
 axis2_op_ctx_set_parent(struct axis2_op_ctx *op_ctx, 
-                        axis2_env_t **env, 
+                        const axis2_env_t *env, 
                         struct axis2_svc_ctx* svc_ctx) 
 {
     axis2_op_ctx_impl_t *op_ctx_impl = NULL;
@@ -518,7 +518,7 @@
 
 axis2_hash_t* AXIS2_CALL 
 axis2_op_ctx_get_msg_ctx_map(struct axis2_op_ctx *op_ctx, 
-                             axis2_env_t **env) 
+                             const axis2_env_t *env) 
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(op_ctx)->msg_ctx_map;

Modified: webservices/axis2/trunk/c/modules/core/context/svc_ctx.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/context/svc_ctx.c?rev=410566&r1=410565&r2=410566&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/context/svc_ctx.c (original)
+++ webservices/axis2/trunk/c/modules/core/context/svc_ctx.c Wed May 31 08:54:07 2006
@@ -40,46 +40,46 @@
 
 axis2_ctx_t* AXIS2_CALL 
 axis2_svc_ctx_get_base(struct axis2_svc_ctx *svc_ctx, 
-                       axis2_env_t **env);
+                       const axis2_env_t *env);
                        
 struct axis2_svc_grp_ctx * AXIS2_CALL 
 axis2_svc_ctx_get_parent(struct axis2_svc_ctx *svc_ctx, 
-                         axis2_env_t **env);
+                         const axis2_env_t *env);
                          
 axis2_status_t AXIS2_CALL 
 axis2_svc_ctx_free(struct axis2_svc_ctx *svc_ctx, 
-                   axis2_env_t **env);
+                   const axis2_env_t *env);
                    
 axis2_status_t AXIS2_CALL 
 axis2_svc_ctx_init(struct axis2_svc_ctx *svc_ctx, 
-                   axis2_env_t **env,
+                   const axis2_env_t *env,
                    axis2_conf_t *conf);
                    
 axis2_char_t* AXIS2_CALL 
 axis2_svc_ctx_get_svc_id(struct axis2_svc_ctx *svc_ctx, 
-                         axis2_env_t **env);
+                         const axis2_env_t *env);
                          
 axis2_svc_t* AXIS2_CALL 
 axis2_svc_ctx_get_svc(struct axis2_svc_ctx *svc_ctx, 
-                      axis2_env_t **env);
+                      const axis2_env_t *env);
                       
 axis2_status_t AXIS2_CALL
 axis2_svc_ctx_set_svc(axis2_svc_ctx_t *svc_ctx,
-                        axis2_env_t **env,
+                        const axis2_env_t *env,
                         axis2_svc_t *svc);
 
                         
 struct axis2_conf_ctx* AXIS2_CALL 
 axis2_svc_ctx_get_conf_ctx(struct axis2_svc_ctx *svc_ctx, 
-                           axis2_env_t **env);
+                           const axis2_env_t *env);
                            
 axis2_op_ctx_t* AXIS2_CALL 
 axis2_svc_ctx_create_op_ctx(struct axis2_svc_ctx *svc_ctx, 
-                            axis2_env_t **env, 
+                            const axis2_env_t *env, 
                             axis2_qname_t *qname);
 
 AXIS2_DECLARE(axis2_svc_ctx_t*)
-axis2_svc_ctx_create(axis2_env_t **env, 
+axis2_svc_ctx_create(const axis2_env_t *env, 
     axis2_svc_t *svc,
     struct axis2_svc_grp_ctx *svc_grp_ctx) 
 {
@@ -87,10 +87,10 @@
     
     AXIS2_ENV_CHECK(env, NULL);
     
-    svc_ctx_impl = AXIS2_MALLOC( (*env)->allocator, sizeof(axis2_svc_ctx_impl_t) );
+    svc_ctx_impl = AXIS2_MALLOC( env->allocator, sizeof(axis2_svc_ctx_impl_t) );
     if (!svc_ctx_impl)
     { 
-        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return NULL;        
     }
 
@@ -125,10 +125,10 @@
     
     /* initialize ops */
     
-    svc_ctx_impl->svc_ctx.ops  = AXIS2_MALLOC( (*env)->allocator, sizeof(axis2_svc_ctx_ops_t) );
+    svc_ctx_impl->svc_ctx.ops  = AXIS2_MALLOC( env->allocator, sizeof(axis2_svc_ctx_ops_t) );
     if (!svc_ctx_impl->svc_ctx.ops)
     {
-        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         axis2_svc_ctx_free(&(svc_ctx_impl->svc_ctx), env);
         return NULL;        
     }
@@ -148,7 +148,7 @@
 
 axis2_ctx_t* AXIS2_CALL 
 axis2_svc_ctx_get_base(struct axis2_svc_ctx *svc_ctx, 
-                       axis2_env_t **env)
+                       const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(svc_ctx)->base;
@@ -157,7 +157,7 @@
 
 struct axis2_svc_grp_ctx * AXIS2_CALL 
 axis2_svc_ctx_get_parent(struct axis2_svc_ctx *svc_ctx, 
-                         axis2_env_t **env) 
+                         const axis2_env_t *env) 
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(svc_ctx)->parent;
@@ -167,7 +167,7 @@
 
 axis2_status_t AXIS2_CALL 
 axis2_svc_ctx_free (struct axis2_svc_ctx *svc_ctx, 
-                    axis2_env_t **env)
+                    const axis2_env_t *env)
 {
     axis2_svc_ctx_impl_t *svc_ctx_impl = NULL;
     
@@ -177,7 +177,7 @@
     
     if (svc_ctx_impl->svc_ctx.ops)
     {
-        AXIS2_FREE((*env)->allocator, svc_ctx_impl->svc_ctx.ops);
+        AXIS2_FREE(env->allocator, svc_ctx_impl->svc_ctx.ops);
         svc_ctx_impl->svc_ctx.ops = NULL;
     }
     
@@ -187,7 +187,7 @@
         svc_ctx_impl->base = NULL;
     }    
     
-    AXIS2_FREE((*env)->allocator, svc_ctx_impl);
+    AXIS2_FREE(env->allocator, svc_ctx_impl);
     svc_ctx_impl = NULL;
     
     return AXIS2_SUCCESS;
@@ -199,7 +199,7 @@
  */
 axis2_status_t AXIS2_CALL 
 axis2_svc_ctx_init(struct axis2_svc_ctx *svc_ctx, 
-                   axis2_env_t **env,
+                   const axis2_env_t *env,
                    axis2_conf_t *conf) 
 {
     axis2_svc_ctx_impl_t *svc_ctx_impl = NULL;
@@ -222,7 +222,7 @@
  */
 axis2_char_t* AXIS2_CALL 
 axis2_svc_ctx_get_svc_id(struct axis2_svc_ctx *svc_ctx, 
-                         axis2_env_t **env) 
+                         const axis2_env_t *env) 
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(svc_ctx)->svc_id;
@@ -231,7 +231,7 @@
 
 axis2_svc_t* AXIS2_CALL 
 axis2_svc_ctx_get_svc(struct axis2_svc_ctx *svc_ctx, 
-                      axis2_env_t **env) 
+                      const axis2_env_t *env) 
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(svc_ctx)->svc;
@@ -239,13 +239,13 @@
 
 axis2_status_t AXIS2_CALL
 axis2_svc_ctx_set_svc(axis2_svc_ctx_t *svc_ctx,
-                        axis2_env_t **env,
+                        const axis2_env_t *env,
                         axis2_svc_t *svc)
 {
     axis2_svc_ctx_impl_t *svc_ctx_impl = NULL;
     
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, svc, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, svc, AXIS2_FAILURE);
     svc_ctx_impl = AXIS2_INTF_TO_IMPL(svc_ctx);
      
     svc_ctx_impl->svc = svc;
@@ -260,7 +260,7 @@
 
 struct axis2_conf_ctx* AXIS2_CALL 
 axis2_svc_ctx_get_conf_ctx(struct axis2_svc_ctx *svc_ctx, 
-                           axis2_env_t **env) 
+                           const axis2_env_t *env) 
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_SVC_GRP_CTX_GET_PARENT(AXIS2_INTF_TO_IMPL(svc_ctx)->parent, env);
@@ -268,7 +268,7 @@
 
 axis2_op_ctx_t* AXIS2_CALL 
 axis2_svc_ctx_create_op_ctx(struct axis2_svc_ctx *svc_ctx, 
-                            axis2_env_t **env, 
+                            const axis2_env_t *env, 
                             axis2_qname_t *qname) 
 {
     axis2_svc_ctx_impl_t *svc_ctx_impl = NULL;

Modified: webservices/axis2/trunk/c/modules/core/context/svc_grp_ctx.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/context/svc_grp_ctx.c?rev=410566&r1=410565&r2=410566&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/context/svc_grp_ctx.c (original)
+++ webservices/axis2/trunk/c/modules/core/context/svc_grp_ctx.c Wed May 31 08:54:07 2006
@@ -43,55 +43,55 @@
 
 axis2_ctx_t* AXIS2_CALL 
 axis2_svc_grp_ctx_get_base(struct axis2_svc_grp_ctx *svc_grp_ctx, 
-                           axis2_env_t **env);
+                           const axis2_env_t *env);
 
                            
 struct axis2_conf_ctx* AXIS2_CALL 
 axis2_svc_grp_ctx_get_parent(struct axis2_svc_grp_ctx *svc_grp_ctx, 
-                             axis2_env_t **env);
+                             const axis2_env_t *env);
 
                              
 axis2_status_t AXIS2_CALL 
 axis2_svc_grp_ctx_free(struct axis2_svc_grp_ctx *svc_grp_ctx, 
-                        axis2_env_t **env);
+                        const axis2_env_t *env);
 
                         
 axis2_status_t AXIS2_CALL 
 axis2_svc_grp_ctx_init(struct axis2_svc_grp_ctx *svc_grp_ctx, 
-                       axis2_env_t **env,
+                       const axis2_env_t *env,
                        axis2_conf_t *conf);
 
                        
 axis2_char_t* AXIS2_CALL 
 axis2_svc_grp_ctx_get_id(struct axis2_svc_grp_ctx *svc_grp_ctx, 
-                         axis2_env_t **env);
+                         const axis2_env_t *env);
 
                          
 axis2_status_t AXIS2_CALL 
 axis2_svc_grp_ctx_set_id(struct axis2_svc_grp_ctx *svc_grp_ctx, 
-                         axis2_env_t **env, 
+                         const axis2_env_t *env, 
                          axis2_char_t *id);
                          
 axis2_svc_ctx_t* AXIS2_CALL 
 axis2_svc_grp_ctx_get_svc_ctx(struct axis2_svc_grp_ctx *svc_grp_ctx, 
-                              axis2_env_t **env,
+                              const axis2_env_t *env,
                               axis2_char_t *svc_name);
 
                               
 axis2_status_t AXIS2_CALL 
 axis2_svc_grp_ctx_fill_svc_ctx_map(struct axis2_svc_grp_ctx *svc_grp_ctx, 
-                                   axis2_env_t **env);
+                                   const axis2_env_t *env);
 axis2_svc_grp_t* AXIS2_CALL 
 axis2_svc_grp_ctx_get_svc_grp(struct axis2_svc_grp_ctx *svc_grp_ctx, 
-                              axis2_env_t **env);
+                              const axis2_env_t *env);
                               
 axis2_hash_t* AXIS2_CALL 
 axis2_svc_grp_ctx_get_svc_ctx_map(struct axis2_svc_grp_ctx *svc_grp_ctx, 
-                                  axis2_env_t **env);
+                                  const axis2_env_t *env);
 
 
 AXIS2_DECLARE(axis2_svc_grp_ctx_t*)
-axis2_svc_grp_ctx_create(axis2_env_t **env, 
+axis2_svc_grp_ctx_create(const axis2_env_t *env, 
                         axis2_svc_grp_t *svc_grp, 
                          struct axis2_conf_ctx *conf_ctx) 
 {
@@ -99,10 +99,10 @@
     
     AXIS2_ENV_CHECK(env, NULL);
     
-    svc_grp_ctx_impl = AXIS2_MALLOC( (*env)->allocator, sizeof(axis2_svc_grp_ctx_impl_t) );
+    svc_grp_ctx_impl = AXIS2_MALLOC( env->allocator, sizeof(axis2_svc_grp_ctx_impl_t) );
     if (!svc_grp_ctx_impl)
     { 
-        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return NULL;        
     }
 
@@ -144,10 +144,10 @@
     
     /* initialize ops */
     
-    svc_grp_ctx_impl->svc_grp_ctx.ops  = AXIS2_MALLOC( (*env)->allocator, sizeof(axis2_svc_grp_ctx_ops_t) );
+    svc_grp_ctx_impl->svc_grp_ctx.ops  = AXIS2_MALLOC( env->allocator, sizeof(axis2_svc_grp_ctx_ops_t) );
     if (!svc_grp_ctx_impl->svc_grp_ctx.ops)
     {
-        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         axis2_svc_grp_ctx_free(&(svc_grp_ctx_impl->svc_grp_ctx), env);
         return NULL;        
     }
@@ -187,7 +187,7 @@
 
 axis2_ctx_t* AXIS2_CALL 
 axis2_svc_grp_ctx_get_base(struct axis2_svc_grp_ctx *svc_grp_ctx, 
-                           axis2_env_t **env)
+                           const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(svc_grp_ctx)->base;
@@ -196,7 +196,7 @@
 
 struct axis2_conf_ctx* AXIS2_CALL 
 axis2_svc_grp_ctx_get_parent(struct axis2_svc_grp_ctx *svc_grp_ctx, 
-                             axis2_env_t **env) 
+                             const axis2_env_t *env) 
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(svc_grp_ctx)->parent;
@@ -206,7 +206,7 @@
 
 axis2_status_t AXIS2_CALL 
 axis2_svc_grp_ctx_free (struct axis2_svc_grp_ctx *svc_grp_ctx, 
-                        axis2_env_t **env)
+                        const axis2_env_t *env)
 {
     axis2_svc_grp_ctx_impl_t *svc_grp_ctx_impl = NULL;
     
@@ -216,13 +216,13 @@
     
     if (svc_grp_ctx_impl->svc_grp_ctx.ops)
     {
-        AXIS2_FREE((*env)->allocator, svc_grp_ctx_impl->svc_grp_ctx.ops);
+        AXIS2_FREE(env->allocator, svc_grp_ctx_impl->svc_grp_ctx.ops);
         svc_grp_ctx_impl->svc_grp_ctx.ops = NULL;
     }
 
     if (svc_grp_ctx_impl->id)
     {
-        AXIS2_FREE((*env)->allocator, svc_grp_ctx_impl->id);
+        AXIS2_FREE(env->allocator, svc_grp_ctx_impl->id);
         svc_grp_ctx_impl->id = NULL;
     }
     
@@ -252,7 +252,7 @@
         svc_grp_ctx_impl->base = NULL;
     }
     
-    AXIS2_FREE((*env)->allocator, svc_grp_ctx_impl);
+    AXIS2_FREE(env->allocator, svc_grp_ctx_impl);
     svc_grp_ctx_impl = NULL;
     
     return AXIS2_SUCCESS;
@@ -264,7 +264,7 @@
  */
 axis2_status_t AXIS2_CALL 
 axis2_svc_grp_ctx_init(struct axis2_svc_grp_ctx *svc_grp_ctx, 
-                       axis2_env_t **env,
+                       const axis2_env_t *env,
                        axis2_conf_t *conf) 
 {
     axis2_svc_grp_ctx_impl_t *svc_grp_ctx_impl = NULL;
@@ -285,7 +285,7 @@
 
 axis2_char_t* AXIS2_CALL 
 axis2_svc_grp_ctx_get_id(struct axis2_svc_grp_ctx *svc_grp_ctx, 
-                        axis2_env_t **env) 
+                        const axis2_env_t *env) 
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(svc_grp_ctx)->id;
@@ -293,7 +293,7 @@
 
 axis2_status_t AXIS2_CALL 
 axis2_svc_grp_ctx_set_id(struct axis2_svc_grp_ctx *svc_grp_ctx, 
-                         axis2_env_t **env, 
+                         const axis2_env_t *env, 
                          axis2_char_t *id) 
 {
     axis2_svc_grp_ctx_impl_t *svc_grp_ctx_impl = NULL;
@@ -304,7 +304,7 @@
     
     if (svc_grp_ctx_impl->id)
     {
-        AXIS2_FREE((*env)->allocator, svc_grp_ctx_impl->id);
+        AXIS2_FREE(env->allocator, svc_grp_ctx_impl->id);
         svc_grp_ctx_impl->id = NULL;
     }
     
@@ -319,7 +319,7 @@
 /** if the servic name is foo:bar , you should pass only bar */
 axis2_svc_ctx_t* AXIS2_CALL 
 axis2_svc_grp_ctx_get_svc_ctx(struct axis2_svc_grp_ctx *svc_grp_ctx, 
-                              axis2_env_t **env,
+                              const axis2_env_t *env,
                               axis2_char_t *svc_name) 
 {
     axis2_svc_grp_ctx_impl_t *svc_grp_ctx_impl = NULL;
@@ -338,7 +338,7 @@
  */
 axis2_status_t AXIS2_CALL 
 axis2_svc_grp_ctx_fill_svc_ctx_map(struct axis2_svc_grp_ctx *svc_grp_ctx, 
-                                   axis2_env_t **env)
+                                   const axis2_env_t *env)
 {
     axis2_svc_grp_ctx_impl_t *svc_grp_ctx_impl = NULL;
     axis2_hash_index_t *hi = NULL;
@@ -376,7 +376,7 @@
 
 axis2_svc_grp_t* AXIS2_CALL 
 axis2_svc_grp_ctx_get_svc_grp(struct axis2_svc_grp_ctx *svc_grp_ctx, 
-                              axis2_env_t **env) 
+                              const axis2_env_t *env) 
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(svc_grp_ctx)->svc_grp;
@@ -384,7 +384,7 @@
 
 axis2_hash_t* AXIS2_CALL 
 axis2_svc_grp_ctx_get_svc_ctx_map(struct axis2_svc_grp_ctx *svc_grp_ctx, 
-                                  axis2_env_t **env)
+                                  const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(svc_grp_ctx)->svc_ctx_map;



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org