axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject svn commit: r410566 [6/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/c...
Date Wed, 31 May 2006 15:54:39 GMT
Modified: webservices/axis2/trunk/c/axiom/src/parser/guththila/guththila_xml_reader_wrapper.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/src/parser/guththila/guththila_xml_reader_wrapper.c?rev=410566&r1=410565&r2=410566&view=diff
==============================================================================
--- webservices/axis2/trunk/c/axiom/src/parser/guththila/guththila_xml_reader_wrapper.c (original)
+++ webservices/axis2/trunk/c/axiom/src/parser/guththila/guththila_xml_reader_wrapper.c Wed May 31 08:54:07 2006
@@ -26,84 +26,84 @@
 
 int AXIS2_CALL 
 guththila_xml_reader_wrapper_next(axis2_xml_reader_t *parser,
-                             axis2_env_t **env);
+                             const axis2_env_t *env);
 
         
 axis2_status_t AXIS2_CALL 
 guththila_xml_reader_wrapper_free(axis2_xml_reader_t *parser,
-                             axis2_env_t **env);
+                             const axis2_env_t *env);
            
         
 int AXIS2_CALL 
 guththila_xml_reader_wrapper_get_attribute_count(axis2_xml_reader_t *parser,
-                                            axis2_env_t **env);
+                                            const axis2_env_t *env);
         
 axis2_char_t* AXIS2_CALL 
 guththila_xml_reader_wrapper_get_attribute_name_by_number(axis2_xml_reader_t *parser,
-                                                     axis2_env_t **env,
+                                                     const axis2_env_t *env,
                                                      int i);
         
 axis2_char_t* AXIS2_CALL
 guththila_xml_reader_wrapper_get_attribute_prefix_by_number(axis2_xml_reader_t *parser,
-                                                       axis2_env_t **env,
+                                                       const axis2_env_t *env,
                                                        int i);
                                                      
 axis2_char_t* AXIS2_CALL
 guththila_xml_reader_wrapper_get_attribute_value_by_number(
                                                 axis2_xml_reader_t *parser,
-                                                axis2_env_t **env,
+                                                const axis2_env_t *env,
                                                 int i);
         
         
 axis2_char_t* AXIS2_CALL 
 guththila_xml_reader_wrapper_get_attribute_namespace_by_number(
                                                  axis2_xml_reader_t *parser,
-                                                 axis2_env_t **env,
+                                                 const axis2_env_t *env,
                                                  int i);
 
                                 
 axis2_char_t* AXIS2_CALL 
 guththila_xml_reader_wrapper_get_value(axis2_xml_reader_t *parser,
-                                  axis2_env_t **env);
+                                  const axis2_env_t *env);
                                                       
 int AXIS2_CALL 
 guththila_xml_reader_wrapper_get_namespace_count(axis2_xml_reader_t *parser,
-                                            axis2_env_t **env);
+                                            const axis2_env_t *env);
 
 axis2_char_t* AXIS2_CALL
 guththila_xml_reader_wrapper_get_namespace_uri_by_number(axis2_xml_reader_t *parser,
-                                                    axis2_env_t **env,
+                                                    const axis2_env_t *env,
                                                     int i);
                                                
 axis2_char_t* AXIS2_CALL
 guththila_xml_reader_wrapper_get_namespace_prefix_by_number(
                                                 axis2_xml_reader_t *parser,
-                                                axis2_env_t **env,
+                                                const axis2_env_t *env,
                                                 int i); 
                                                 
 axis2_char_t* AXIS2_CALL
 guththila_xml_reader_wrapper_get_prefix(axis2_xml_reader_t *parser,
-                                   axis2_env_t **env);   
+                                   const axis2_env_t *env);   
         
 axis2_char_t* AXIS2_CALL
 guththila_xml_reader_wrapper_get_name(axis2_xml_reader_t *parser,
-                                 axis2_env_t **env); 
+                                 const axis2_env_t *env); 
 
 axis2_char_t* AXIS2_CALL
 guththila_xml_reader_wrapper_get_pi_target(axis2_xml_reader_t *parser,
-                                      axis2_env_t **env);
+                                      const axis2_env_t *env);
 
 axis2_char_t* AXIS2_CALL
 guththila_xml_reader_wrapper_get_pi_data(axis2_xml_reader_t *parser,
-                                     axis2_env_t **env);
+                                     const axis2_env_t *env);
 
 axis2_char_t* AXIS2_CALL
 guththila_xml_reader_wrapper_get_dtd(axis2_xml_reader_t *parser,
-                                     axis2_env_t **env);                                     
+                                     const axis2_env_t *env);                                     
 
 axis2_status_t AXIS2_CALL
 guththila_xml_reader_wrapper_xml_free(axis2_xml_reader_t *parser,
-                                 axis2_env_t **env,
+                                 const axis2_env_t *env,
                                  void *data);
 
 
@@ -148,7 +148,7 @@
 /********************************************************************************/
 
 AXIS2_DECLARE(axis2_xml_reader_t *)
-axis2_xml_reader_create_for_file(axis2_env_t **env,
+axis2_xml_reader_create_for_file(const axis2_env_t *env,
                                   char* filename,
                                   const char *encoding)
 {
@@ -159,12 +159,12 @@
     
     AXIS2_ENV_CHECK(env, NULL);
     
-    guththila_impl = AXIS2_MALLOC((*env)->allocator,
+    guththila_impl = AXIS2_MALLOC(env->allocator,
                              sizeof(guththila_xml_reader_wrapper_impl_t));
     
     if(!guththila_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;
     }
     
@@ -176,8 +176,8 @@
     
     if(!(guththila_impl->reader))
     {
-        AXIS2_FREE((*env)->allocator,guththila_impl);
-        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_FREE(env->allocator,guththila_impl);
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return NULL;
     }    
     
@@ -185,8 +185,8 @@
                                             guththila_impl->reader);
     if(!guththila)
     {
-        AXIS2_FREE((*env)->allocator,guththila_impl);
-        AXIS2_ERROR_SET((*env)->error,AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_FREE(env->allocator,guththila_impl);
+        AXIS2_ERROR_SET(env->error,AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return NULL;
     }
     
@@ -195,12 +195,12 @@
     guththila_impl->guththila_env = guththila_env;
     guththila_impl->parser.ops = NULL;
     guththila_impl->parser.ops = (axis2_xml_reader_ops_t*)AXIS2_MALLOC(
-                                      (*env)->allocator,
+                                      env->allocator,
                                        sizeof(axis2_xml_reader_ops_t));
     if(!(guththila_impl->parser.ops))
     {   guththila_xml_pull_parser_free( guththila_env, guththila);
-        AXIS2_FREE((*env)->allocator,guththila_impl);
-        AXIS2_ERROR_SET((*env)->error,AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_FREE(env->allocator,guththila_impl);
+        AXIS2_ERROR_SET(env->error,AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return NULL;
     }
     
@@ -247,7 +247,7 @@
 
 
 AXIS2_DECLARE(axis2_xml_reader_t *)
-axis2_xml_reader_create_for_io(axis2_env_t **env,
+axis2_xml_reader_create_for_io(const axis2_env_t *env,
                                     int (*read_input_callback)(char *buffer,int size,void* ctx),
                                     int (*close_input_callback)(void *ctx),
                                     void *ctx,
@@ -260,12 +260,12 @@
     
     AXIS2_ENV_CHECK(env, NULL);
     
-    guththila_impl = AXIS2_MALLOC((*env)->allocator,
+    guththila_impl = AXIS2_MALLOC(env->allocator,
                              sizeof(guththila_xml_reader_wrapper_impl_t));
     
     if(!guththila_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;
     }
     
@@ -278,8 +278,8 @@
                                                    
     if(!(guththila_impl->reader))
     {
-        AXIS2_FREE((*env)->allocator,guththila_impl);
-        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_FREE(env->allocator,guththila_impl);
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return NULL;
     }    
     
@@ -287,8 +287,8 @@
                                                 guththila_impl->reader);
     if(!guththila)
     {
-        AXIS2_FREE((*env)->allocator,guththila_impl);
-        AXIS2_ERROR_SET((*env)->error,AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_FREE(env->allocator,guththila_impl);
+        AXIS2_ERROR_SET(env->error,AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return NULL;
     }
     
@@ -297,12 +297,12 @@
     guththila_impl->guththila_env = guththila_env;
     guththila_impl->parser.ops = NULL;
     guththila_impl->parser.ops = (axis2_xml_reader_ops_t*)AXIS2_MALLOC(
-                                      (*env)->allocator,
+                                      env->allocator,
                                        sizeof(axis2_xml_reader_ops_t));
     if(!(guththila_impl->parser.ops))
     {   guththila_xml_pull_parser_free( guththila_env, guththila);
-        AXIS2_FREE((*env)->allocator,guththila_impl);
-        AXIS2_ERROR_SET((*env)->error,AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_FREE(env->allocator,guththila_impl);
+        AXIS2_ERROR_SET(env->error,AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return NULL;
     }
     
@@ -349,7 +349,7 @@
 
 int AXIS2_CALL 
 guththila_xml_reader_wrapper_next(axis2_xml_reader_t *parser,
-                             axis2_env_t **env)
+                             const axis2_env_t *env)
 {
     int i =-1;
     AXIS2_ENV_CHECK(env, -1);
@@ -362,7 +362,7 @@
         
 axis2_status_t AXIS2_CALL 
 guththila_xml_reader_wrapper_free(axis2_xml_reader_t *parser,
-                             axis2_env_t **env)
+                             const axis2_env_t *env)
 {
     guththila_xml_reader_wrapper_impl_t *parser_impl = NULL;
     AXIS2_ENV_CHECK(env,AXIS2_FAILURE);
@@ -379,15 +379,15 @@
     guththila_environment_free(parser_impl->guththila_env);
     
     if(parser->ops)
-        AXIS2_FREE((*env)->allocator, parser->ops);
-    AXIS2_FREE((*env)->allocator, parser_impl);
+        AXIS2_FREE(env->allocator, parser->ops);
+    AXIS2_FREE(env->allocator, parser_impl);
     return AXIS2_SUCCESS;   
 }
            
         
 int AXIS2_CALL 
 guththila_xml_reader_wrapper_get_attribute_count(axis2_xml_reader_t *parser,
-                                            axis2_env_t **env)
+                                            const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK( env, AXIS2_FAILURE);
     return guththila_xml_pull_parser_get_attribute_count(
@@ -397,7 +397,7 @@
         
 axis2_char_t* AXIS2_CALL 
 guththila_xml_reader_wrapper_get_attribute_name_by_number(axis2_xml_reader_t *parser,
-                                                     axis2_env_t **env,
+                                                     const axis2_env_t *env,
                                                      int i)
 {
     AXIS2_ENV_CHECK(env, NULL);
@@ -410,7 +410,7 @@
         
 axis2_char_t* AXIS2_CALL
 guththila_xml_reader_wrapper_get_attribute_prefix_by_number(axis2_xml_reader_t *parser,
-                                                       axis2_env_t **env,
+                                                       const axis2_env_t *env,
                                                        int i)
 {
     AXIS2_ENV_CHECK(env, NULL);
@@ -424,7 +424,7 @@
                                                      
 axis2_char_t* AXIS2_CALL
 guththila_xml_reader_wrapper_get_attribute_value_by_number(axis2_xml_reader_t *parser,
-                                                      axis2_env_t **env,
+                                                      const axis2_env_t *env,
                                                       int i)
 {
     AXIS2_ENV_CHECK(env, NULL);
@@ -439,7 +439,7 @@
 axis2_char_t* AXIS2_CALL 
 guththila_xml_reader_wrapper_get_attribute_namespace_by_number(
                                                  axis2_xml_reader_t *parser,
-                                                 axis2_env_t **env,
+                                                 const axis2_env_t *env,
                                                  int i)
 {
     AXIS2_ENV_CHECK(env, NULL);
@@ -453,7 +453,7 @@
                                 
 axis2_char_t* AXIS2_CALL 
 guththila_xml_reader_wrapper_get_value(axis2_xml_reader_t *parser,
-                                  axis2_env_t **env)
+                                  const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK(env, NULL);
     return guththila_xml_pull_parser_get_value(
@@ -465,7 +465,7 @@
                                                       
 int AXIS2_CALL 
 guththila_xml_reader_wrapper_get_namespace_count(axis2_xml_reader_t *parser,
-                                            axis2_env_t **env)
+                                            const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     return guththila_xml_pull_parser_get_namespace_count(
@@ -477,7 +477,7 @@
 
 axis2_char_t* AXIS2_CALL
 guththila_xml_reader_wrapper_get_namespace_uri_by_number(axis2_xml_reader_t *parser,
-                                                    axis2_env_t **env,
+                                                    const axis2_env_t *env,
                                                     int i)
 {
     AXIS2_ENV_CHECK(env, NULL);
@@ -491,7 +491,7 @@
 axis2_char_t* AXIS2_CALL
 guththila_xml_reader_wrapper_get_namespace_prefix_by_number(
                                                 axis2_xml_reader_t *parser,
-                                                axis2_env_t **env,
+                                                const axis2_env_t *env,
                                                 int i)
 {
     AXIS2_ENV_CHECK(env, NULL);
@@ -504,7 +504,7 @@
                                                 
 axis2_char_t* AXIS2_CALL
 guththila_xml_reader_wrapper_get_prefix(axis2_xml_reader_t *parser,
-                                   axis2_env_t **env)
+                                   const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK(env, NULL);
     return guththila_xml_pull_parser_get_prefix(
@@ -516,7 +516,7 @@
         
 axis2_char_t* AXIS2_CALL
 guththila_xml_reader_wrapper_get_name(axis2_xml_reader_t *parser,
-                                 axis2_env_t **env)
+                                 const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK(env, NULL);
     return guththila_xml_pull_parser_get_name(
@@ -528,7 +528,7 @@
 
 axis2_char_t* AXIS2_CALL
 guththila_xml_reader_wrapper_get_pi_target(axis2_xml_reader_t *parser,
-                                      axis2_env_t **env)
+                                      const axis2_env_t *env)
 {   
     /* guththila_does not support pi's yet*/
     return NULL;   
@@ -536,7 +536,7 @@
 
 axis2_char_t* AXIS2_CALL
 guththila_xml_reader_wrapper_get_pi_data(axis2_xml_reader_t *parser,
-                                     axis2_env_t **env)
+                                     const axis2_env_t *env)
  {
     /* guththila_dose not support yet */
     return NULL;
@@ -544,7 +544,7 @@
 
 axis2_char_t* AXIS2_CALL
 guththila_xml_reader_wrapper_get_dtd(axis2_xml_reader_t *parser,
-                                     axis2_env_t **env)
+                                     const axis2_env_t *env)
 {
     printf("not implemented in guththila");
     return NULL;
@@ -552,11 +552,11 @@
  
 axis2_status_t AXIS2_CALL
 guththila_xml_reader_wrapper_xml_free(axis2_xml_reader_t *parser,
-                                 axis2_env_t **env,
+                                 const axis2_env_t *env,
                                  void *data)
 {
     AXIS2_ENV_CHECK( env, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, data, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, data, AXIS2_FAILURE);
     GUTHTHILA_FREE(AXIS2_INTF_TO_IMPL(parser)->guththila_env->allocator,
                    data);
     return AXIS2_SUCCESS;

Modified: webservices/axis2/trunk/c/axiom/src/parser/guththila/guththila_xml_writer_wrapper.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/src/parser/guththila/guththila_xml_writer_wrapper.c?rev=410566&r1=410565&r2=410566&view=diff
==============================================================================
--- webservices/axis2/trunk/c/axiom/src/parser/guththila/guththila_xml_writer_wrapper.c (original)
+++ webservices/axis2/trunk/c/axiom/src/parser/guththila/guththila_xml_writer_wrapper.c Wed May 31 08:54:07 2006
@@ -21,29 +21,29 @@
 /*********************** function prototypes ***********************************/
 axis2_status_t AXIS2_CALL 
 guththila_xml_writer_wrapper_free(axis2_xml_writer_t *writer,
-                                  axis2_env_t **env);
+                                  const axis2_env_t *env);
         
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_start_element(
                                     axis2_xml_writer_t *writer,
-                                    axis2_env_t **env,
+                                    const axis2_env_t *env,
                                     axis2_char_t *localname);
         
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_end_start_element(axis2_xml_writer_t *writer,
-                                               axis2_env_t **env);
+                                               const axis2_env_t *env);
         
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_start_element_with_namespace(
                                         axis2_xml_writer_t *writer,
-                                        axis2_env_t **env,
+                                        const axis2_env_t *env,
                                         axis2_char_t *localname,
                                         axis2_char_t *namespace_uri);
         
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_start_element_with_namespace_prefix(
                                         axis2_xml_writer_t *writer,
-                                        axis2_env_t **env,
+                                        const axis2_env_t *env,
                                         axis2_char_t *localname,
                                         axis2_char_t *namespace_uri,
                                         axis2_char_t *prefix);       
@@ -51,42 +51,42 @@
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_empty_element(
                                         axis2_xml_writer_t *writer,
-                                        axis2_env_t **env,
+                                        const axis2_env_t *env,
                                         axis2_char_t *localname);
         
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_empty_element_with_namespace(
                                         axis2_xml_writer_t *writer,
-                                        axis2_env_t **env,
+                                        const axis2_env_t *env,
                                         axis2_char_t *localname,
                                         axis2_char_t *namespace_uri);
 
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_empty_element_with_namespace_prefix(
                                         axis2_xml_writer_t *writer,
-                                        axis2_env_t **env,
+                                        const axis2_env_t *env,
                                         axis2_char_t *localname,
                                         axis2_char_t *namespace_uri,
                                         axis2_char_t *prefix);
 
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_end_element(axis2_xml_writer_t *writer,
-                                               axis2_env_t **env);
+                                               const axis2_env_t *env);
 
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_end_document(axis2_xml_writer_t *writer,
-                                               axis2_env_t **env);
+                                               const axis2_env_t *env);
 
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_attribute(axis2_xml_writer_t *writer,
-                                           axis2_env_t **env,
+                                           const axis2_env_t *env,
                                            axis2_char_t *localname,
                                            axis2_char_t *value);
                                                
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_attribute_with_namespace(
                                           axis2_xml_writer_t *writer,
-                                          axis2_env_t **env,
+                                          const axis2_env_t *env,
                                           axis2_char_t *localname,
                                           axis2_char_t *value,
                                           axis2_char_t *namespace_uri);
@@ -94,7 +94,7 @@
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_attribute_with_namespace_prefix(
                                           axis2_xml_writer_t *writer,
-                                          axis2_env_t **env,
+                                          const axis2_env_t *env,
                                           axis2_char_t *localname,
                                           axis2_char_t *value,
                                           axis2_char_t *namespace_uri,
@@ -102,7 +102,7 @@
                                           
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_namespace(axis2_xml_writer_t *writer,
-                                             axis2_env_t **env,
+                                             const axis2_env_t *env,
                                              axis2_char_t *prefix,
                                              axis2_char_t *namespace_uri);   
 
@@ -110,93 +110,93 @@
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_default_namespace
                                             (axis2_xml_writer_t *writer,
-                                             axis2_env_t **env,
+                                             const axis2_env_t *env,
                                              axis2_char_t *namespace_uri);  
 
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_comment(axis2_xml_writer_t *writer,
-                                           axis2_env_t **env,
+                                           const axis2_env_t *env,
                                            axis2_char_t *value);
                                            
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_processing_instruction(
                                            axis2_xml_writer_t *writer,
-                                           axis2_env_t **env,
+                                           const axis2_env_t *env,
                                            axis2_char_t *target);
                                            
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_processing_instruction_data(
                                            axis2_xml_writer_t *writer,
-                                           axis2_env_t **env,
+                                           const axis2_env_t *env,
                                            axis2_char_t *target,
                                            axis2_char_t *data);
                                            
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_cdata(axis2_xml_writer_t *writer,
-                                         axis2_env_t **env,
+                                         const axis2_env_t *env,
                                          axis2_char_t *data);
 
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_dtd(axis2_xml_writer_t *writer,
-                                         axis2_env_t **env,
+                                         const axis2_env_t *env,
                                          axis2_char_t *dtd); 
 
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_entity_ref(
                                          axis2_xml_writer_t *writer,
-                                         axis2_env_t **env,
+                                         const axis2_env_t *env,
                                          axis2_char_t *name); 
 
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_start_document(
                                          axis2_xml_writer_t *writer,
-                                         axis2_env_t **env);  
+                                         const axis2_env_t *env);  
 
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_start_document_with_version(
                                          axis2_xml_writer_t *writer,
-                                         axis2_env_t **env,
+                                         const axis2_env_t *env,
                                          axis2_char_t *version);   
 
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_start_document_with_version_encoding(
                                          axis2_xml_writer_t *writer,
-                                         axis2_env_t **env,
+                                         const axis2_env_t *env,
                                          axis2_char_t *encoding,
                                          axis2_char_t *version);
                                          
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_characters(
                                          axis2_xml_writer_t *writer,
-                                         axis2_env_t **env,
+                                         const axis2_env_t *env,
                                          axis2_char_t *text);   
 
 axis2_char_t* AXIS2_CALL
 guththila_xml_writer_wrapper_get_prefix(  axis2_xml_writer_t *writer,
-                                         axis2_env_t **env,
+                                         const axis2_env_t *env,
                                          axis2_char_t *uri);
 
 axis2_status_t AXIS2_CALL 
 guththila_xml_writer_wrapper_set_prefix(  axis2_xml_writer_t *writer,
-                                         axis2_env_t **env,
+                                         const axis2_env_t *env,
                                          axis2_char_t *prefix,
                                          axis2_char_t *uri);
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_set_default_prefix(
                                          axis2_xml_writer_t *writer,
-                                         axis2_env_t **env,
+                                         const axis2_env_t *env,
                                          axis2_char_t *uri);                                                 
 
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_encoded(
                                          axis2_xml_writer_t *writer,
-                                         axis2_env_t **env,
+                                         const axis2_env_t *env,
                                          axis2_char_t *text,
                                          int in_attr);
 
 void* AXIS2_CALL 
 guththila_xml_writer_wrapper_get_xml(axis2_xml_writer_t *writer,
-                                     axis2_env_t **env);                                         
+                                     const axis2_env_t *env);                                         
 
 
 
@@ -218,7 +218,7 @@
 /****************************** End macro **************************************/
 
 AXIS2_DECLARE(axis2_xml_writer_t *)
-axis2_xml_writer_create(axis2_env_t **env,
+axis2_xml_writer_create(const axis2_env_t *env,
                         axis2_char_t *filename,
                         axis2_char_t *encoding,
                         int is_prefix_default,
@@ -230,11 +230,11 @@
     
     AXIS2_ENV_CHECK(env, NULL);
     
-    writer_impl = (guththila_xml_writer_wrapper_impl_t *)AXIS2_MALLOC((*env)->allocator,
+    writer_impl = (guththila_xml_writer_wrapper_impl_t *)AXIS2_MALLOC(env->allocator,
                    sizeof(guththila_xml_writer_wrapper_impl_t));
     if(!writer_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;
     }
     
@@ -249,21 +249,21 @@
                 
     if(!(writer_impl->guththila_writer))
     {
-        AXIS2_FREE((*env)->allocator,writer_impl);
-        AXIS2_FREE((*env)->allocator,allocator);
-        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_FREE(env->allocator,writer_impl);
+        AXIS2_FREE(env->allocator,allocator);
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return NULL;
     }
     
     writer_impl->writer.ops = NULL;
-    writer_impl->writer.ops = (axis2_xml_writer_ops_t*)AXIS2_MALLOC((*env)->allocator,
+    writer_impl->writer.ops = (axis2_xml_writer_ops_t*)AXIS2_MALLOC(env->allocator,
                                     sizeof(axis2_xml_writer_ops_t));
     if(!(writer_impl->writer.ops))
     {
-        AXIS2_FREE((*env)->allocator,writer_impl);
-        AXIS2_FREE((*env)->allocator,allocator);
+        AXIS2_FREE(env->allocator,writer_impl);
+        AXIS2_FREE(env->allocator,allocator);
         
-        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return NULL;
     }
     /* ops */
@@ -329,7 +329,7 @@
 }
 
 AXIS2_DECLARE(axis2_xml_writer_t *)
-axis2_xml_writer_create_for_memory(axis2_env_t **env,
+axis2_xml_writer_create_for_memory(const axis2_env_t *env,
                                    axis2_char_t *encoding,
                                    int is_prefix_default,
                                    int compression,
@@ -341,7 +341,7 @@
 
 axis2_status_t AXIS2_CALL 
 guththila_xml_writer_wrapper_free(axis2_xml_writer_t *writer,
-                                  axis2_env_t **env)
+                                  const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK( env, AXIS2_FAILURE);
     if(AXIS2_INTF_TO_IMPL(writer)->guththila_writer)
@@ -352,20 +352,20 @@
     if(AXIS2_INTF_TO_IMPL(writer)->guththila_env)
         guththila_environment_free(AXIS2_INTF_TO_IMPL(writer)->guththila_env);
     if(writer->ops)
-        AXIS2_FREE((*env)->allocator, writer->ops);
-    AXIS2_FREE((*env)->allocator, AXIS2_INTF_TO_IMPL(writer));
+        AXIS2_FREE(env->allocator, writer->ops);
+    AXIS2_FREE(env->allocator, AXIS2_INTF_TO_IMPL(writer));
     return AXIS2_SUCCESS;
 }
         
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_start_element(
                                     axis2_xml_writer_t *writer,
-                                    axis2_env_t **env,
+                                    const axis2_env_t *env,
                                     axis2_char_t *localname)
 {
     int status = AXIS2_SUCCESS;
     AXIS2_ENV_CHECK( env, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, localname, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, localname, AXIS2_FAILURE);
     status = guththila_xml_stream_writer_write_start_element(
                     AXIS2_INTF_TO_IMPL(writer)->guththila_env,
                     AXIS2_INTF_TO_IMPL(writer)->guththila_writer,
@@ -375,7 +375,7 @@
 
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_end_start_element(axis2_xml_writer_t *writer,
-                                               axis2_env_t **env)
+                                               const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK( env, AXIS2_FAILURE);
     return guththila_xml_stream_writer_end_start_element(    
@@ -386,13 +386,13 @@
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_start_element_with_namespace(
                                         axis2_xml_writer_t *writer,
-                                        axis2_env_t **env,
+                                        const axis2_env_t *env,
                                         axis2_char_t *localname,
                                         axis2_char_t *namespace_uri)
 {
     AXIS2_ENV_CHECK( env, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, localname, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error,namespace_uri, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, localname, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error,namespace_uri, AXIS2_FAILURE);
     return guththila_xml_stream_writer_write_start_element_with_namespace(
                     AXIS2_INTF_TO_IMPL(writer)->guththila_env,
                     AXIS2_INTF_TO_IMPL(writer)->guththila_writer,
@@ -403,15 +403,15 @@
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_start_element_with_namespace_prefix(
                                         axis2_xml_writer_t *writer,
-                                        axis2_env_t **env,
+                                        const axis2_env_t *env,
                                         axis2_char_t *localname,
                                         axis2_char_t *namespace_uri,
                                         axis2_char_t *prefix)
 {
     AXIS2_ENV_CHECK( env, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, localname,  AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, namespace_uri, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, prefix, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, localname,  AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, namespace_uri, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, prefix, AXIS2_FAILURE);
     return guththila_xml_stream_writer_write_start_element_with_namespace_prefix(
                     AXIS2_INTF_TO_IMPL(writer)->guththila_env,
                     AXIS2_INTF_TO_IMPL(writer)->guththila_writer,
@@ -422,11 +422,11 @@
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_empty_element(
                                         axis2_xml_writer_t *writer,
-                                        axis2_env_t **env,
+                                        const axis2_env_t *env,
                                         axis2_char_t *localname)
 {
     AXIS2_ENV_CHECK( env, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, localname, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, localname, AXIS2_FAILURE);
     return guththila_xml_stream_writer_write_empty_element(
                     AXIS2_INTF_TO_IMPL(writer)->guththila_env,
                     AXIS2_INTF_TO_IMPL(writer)->guththila_writer, localname);
@@ -437,13 +437,13 @@
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_empty_element_with_namespace(
                                         axis2_xml_writer_t *writer,
-                                        axis2_env_t **env,
+                                        const axis2_env_t *env,
                                         axis2_char_t *localname,
                                         axis2_char_t *namespace_uri)
 {
     AXIS2_ENV_CHECK( env, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, localname, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, namespace_uri, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, localname, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, namespace_uri, AXIS2_FAILURE);
     return guththila_xml_stream_writer_write_empty_element_with_namespace(
                     AXIS2_INTF_TO_IMPL(writer)->guththila_env,
                     AXIS2_INTF_TO_IMPL(writer)->guththila_writer,
@@ -453,15 +453,15 @@
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_empty_element_with_namespace_prefix(
                                         axis2_xml_writer_t *writer,
-                                        axis2_env_t **env,
+                                        const axis2_env_t *env,
                                         axis2_char_t *localname,
                                         axis2_char_t *namespace_uri,
                                         axis2_char_t *prefix)
 {
     AXIS2_ENV_CHECK( env, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, localname, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, namespace_uri, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, prefix, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, localname, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, namespace_uri, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, prefix, AXIS2_FAILURE);
     
     return guththila_xml_stream_writer_write_empty_element_with_namespace_prefix(
                     AXIS2_INTF_TO_IMPL(writer)->guththila_env,
@@ -473,7 +473,7 @@
 
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_end_element(axis2_xml_writer_t *writer,
-                                               axis2_env_t **env)
+                                               const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK( env, AXIS2_FAILURE);
     return guththila_xml_stream_writer_write_end_element(
@@ -483,7 +483,7 @@
 
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_end_document(axis2_xml_writer_t *writer,
-                                               axis2_env_t **env)
+                                               const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK( env, AXIS2_FAILURE);
     return guththila_xml_stream_writer_write_end_document(
@@ -494,13 +494,13 @@
 
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_attribute(axis2_xml_writer_t *writer,
-                                           axis2_env_t **env,
+                                           const axis2_env_t *env,
                                            axis2_char_t *localname,
                                            axis2_char_t *value)
 {
     AXIS2_ENV_CHECK( env, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, localname, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, value, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, localname, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, value, AXIS2_FAILURE);
     return guththila_xml_stream_writer_write_attribute(
                     AXIS2_INTF_TO_IMPL(writer)->guththila_env,
                     AXIS2_INTF_TO_IMPL(writer)->guththila_writer,
@@ -513,15 +513,15 @@
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_attribute_with_namespace(
                                           axis2_xml_writer_t *writer,
-                                          axis2_env_t **env,
+                                          const axis2_env_t *env,
                                           axis2_char_t *localname,
                                           axis2_char_t *value,
                                           axis2_char_t *namespace_uri)
 {
     AXIS2_ENV_CHECK( env, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, localname,  AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, value, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, namespace_uri, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, localname,  AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, value, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, namespace_uri, AXIS2_FAILURE);
     
     return guththila_xml_stream_writer_write_attribute_with_namespace(
                     AXIS2_INTF_TO_IMPL(writer)->guththila_env,
@@ -532,17 +532,17 @@
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_attribute_with_namespace_prefix(
                                           axis2_xml_writer_t *writer,
-                                          axis2_env_t **env,
+                                          const axis2_env_t *env,
                                           axis2_char_t *localname,
                                           axis2_char_t *value,
                                           axis2_char_t *namespace_uri,
                                           axis2_char_t *prefix)
 {
     AXIS2_ENV_CHECK( env, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, localname, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, value, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, namespace_uri, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, prefix , AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, localname, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, value, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, namespace_uri, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, prefix , AXIS2_FAILURE);
     return guththila_xml_stream_writer_write_attribute_with_namespace_prefix(
                     AXIS2_INTF_TO_IMPL(writer)->guththila_env,
                     AXIS2_INTF_TO_IMPL(writer)->guththila_writer,
@@ -554,13 +554,13 @@
                                           
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_namespace(axis2_xml_writer_t *writer,
-                                             axis2_env_t **env,
+                                             const axis2_env_t *env,
                                              axis2_char_t *prefix,
                                              axis2_char_t *namespace_uri)
 {
     AXIS2_ENV_CHECK( env, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, namespace_uri, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, prefix , AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, namespace_uri, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, prefix , AXIS2_FAILURE);
     return guththila_xml_stream_writer_write_namespace(
                     AXIS2_INTF_TO_IMPL(writer)->guththila_env,
                     AXIS2_INTF_TO_IMPL(writer)->guththila_writer,
@@ -572,11 +572,11 @@
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_default_namespace
                                             (axis2_xml_writer_t *writer,
-                                             axis2_env_t **env,
+                                             const axis2_env_t *env,
                                              axis2_char_t *namespace_uri)
 {
     AXIS2_ENV_CHECK( env, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, namespace_uri, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, namespace_uri, AXIS2_FAILURE);
     return guththila_xml_stream_writer_write_default_namespace(
                     AXIS2_INTF_TO_IMPL(writer)->guththila_env,
                     AXIS2_INTF_TO_IMPL(writer)->guththila_writer,
@@ -586,11 +586,11 @@
 
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_comment(axis2_xml_writer_t *writer,
-                                           axis2_env_t **env,
+                                           const axis2_env_t *env,
                                            axis2_char_t *value)
 {
     AXIS2_ENV_CHECK( env, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, value, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, value, AXIS2_FAILURE);
     return guththila_xml_stream_writer_write_comment(
                     AXIS2_INTF_TO_IMPL(writer)->guththila_env,
                     AXIS2_INTF_TO_IMPL(writer)->guththila_writer,
@@ -602,11 +602,11 @@
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_processing_instruction(
                                            axis2_xml_writer_t *writer,
-                                           axis2_env_t **env,
+                                           const axis2_env_t *env,
                                            axis2_char_t *target)
 {   
     AXIS2_ENV_CHECK( env, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, target, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, target, AXIS2_FAILURE);
     return guththila_xml_stream_writer_write_processing_instruction(
                     AXIS2_INTF_TO_IMPL(writer)->guththila_env,
                     AXIS2_INTF_TO_IMPL(writer)->guththila_writer,
@@ -618,13 +618,13 @@
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_processing_instruction_data(
                                            axis2_xml_writer_t *writer,
-                                           axis2_env_t **env,
+                                           const axis2_env_t *env,
                                            axis2_char_t *target,
                                            axis2_char_t *data)
 {
     AXIS2_ENV_CHECK( env, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, target, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, data, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, target, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, data, AXIS2_FAILURE);
     return guththila_xml_stream_writer_write_processing_instruction_data(
                     AXIS2_INTF_TO_IMPL(writer)->guththila_env,
                     AXIS2_INTF_TO_IMPL(writer)->guththila_writer,
@@ -634,11 +634,11 @@
                                            
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_cdata(axis2_xml_writer_t *writer,
-                                         axis2_env_t **env,
+                                         const axis2_env_t *env,
                                          axis2_char_t *data)
 {
     AXIS2_ENV_CHECK( env, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, data, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, data, AXIS2_FAILURE);
     return guththila_xml_stream_writer_write_cdata(
                     AXIS2_INTF_TO_IMPL(writer)->guththila_env,
                     AXIS2_INTF_TO_IMPL(writer)->guththila_writer,
@@ -648,11 +648,11 @@
 
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_dtd(axis2_xml_writer_t *writer,
-                                         axis2_env_t **env,
+                                         const axis2_env_t *env,
                                          axis2_char_t *dtd)
 {
     AXIS2_ENV_CHECK( env, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, dtd, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, dtd, AXIS2_FAILURE);
     return guththila_xml_stream_writer_write_dtd(
                     AXIS2_INTF_TO_IMPL(writer)->guththila_env,
                     AXIS2_INTF_TO_IMPL(writer)->guththila_writer,
@@ -662,11 +662,11 @@
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_entity_ref(
                                          axis2_xml_writer_t *writer,
-                                         axis2_env_t **env,
+                                         const axis2_env_t *env,
                                          axis2_char_t *name)
 {
     AXIS2_ENV_CHECK( env, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, name, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, name, AXIS2_FAILURE);
     return guththila_xml_stream_writer_write_entity_ref(
                     AXIS2_INTF_TO_IMPL(writer)->guththila_env,
                     AXIS2_INTF_TO_IMPL(writer)->guththila_writer,
@@ -677,7 +677,7 @@
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_start_document(
                                          axis2_xml_writer_t *writer,
-                                         axis2_env_t **env)
+                                         const axis2_env_t *env)
 {
      AXIS2_ENV_CHECK( env, AXIS2_FAILURE);
      return guththila_xml_stream_writer_write_start_document(
@@ -688,11 +688,11 @@
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_start_document_with_version(
                                          axis2_xml_writer_t *writer,
-                                         axis2_env_t **env,
+                                         const axis2_env_t *env,
                                          axis2_char_t *version)
 {
     AXIS2_ENV_CHECK( env, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, version, AXIS2_FAILURE); 
+    AXIS2_PARAM_CHECK(env->error, version, AXIS2_FAILURE); 
     return guththila_xml_stream_writer_write_start_document_with_version(
                     AXIS2_INTF_TO_IMPL(writer)->guththila_env,
                     AXIS2_INTF_TO_IMPL(writer)->guththila_writer,
@@ -702,13 +702,13 @@
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_start_document_with_version_encoding(
                                          axis2_xml_writer_t *writer,
-                                         axis2_env_t **env,
+                                         const axis2_env_t *env,
                                          axis2_char_t *encoding,
                                          axis2_char_t *version)
 {
     AXIS2_ENV_CHECK( env, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, encoding, AXIS2_FAILURE); 
-    AXIS2_PARAM_CHECK((*env)->error, version, AXIS2_FAILURE); 
+    AXIS2_PARAM_CHECK(env->error, encoding, AXIS2_FAILURE); 
+    AXIS2_PARAM_CHECK(env->error, version, AXIS2_FAILURE); 
     
     return guththila_xml_stream_writer_write_start_document_with_version_encoding(
                     AXIS2_INTF_TO_IMPL(writer)->guththila_env,
@@ -720,11 +720,11 @@
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_characters(
                                          axis2_xml_writer_t *writer,
-                                         axis2_env_t **env,
+                                         const axis2_env_t *env,
                                          axis2_char_t *text)
 {
     AXIS2_ENV_CHECK( env, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, text, AXIS2_FAILURE); 
+    AXIS2_PARAM_CHECK(env->error, text, AXIS2_FAILURE); 
     return guththila_xml_stream_writer_write_characters(
                     AXIS2_INTF_TO_IMPL(writer)->guththila_env,
                     AXIS2_INTF_TO_IMPL(writer)->guththila_writer,
@@ -733,11 +733,11 @@
 
 axis2_char_t* AXIS2_CALL
 guththila_xml_writer_wrapper_get_prefix(  axis2_xml_writer_t *writer,
-                                         axis2_env_t **env,
+                                         const axis2_env_t *env,
                                          axis2_char_t *uri)
 {
     AXIS2_ENV_CHECK( env, NULL);
-    AXIS2_PARAM_CHECK((*env)->error, uri, NULL);
+    AXIS2_PARAM_CHECK(env->error, uri, NULL);
     return guththila_xml_stream_writer_get_prefix(
                     AXIS2_INTF_TO_IMPL(writer)->guththila_env,
                     AXIS2_INTF_TO_IMPL(writer)->guththila_writer, uri);
@@ -748,13 +748,13 @@
 
 axis2_status_t AXIS2_CALL 
 guththila_xml_writer_wrapper_set_prefix( axis2_xml_writer_t *writer,
-                                         axis2_env_t **env,
+                                         const axis2_env_t *env,
                                          axis2_char_t *prefix,
                                          axis2_char_t *uri)
 {
     AXIS2_ENV_CHECK( env, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, prefix, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, uri, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, prefix, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, uri, AXIS2_FAILURE);
     return guththila_xml_stream_writer_set_prefix(
                     AXIS2_INTF_TO_IMPL(writer)->guththila_env,
                     AXIS2_INTF_TO_IMPL(writer)->guththila_writer, prefix, uri);
@@ -763,11 +763,11 @@
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_set_default_prefix(
                                          axis2_xml_writer_t *writer,
-                                         axis2_env_t **env,
+                                         const axis2_env_t *env,
                                          axis2_char_t *uri)
 {
     AXIS2_ENV_CHECK( env, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, uri, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, uri, AXIS2_FAILURE);
     return guththila_xml_stream_writer_set_default_prefix(
                     AXIS2_INTF_TO_IMPL(writer)->guththila_env,
                     AXIS2_INTF_TO_IMPL(writer)->guththila_writer, uri);
@@ -776,12 +776,12 @@
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_encoded(
                                          axis2_xml_writer_t *writer,
-                                         axis2_env_t **env,
+                                         const axis2_env_t *env,
                                          axis2_char_t *text,
                                          int in_attr)
 {
     AXIS2_ENV_CHECK( env, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, text, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, text, AXIS2_FAILURE);
     return guththila_xml_stream_writer_write_encoded(
                     AXIS2_INTF_TO_IMPL(writer)->guththila_env,
                     AXIS2_INTF_TO_IMPL(writer)->guththila_writer, text, in_attr);
@@ -789,7 +789,7 @@
 
 void* AXIS2_CALL 
 guththila_xml_writer_wrapper_get_xml(axis2_xml_writer_t *writer,
-                                     axis2_env_t **env)
+                                     const axis2_env_t *env)
 {
     return (void*)NULL;
 }

Modified: webservices/axis2/trunk/c/axiom/src/parser/libxml2/libxml2_reader_wrapper.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/src/parser/libxml2/libxml2_reader_wrapper.c?rev=410566&r1=410565&r2=410566&view=diff
==============================================================================
--- webservices/axis2/trunk/c/axiom/src/parser/libxml2/libxml2_reader_wrapper.c (original)
+++ webservices/axis2/trunk/c/axiom/src/parser/libxml2/libxml2_reader_wrapper.c Wed May 31 08:54:07 2006
@@ -30,94 +30,94 @@
  
 int AXIS2_CALL
 axis2_libxml2_reader_wrapper_next(axis2_xml_reader_t *parser,
-                               axis2_env_t **env);
+                               const axis2_env_t *env);
                  
 axis2_status_t AXIS2_CALL 
 axis2_libxml2_reader_wrapper_free(axis2_xml_reader_t *parser,
-                           axis2_env_t **env);
+                           const axis2_env_t *env);
            
 int AXIS2_CALL
 axis2_libxml2_reader_wrapper_get_attribute_count(axis2_xml_reader_t *parser,
-                                          axis2_env_t **env);
+                                          const axis2_env_t *env);
         
 axis2_char_t* AXIS2_CALL
 axis2_libxml2_reader_wrapper_get_attribute_name_by_number(axis2_xml_reader_t *parser,
-                                                   axis2_env_t **env,
+                                                   const axis2_env_t *env,
                                                    int i);
 axis2_char_t* AXIS2_CALL
 axis2_libxml2_reader_wrapper_get_attribute_prefix_by_number(axis2_xml_reader_t *parser,
-                                                     axis2_env_t **env,
+                                                     const axis2_env_t *env,
                                                      int i);
 axis2_char_t* AXIS2_CALL
 axis2_libxml2_reader_wrapper_get_attribute_value_by_number(axis2_xml_reader_t *parser,
-                                                     axis2_env_t **env,
+                                                     const axis2_env_t *env,
                                                      int i);
         
 axis2_char_t* AXIS2_CALL
 axis2_libxml2_reader_wrapper_get_attribute_namespace_by_number
                                                     (axis2_xml_reader_t *parser,
-                                                     axis2_env_t **env,
+                                                     const axis2_env_t *env,
                                                      int i);
 
 axis2_char_t* AXIS2_CALL
 axis2_libxml2_reader_wrapper_get_value(axis2_xml_reader_t *parser,
-                                axis2_env_t **env);
+                                const axis2_env_t *env);
                                                       
 int AXIS2_CALL 
 axis2_libxml2_reader_wrapper_get_namespace_count(axis2_xml_reader_t *parser,
-                                          axis2_env_t **env);
+                                          const axis2_env_t *env);
 axis2_char_t* AXIS2_CALL
 axis2_libxml2_reader_wrapper_get_namespace_uri_by_number(axis2_xml_reader_t *parser,
-                                                  axis2_env_t **env,
+                                                  const axis2_env_t *env,
                                                   int i);
                                                
 axis2_char_t* AXIS2_CALL
 axis2_libxml2_reader_wrapper_get_namespace_prefix_by_number(axis2_xml_reader_t *parser,
-                                                	 axis2_env_t **env,
+                                                	 const axis2_env_t *env,
                                                 	 int i); 
                                                 
 axis2_char_t* AXIS2_CALL
 axis2_libxml2_reader_wrapper_get_prefix(axis2_xml_reader_t *parser,
-                                 axis2_env_t **env);   
+                                 const axis2_env_t *env);   
         
 axis2_char_t* AXIS2_CALL
 axis2_libxml2_reader_wrapper_get_name(axis2_xml_reader_t *parser,
-                               axis2_env_t **env); 
+                               const axis2_env_t *env); 
 
 axis2_char_t* AXIS2_CALL
 axis2_libxml2_reader_wrapper_get_pi_target(axis2_xml_reader_t *parser,
-                                    axis2_env_t **env);
+                                    const axis2_env_t *env);
 
 axis2_char_t* AXIS2_CALL
 axis2_libxml2_reader_wrapper_get_pi_data(axis2_xml_reader_t *parser,
-                                  axis2_env_t **env);
+                                  const axis2_env_t *env);
 axis2_char_t* AXIS2_CALL
 axis2_libxml2_reader_wrapper_get_dtd(axis2_xml_reader_t *parser,
-                                  axis2_env_t **env);                                  
+                                  const axis2_env_t *env);                                  
                                   
 axis2_status_t AXIS2_CALL
 axis2_libxml2_reader_wrapper_xml_free(axis2_xml_reader_t *parser,
-                               axis2_env_t **env,
+                               const axis2_env_t *env,
                                void *data);
                                
 axis2_char_t* AXIS2_CALL
 axis2_libxml2_reader_wrapper_get_char_set_encoding(axis2_xml_reader_t *parser,
-                                           axis2_env_t **env);
+                                           const axis2_env_t *env);
                                            
 axis2_char_t* AXIS2_CALL
 axis2_libxml2_reader_wrapper_get_namespace_uri
                    (axis2_xml_reader_t *parser,
-                    axis2_env_t **env);
+                    const axis2_env_t *env);
                     
 axis2_char_t* AXIS2_CALL
 axis2_libxml2_reader_wrapper_get_namespace_uri_by_prefix
                            (axis2_xml_reader_t *parser,
-                            axis2_env_t **env,
+                            const axis2_env_t *env,
                             axis2_char_t *prefix);                                                                          
 
 axis2_status_t 
 axis2_libxml2_reader_wrapper_fill_maps(axis2_xml_reader_t *parser,
-                                            axis2_env_t **env);
+                                            const axis2_env_t *env);
                                             
 void 
 axis2_libxml2_reader_wrapper_error_handler(void *arg, 
@@ -288,48 +288,48 @@
 
 /*******************************************************************************/
 AXIS2_DECLARE(axis2_xml_reader_t *)
-axis2_xml_reader_create_for_file(axis2_env_t **env,
+axis2_xml_reader_create_for_file(const axis2_env_t *env,
                                   char *filename,
                                   const axis2_char_t *encoding)
 {
     
 	axis2_libxml2_reader_wrapper_impl_t *wrapper_impl = NULL;
     AXIS2_ENV_CHECK( env, NULL);
-    AXIS2_PARAM_CHECK((*env)->error, filename, NULL);
+    AXIS2_PARAM_CHECK(env->error, filename, NULL);
     
-    wrapper_impl = (axis2_libxml2_reader_wrapper_impl_t*)AXIS2_MALLOC((*env)->allocator,
+    wrapper_impl = (axis2_libxml2_reader_wrapper_impl_t*)AXIS2_MALLOC(env->allocator,
          sizeof(axis2_libxml2_reader_wrapper_impl_t));
     if(!wrapper_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;
     }
     
     wrapper_impl->reader =  xmlNewTextReaderFilename(filename);
     if(!(wrapper_impl->reader))
     {
-        AXIS2_FREE((*env)->allocator, wrapper_impl);
-        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_CREATING_XML_STREAM_READER, AXIS2_FAILURE);
+        AXIS2_FREE(env->allocator, wrapper_impl);
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_CREATING_XML_STREAM_READER, AXIS2_FAILURE);
         return NULL;
     }
 
     xmlTextReaderSetErrorHandler(wrapper_impl->reader, 
         (xmlTextReaderErrorFunc)axis2_libxml2_reader_wrapper_error_handler, 
-        (*env));
+        env);
     wrapper_impl->current_event = -1;
     
     axis2_libxml2_reader_wrapper_init_map(wrapper_impl);
 	
     
     wrapper_impl->parser.ops = NULL;
-    wrapper_impl->parser.ops = (axis2_xml_reader_ops_t*)AXIS2_MALLOC((*env)->allocator,
+    wrapper_impl->parser.ops = (axis2_xml_reader_ops_t*)AXIS2_MALLOC(env->allocator,
                                 sizeof(axis2_xml_reader_ops_t));
     
     if(!(wrapper_impl->parser.ops))
     {
         xmlFreeTextReader(wrapper_impl->reader);
-        AXIS2_FREE((*env)->allocator, wrapper_impl);
-        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_FREE(env->allocator, wrapper_impl);
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return NULL;
     }
 	/* ops */
@@ -340,7 +340,7 @@
 /************** create function for io callback function **********************/
 
 AXIS2_DECLARE(axis2_xml_reader_t *)
-axis2_xml_reader_create_for_io(axis2_env_t **env,
+axis2_xml_reader_create_for_io(const axis2_env_t *env,
                                     AXIS2_READ_INPUT_CALLBACK read_input_callback,
                                     AXIS2_CLOSE_INPUT_CALLBACK close_input_callback,
                                     void* ctx,
@@ -354,11 +354,11 @@
     if(!read_input_callback)
         return NULL;
         
-    wrapper_impl = (axis2_libxml2_reader_wrapper_impl_t*)AXIS2_MALLOC((*env)->allocator,
+    wrapper_impl = (axis2_libxml2_reader_wrapper_impl_t*)AXIS2_MALLOC(env->allocator,
          sizeof(axis2_libxml2_reader_wrapper_impl_t));
     if(!wrapper_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;   
     }
     wrapper_impl->close_input_callback = NULL;
@@ -380,14 +380,14 @@
     }
     if(!(wrapper_impl->reader))
     {
-        AXIS2_FREE((*env)->allocator, wrapper_impl);
-        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_CREATING_XML_STREAM_READER, AXIS2_FAILURE);
+        AXIS2_FREE(env->allocator, wrapper_impl);
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_CREATING_XML_STREAM_READER, AXIS2_FAILURE);
         return NULL;
     }
 
     xmlTextReaderSetErrorHandler(wrapper_impl->reader, 
          (xmlTextReaderErrorFunc)axis2_libxml2_reader_wrapper_error_handler, 
-         (*env));
+         env);
 
     wrapper_impl->current_event = -1;
     
@@ -395,14 +395,14 @@
 	
     
     wrapper_impl->parser.ops = NULL;
-    wrapper_impl->parser.ops = (axis2_xml_reader_ops_t*)AXIS2_MALLOC((*env)->allocator,
+    wrapper_impl->parser.ops = (axis2_xml_reader_ops_t*)AXIS2_MALLOC(env->allocator,
                                 sizeof(axis2_xml_reader_ops_t));
     
     if(!(wrapper_impl->parser.ops))
     {
         xmlFreeTextReader(wrapper_impl->reader);
-        AXIS2_FREE((*env)->allocator, wrapper_impl);
-        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_FREE(env->allocator, wrapper_impl);
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return NULL;
     }
 
@@ -412,7 +412,7 @@
 
 /***************** create function for character buffer or xml doc ************************/
 AXIS2_DECLARE(axis2_xml_reader_t *)
-axis2_xml_reader_create_for_memory(axis2_env_t **env,
+axis2_xml_reader_create_for_memory(const axis2_env_t *env,
                                   void *container,
                                   int size,
                                   const axis2_char_t *encoding,
@@ -421,13 +421,13 @@
 	axis2_libxml2_reader_wrapper_impl_t *wrapper_impl = NULL;
     
     AXIS2_ENV_CHECK( env, NULL);
-    AXIS2_PARAM_CHECK((*env)->error, container , NULL);
+    AXIS2_PARAM_CHECK(env->error, container , NULL);
         
-    wrapper_impl = (axis2_libxml2_reader_wrapper_impl_t*)AXIS2_MALLOC((*env)->allocator,
+    wrapper_impl = (axis2_libxml2_reader_wrapper_impl_t*)AXIS2_MALLOC(env->allocator,
          sizeof(axis2_libxml2_reader_wrapper_impl_t));
     if(!wrapper_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;   
     }
     wrapper_impl->close_input_callback = NULL;
@@ -445,15 +445,15 @@
 	}
 	else 
 	{
-        AXIS2_FREE((*env)->allocator, wrapper_impl);
-		AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_XML_PARSER_INVALID_MEM_TYPE, AXIS2_FAILURE);
+        AXIS2_FREE(env->allocator, wrapper_impl);
+		AXIS2_ERROR_SET(env->error, AXIS2_ERROR_XML_PARSER_INVALID_MEM_TYPE, AXIS2_FAILURE);
 		return NULL;
 	}
 
     if(!(wrapper_impl->reader))
     {
-        AXIS2_FREE((*env)->allocator, wrapper_impl);
-        AXIS2_ERROR_SET((*env)->error, 
+        AXIS2_FREE(env->allocator, wrapper_impl);
+        AXIS2_ERROR_SET(env->error, 
 				AXIS2_ERROR_CREATING_XML_STREAM_READER, AXIS2_FAILURE);
         return NULL;
     }
@@ -462,7 +462,7 @@
 	{
     	xmlTextReaderSetErrorHandler(wrapper_impl->reader, 
          	(xmlTextReaderErrorFunc)axis2_libxml2_reader_wrapper_error_handler, 
-         	(*env));
+         	env);
 	}
 
     wrapper_impl->current_event = -1;
@@ -470,14 +470,14 @@
     axis2_libxml2_reader_wrapper_init_map(wrapper_impl);
     
     wrapper_impl->parser.ops = NULL;
-    wrapper_impl->parser.ops = (axis2_xml_reader_ops_t*)AXIS2_MALLOC((*env)->allocator,
+    wrapper_impl->parser.ops = (axis2_xml_reader_ops_t*)AXIS2_MALLOC(env->allocator,
                                 sizeof(axis2_xml_reader_ops_t));
     
     if(!(wrapper_impl->parser.ops))
     {
         xmlFreeTextReader(wrapper_impl->reader);
-        AXIS2_FREE((*env)->allocator, wrapper_impl);
-        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_FREE(env->allocator, wrapper_impl);
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return NULL;
     }
 
@@ -489,7 +489,7 @@
 
 int AXIS2_CALL
 axis2_libxml2_reader_wrapper_next(axis2_xml_reader_t *parser,
-                               axis2_env_t **env)
+                               const axis2_env_t *env)
 {
     int ret_val = 0;
     int node = 2;
@@ -510,11 +510,11 @@
     ret_val = xmlTextReaderRead(parser_impl->reader);
     if(ret_val == 0)
     {
-        AXIS2_LOG_DEBUG((*env)->log, AXIS2_LOG_SI, "xml stream is over ");
+        AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, "xml stream is over ");
     }
     if(ret_val == -1)
     {
-        AXIS2_LOG_ERROR((*env)->log, AXIS2_LOG_SI, " error occured in reading xml stream ");
+        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, " error occured in reading xml stream ");
         return -1;
     }
    
@@ -543,7 +543,7 @@
                  
 axis2_status_t AXIS2_CALL 
 axis2_libxml2_reader_wrapper_free(axis2_xml_reader_t *parser,
-                           axis2_env_t **env)
+                           const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     if(AXIS2_INTF_TO_IMPL(parser)->reader)
@@ -553,16 +553,16 @@
     }
     if(parser->ops)
     {
-        AXIS2_FREE((*env)->allocator, parser->ops);
+        AXIS2_FREE(env->allocator, parser->ops);
         parser->ops = NULL;
     }
-    AXIS2_FREE((*env)->allocator, AXIS2_INTF_TO_IMPL(parser));
+    AXIS2_FREE(env->allocator, AXIS2_INTF_TO_IMPL(parser));
     return AXIS2_SUCCESS;   
 }
            
 int AXIS2_CALL
 axis2_libxml2_reader_wrapper_get_attribute_count(axis2_xml_reader_t *parser,
-                                          axis2_env_t **env)
+                                          const axis2_env_t *env)
 {
     axis2_libxml2_reader_wrapper_impl_t *parser_impl=NULL;
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
@@ -576,7 +576,7 @@
         
 axis2_char_t* AXIS2_CALL
 axis2_libxml2_reader_wrapper_get_attribute_name_by_number(axis2_xml_reader_t *parser,
-                                                   axis2_env_t **env,
+                                                   const axis2_env_t *env,
                                                    int i)
 {
     axis2_libxml2_reader_wrapper_impl_t *parser_impl;
@@ -598,7 +598,7 @@
 
 axis2_char_t* AXIS2_CALL
 axis2_libxml2_reader_wrapper_get_attribute_prefix_by_number(axis2_xml_reader_t *parser,
-                                                     axis2_env_t **env,
+                                                     const axis2_env_t *env,
                                                      int i)
 {
     axis2_libxml2_reader_wrapper_impl_t *parser_impl = NULL;
@@ -621,7 +621,7 @@
 
 axis2_char_t* AXIS2_CALL
 axis2_libxml2_reader_wrapper_get_attribute_value_by_number(axis2_xml_reader_t *parser,
-                                                     axis2_env_t **env,
+                                                     const axis2_env_t *env,
                                                      int i)
 {
     
@@ -645,7 +645,7 @@
 axis2_char_t* AXIS2_CALL
 axis2_libxml2_reader_wrapper_get_attribute_namespace_by_number
                                                     (axis2_xml_reader_t *parser,
-                                                     axis2_env_t **env,
+                                                     const axis2_env_t *env,
                                                      int i)
 {
     axis2_libxml2_reader_wrapper_impl_t *parser_impl;
@@ -669,7 +669,7 @@
 
 axis2_char_t* AXIS2_CALL
 axis2_libxml2_reader_wrapper_get_value(axis2_xml_reader_t *parser,
-                                axis2_env_t **env)
+                                const axis2_env_t *env)
 {
     axis2_libxml2_reader_wrapper_impl_t *parser_impl = NULL;
 
@@ -681,7 +681,7 @@
                                                       
 int AXIS2_CALL 
 axis2_libxml2_reader_wrapper_get_namespace_count(axis2_xml_reader_t *parser,
-                                          axis2_env_t **env)
+                                          const axis2_env_t *env)
 {
     axis2_libxml2_reader_wrapper_impl_t *parser_impl = NULL;
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
@@ -696,7 +696,7 @@
 
 axis2_char_t* AXIS2_CALL
 axis2_libxml2_reader_wrapper_get_namespace_uri_by_number(axis2_xml_reader_t *parser,
-                                                  axis2_env_t **env,
+                                                  const axis2_env_t *env,
                                                   int i)
 {
     axis2_libxml2_reader_wrapper_impl_t *parser_impl = NULL;
@@ -719,7 +719,7 @@
                                                
 axis2_char_t* AXIS2_CALL
 axis2_libxml2_reader_wrapper_get_namespace_prefix_by_number(axis2_xml_reader_t *parser,
-                                                	 axis2_env_t **env,
+                                                	 const axis2_env_t *env,
                                                 	 int i)
 {
     axis2_libxml2_reader_wrapper_impl_t *parser_impl = NULL;
@@ -745,7 +745,7 @@
                                                 
 axis2_char_t* AXIS2_CALL
 axis2_libxml2_reader_wrapper_get_prefix(axis2_xml_reader_t *parser,
-                                 axis2_env_t **env)
+                                 const axis2_env_t *env)
 {
     axis2_libxml2_reader_wrapper_impl_t *parser_impl = NULL;
     AXIS2_ENV_CHECK( env, NULL);
@@ -756,7 +756,7 @@
         
 axis2_char_t* AXIS2_CALL
 axis2_libxml2_reader_wrapper_get_name(axis2_xml_reader_t *parser,
-                               axis2_env_t **env)
+                               const axis2_env_t *env)
 {
     axis2_libxml2_reader_wrapper_impl_t *parser_impl = NULL;
     AXIS2_ENV_CHECK( env, NULL);
@@ -768,7 +768,7 @@
 
 axis2_char_t* AXIS2_CALL
 axis2_libxml2_reader_wrapper_get_pi_target(axis2_xml_reader_t *parser,
-                                    axis2_env_t **env)
+                                    const axis2_env_t *env)
 {
     axis2_libxml2_reader_wrapper_impl_t *parser_impl = NULL;
     AXIS2_ENV_CHECK( env, NULL);
@@ -781,7 +781,7 @@
 
 axis2_char_t* AXIS2_CALL
 axis2_libxml2_reader_wrapper_get_dtd(axis2_xml_reader_t *parser,
-                                  axis2_env_t **env)
+                                  const axis2_env_t *env)
 {
     axis2_libxml2_reader_wrapper_impl_t *parser_impl = NULL;
     AXIS2_ENV_CHECK( env, NULL);
@@ -795,7 +795,7 @@
 
 axis2_char_t* AXIS2_CALL
 axis2_libxml2_reader_wrapper_get_pi_data(axis2_xml_reader_t *parser,
-                                  axis2_env_t **env)
+                                  const axis2_env_t *env)
 {
     axis2_libxml2_reader_wrapper_impl_t *parser_impl = NULL;
     AXIS2_ENV_CHECK( env, NULL);
@@ -810,18 +810,18 @@
 
 axis2_status_t AXIS2_CALL
 axis2_libxml2_reader_wrapper_xml_free(axis2_xml_reader_t *parser,
-                               axis2_env_t **env,
+                               const axis2_env_t *env,
                                void *data)
 {
     AXIS2_ENV_CHECK( env, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, data, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, data, AXIS2_FAILURE);
     xmlFree(data);
     return AXIS2_SUCCESS;
  }
 
 axis2_char_t* AXIS2_CALL
 axis2_libxml2_reader_wrapper_get_char_set_encoding(axis2_xml_reader_t *parser,
-                                           axis2_env_t **env)
+                                           const axis2_env_t *env)
 {
     axis2_libxml2_reader_wrapper_impl_t *reader_impl = NULL;
     AXIS2_ENV_CHECK( env, NULL);
@@ -832,7 +832,7 @@
 axis2_char_t* AXIS2_CALL
 axis2_libxml2_reader_wrapper_get_namespace_uri
                    (axis2_xml_reader_t *parser,
-                    axis2_env_t **env)
+                    const axis2_env_t *env)
 {
     axis2_libxml2_reader_wrapper_impl_t *parser_impl = NULL;
     AXIS2_ENV_CHECK(env, NULL);
@@ -843,7 +843,7 @@
 axis2_char_t* AXIS2_CALL
 axis2_libxml2_reader_wrapper_get_namespace_uri_by_prefix
                            (axis2_xml_reader_t *parser,
-                            axis2_env_t **env,
+                            const axis2_env_t *env,
                             axis2_char_t *prefix)
 {
     axis2_libxml2_reader_wrapper_impl_t *parser_impl = NULL;
@@ -856,7 +856,7 @@
 }                                                                   
 
 axis2_status_t axis2_libxml2_reader_wrapper_fill_maps(axis2_xml_reader_t *parser,
-                                            axis2_env_t **env)
+                                            const axis2_env_t *env)
 {
     int libxml2_attribute_count = 0;
     int attr_count = 0;
@@ -921,8 +921,8 @@
                                            int severities,
                                            void *locator_ptr)
 {
-    axis2_env_t *env = NULL;
-    env = (axis2_env_t*)arg;
+    const axis2_env_t *env = NULL;
+    env = (const axis2_env_t*)arg;
            
     switch(severities)
     {



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


Mime
View raw message