You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2007/04/03 11:15:13 UTC

svn commit: r525104 - in /webservices/axis2/trunk/c/axiom/src/parser/guththila: guththila_xml_reader_wrapper.c guththila_xml_writer_wrapper.c

Author: dinesh
Date: Tue Apr  3 02:15:12 2007
New Revision: 525104

URL: http://svn.apache.org/viewvc?view=rev&rev=525104
Log:
fixed build break with guththila

Modified:
    webservices/axis2/trunk/c/axiom/src/parser/guththila/guththila_xml_reader_wrapper.c
    webservices/axis2/trunk/c/axiom/src/parser/guththila/guththila_xml_writer_wrapper.c

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?view=diff&rev=525104&r1=525103&r2=525104
==============================================================================
--- 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 Tue Apr  3 02:15:12 2007
@@ -29,7 +29,7 @@
 guththila_xml_reader_wrapper_next(axiom_xml_reader_t *parser,
     const axutil_env_t *env);
 
-axis2_status_t AXIS2_CALL
+void AXIS2_CALL
 guththila_xml_reader_wrapper_free(axiom_xml_reader_t *parser,
     const axutil_env_t *env);
 
@@ -95,11 +95,24 @@
 guththila_xml_reader_wrapper_get_dtd(axiom_xml_reader_t *parser,
     const axutil_env_t *env);
 
-axis2_status_t AXIS2_CALL
+void AXIS2_CALL
 guththila_xml_reader_wrapper_xml_free(axiom_xml_reader_t *parser,
     const axutil_env_t *env,
     void *data);
 
+axis2_char_t *AXIS2_CALL
+guththila_xml_reader_wrapper_get_char_set_encoding(axiom_xml_reader_t *parser,
+     const axutil_env_t *env);
+
+axis2_char_t *AXIS2_CALL
+guththila_xml_reader_wrapper_get_namespace_uri(axiom_xml_reader_t *parser,
+     const axutil_env_t *env);
+
+axis2_char_t *AXIS2_CALL
+guththila_xml_reader_wrapper_get_namespace_uri_by_prefix(axiom_xml_reader_t *parser,
+    const axutil_env_t *env,
+    axis2_char_t *prefix);
+
 /*********** guththila_xml_reader_wrapper_impl_t wrapper struct   *******************/
 
 typedef struct guththila_xml_reader_wrapper_impl
@@ -138,6 +151,28 @@
     return AXIS2_FAILURE;
 }
 
+static const axiom_xml_reader_ops_t axiom_xml_reader_ops_var = {
+    guththila_xml_reader_wrapper_next,
+    guththila_xml_reader_wrapper_free,
+    guththila_xml_reader_wrapper_get_attribute_count,
+    guththila_xml_reader_wrapper_get_attribute_name_by_number,
+    guththila_xml_reader_wrapper_get_attribute_prefix_by_number,
+    guththila_xml_reader_wrapper_get_attribute_value_by_number,
+    guththila_xml_reader_wrapper_get_attribute_namespace_by_number,
+    guththila_xml_reader_wrapper_get_value,
+    guththila_xml_reader_wrapper_get_namespace_count,
+    guththila_xml_reader_wrapper_get_namespace_uri_by_number,
+    guththila_xml_reader_wrapper_get_namespace_prefix_by_number,
+    guththila_xml_reader_wrapper_get_prefix,
+    guththila_xml_reader_wrapper_get_name,
+    guththila_xml_reader_wrapper_get_pi_target,
+    guththila_xml_reader_wrapper_get_pi_data,
+    guththila_xml_reader_wrapper_get_dtd,
+    guththila_xml_reader_wrapper_xml_free,
+    guththila_xml_reader_wrapper_get_char_set_encoding,
+    guththila_xml_reader_wrapper_get_namespace_uri,
+    guththila_xml_reader_wrapper_get_namespace_uri_by_prefix
+};
 /********************************************************************************/
 
 AXIS2_EXTERN axiom_xml_reader_t *AXIS2_CALL
@@ -197,37 +232,7 @@
 
 
     /************** ops *****/
-    guththila_impl->parser.ops->next = guththila_xml_reader_wrapper_next;
-
-    guththila_impl->parser.ops->free = guththila_xml_reader_wrapper_free;
-
-    guththila_impl->parser.ops->get_attribute_count =
-        guththila_xml_reader_wrapper_get_attribute_count;
-    guththila_impl->parser.ops->get_attribute_name_by_number =
-        guththila_xml_reader_wrapper_get_attribute_name_by_number;
-    guththila_impl->parser.ops->get_attribute_value_by_number =
-        guththila_xml_reader_wrapper_get_attribute_value_by_number;
-    guththila_impl->parser.ops->get_attribute_prefix_by_number =
-        guththila_xml_reader_wrapper_get_attribute_prefix_by_number;
-    guththila_impl->parser.ops->get_attribute_namespace_by_number =
-        guththila_xml_reader_wrapper_get_attribute_namespace_by_number;
-
-    guththila_impl->parser.ops->get_value = guththila_xml_reader_wrapper_get_value;
-    guththila_impl->parser.ops->get_name  = guththila_xml_reader_wrapper_get_name;
-    guththila_impl->parser.ops->get_prefix = guththila_xml_reader_wrapper_get_prefix;
-
-    guththila_impl->parser.ops->get_namespace_count =
-        guththila_xml_reader_wrapper_get_namespace_count;
-    guththila_impl->parser.ops->get_namespace_uri_by_number =
-        guththila_xml_reader_wrapper_get_namespace_uri_by_number;
-    guththila_impl->parser.ops->get_namespace_prefix_by_number =
-        guththila_xml_reader_wrapper_get_namespace_prefix_by_number;
-
-    guththila_impl->parser.ops->get_dtd =
-        guththila_xml_reader_wrapper_get_dtd;
-
-    guththila_impl->parser.ops->xml_free = guththila_xml_reader_wrapper_xml_free;
-
+    guththila_impl->parser.ops = &axiom_xml_reader_ops_var;
     return &(guththila_impl->parser);
 }
 
@@ -291,35 +296,7 @@
     guththila_xml_reader_wrapper_init_map(guththila_impl);
 
     /************** ops *****/
-    guththila_impl->parser.ops->next = guththila_xml_reader_wrapper_next;
-
-    guththila_impl->parser.ops->free = guththila_xml_reader_wrapper_free;
-
-    guththila_impl->parser.ops->get_attribute_count =
-        guththila_xml_reader_wrapper_get_attribute_count;
-    guththila_impl->parser.ops->get_attribute_name_by_number =
-        guththila_xml_reader_wrapper_get_attribute_name_by_number;
-    guththila_impl->parser.ops->get_attribute_value_by_number =
-        guththila_xml_reader_wrapper_get_attribute_value_by_number;
-    guththila_impl->parser.ops->get_attribute_prefix_by_number =
-        guththila_xml_reader_wrapper_get_attribute_prefix_by_number;
-    guththila_impl->parser.ops->get_attribute_namespace_by_number =
-        guththila_xml_reader_wrapper_get_attribute_namespace_by_number;
-
-    guththila_impl->parser.ops->get_value = guththila_xml_reader_wrapper_get_value;
-    guththila_impl->parser.ops->get_name  = guththila_xml_reader_wrapper_get_name;
-    guththila_impl->parser.ops->get_prefix = guththila_xml_reader_wrapper_get_prefix;
-
-    guththila_impl->parser.ops->get_namespace_count =
-        guththila_xml_reader_wrapper_get_namespace_count;
-    guththila_impl->parser.ops->get_namespace_uri_by_number =
-        guththila_xml_reader_wrapper_get_namespace_uri_by_number;
-    guththila_impl->parser.ops->get_namespace_prefix_by_number =
-        guththila_xml_reader_wrapper_get_namespace_prefix_by_number;
-    guththila_impl->parser.ops->get_dtd =
-        guththila_xml_reader_wrapper_get_dtd;
-
-    guththila_impl->parser.ops->xml_free = guththila_xml_reader_wrapper_xml_free;
+    guththila_impl->parser.ops = &axiom_xml_reader_ops_var;    
     return &(guththila_impl->parser);
 }
 
@@ -400,35 +377,7 @@
 
 
     /************** ops *****/
-    guththila_impl->parser.ops->next = guththila_xml_reader_wrapper_next;
-
-    guththila_impl->parser.ops->free = guththila_xml_reader_wrapper_free;
-
-    guththila_impl->parser.ops->get_attribute_count =
-        guththila_xml_reader_wrapper_get_attribute_count;
-    guththila_impl->parser.ops->get_attribute_name_by_number =
-        guththila_xml_reader_wrapper_get_attribute_name_by_number;
-    guththila_impl->parser.ops->get_attribute_value_by_number =
-        guththila_xml_reader_wrapper_get_attribute_value_by_number;
-    guththila_impl->parser.ops->get_attribute_prefix_by_number =
-        guththila_xml_reader_wrapper_get_attribute_prefix_by_number;
-    guththila_impl->parser.ops->get_attribute_namespace_by_number =
-        guththila_xml_reader_wrapper_get_attribute_namespace_by_number;
-
-    guththila_impl->parser.ops->get_value = guththila_xml_reader_wrapper_get_value;
-    guththila_impl->parser.ops->get_name  = guththila_xml_reader_wrapper_get_name;
-    guththila_impl->parser.ops->get_prefix = guththila_xml_reader_wrapper_get_prefix;
-
-    guththila_impl->parser.ops->get_namespace_count =
-        guththila_xml_reader_wrapper_get_namespace_count;
-    guththila_impl->parser.ops->get_namespace_uri_by_number =
-        guththila_xml_reader_wrapper_get_namespace_uri_by_number;
-    guththila_impl->parser.ops->get_namespace_prefix_by_number =
-        guththila_xml_reader_wrapper_get_namespace_prefix_by_number;
-    guththila_impl->parser.ops->get_dtd =
-        guththila_xml_reader_wrapper_get_dtd;
-
-    guththila_impl->parser.ops->xml_free = guththila_xml_reader_wrapper_xml_free;
+    guththila_impl->parser.ops = &axiom_xml_reader_ops_var;
     return &(guththila_impl->parser);
 }
 
@@ -442,7 +391,7 @@
     return i == -1 ? -1 : AXIS2_INTF_TO_IMPL(parser)->event_map[i];
 }
 
-axis2_status_t AXIS2_CALL
+void AXIS2_CALL
 guththila_xml_reader_wrapper_free(axiom_xml_reader_t *parser,
     const axutil_env_t *env)
 {
@@ -459,13 +408,7 @@
         guththila_free((axutil_env_t *)env, parser_impl->guththila_parser);
     }
 
-    if (parser->ops)
-    {
-        AXIS2_FREE(env->allocator, parser->ops);
-    }
-
     AXIS2_FREE(env->allocator, parser_impl);
-    return AXIS2_SUCCESS;
 }
 
 int AXIS2_CALL
@@ -597,15 +540,36 @@
     return NULL;
 }
 
-axis2_status_t AXIS2_CALL
+void AXIS2_CALL
 guththila_xml_reader_wrapper_xml_free(axiom_xml_reader_t *parser,
     const axutil_env_t *env,
     void *data)
 {
-    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK(env->error, data, AXIS2_FAILURE);
+    if (data)
     AXIS2_FREE(env->allocator, data);
-    return AXIS2_SUCCESS;
 }
 
 
+axis2_char_t *AXIS2_CALL
+guththila_xml_reader_wrapper_get_char_set_encoding(axiom_xml_reader_t *parser,
+    const axutil_env_t *env)
+{
+    return guththila_get_encoding((axutil_env_t *)env,
+        AXIS2_INTF_TO_IMPL(parser)->guththila_parser);
+}
+
+axis2_char_t *AXIS2_CALL
+guththila_xml_reader_wrapper_get_namespace_uri(axiom_xml_reader_t *parser,
+    const axutil_env_t *env)
+{
+
+    return (axis2_char_t *)NULL;
+}
+
+axis2_char_t *AXIS2_CALL
+guththila_xml_reader_wrapper_get_namespace_uri_by_prefix(axiom_xml_reader_t *parser,
+    const axutil_env_t *env,
+    axis2_char_t *prefix)
+{
+    return (axis2_char_t *)NULL;
+}

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?view=diff&rev=525104&r1=525103&r2=525104
==============================================================================
--- 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 Tue Apr  3 02:15:12 2007
@@ -23,7 +23,7 @@
 #include <axiom_xml_writer.h>
 
 /************************ function prototypes ************************************/
-axis2_status_t AXIS2_CALL
+void AXIS2_CALL
 guththila_xml_writer_wrapper_free(axiom_xml_writer_t *writer,
     const axutil_env_t *env);
 
@@ -188,11 +188,20 @@
 guththila_xml_writer_wrapper_get_xml_size(axiom_xml_writer_t *writer,
     const axutil_env_t *env);
 
+int AXIS2_CALL
+guththila_xml_writer_wrapper_get_type(axiom_xml_writer_t *writer,
+     const axutil_env_t *env);
+
 axis2_status_t AXIS2_CALL
 guththila_xml_writer_wrapper_write_raw (axiom_xml_writer_t *writer,
     const axutil_env_t *env,
     axis2_char_t *content);
 
+axis2_status_t AXIS2_CALL
+guththila_xml_writer_wrapper_flush(axiom_xml_writer_t *writer,
+    const axutil_env_t *env);
+
+
 
 /***************************** end function pointers *****************************/
 
@@ -203,6 +212,43 @@
 }
 guththila_xml_writer_wrapper_impl_t;
 
+static const axiom_xml_writer_ops_t axiom_xml_writer_ops_var = {
+    guththila_xml_writer_wrapper_free,
+    guththila_xml_writer_wrapper_write_start_element,
+    guththila_xml_writer_wrapper_end_start_element,
+    guththila_xml_writer_wrapper_write_start_element_with_namespace,
+    guththila_xml_writer_wrapper_write_start_element_with_namespace_prefix,
+    guththila_xml_writer_wrapper_write_empty_element,
+    guththila_xml_writer_wrapper_write_empty_element_with_namespace,
+    guththila_xml_writer_wrapper_write_empty_element_with_namespace_prefix,
+    guththila_xml_writer_wrapper_write_end_element,
+    guththila_xml_writer_wrapper_write_end_document,
+    guththila_xml_writer_wrapper_write_attribute,
+    guththila_xml_writer_wrapper_write_attribute_with_namespace,
+    guththila_xml_writer_wrapper_write_attribute_with_namespace_prefix,
+    guththila_xml_writer_wrapper_write_namespace,
+    guththila_xml_writer_wrapper_write_default_namespace,
+    guththila_xml_writer_wrapper_write_comment,
+    guththila_xml_writer_wrapper_write_processing_instruction,
+    guththila_xml_writer_wrapper_write_processing_instruction_data,
+    guththila_xml_writer_wrapper_write_cdata,
+    guththila_xml_writer_wrapper_write_dtd,
+    guththila_xml_writer_wrapper_write_entity_ref,
+    guththila_xml_writer_wrapper_write_start_document,
+    guththila_xml_writer_wrapper_write_start_document_with_version,
+    guththila_xml_writer_wrapper_write_start_document_with_version_encoding,
+    guththila_xml_writer_wrapper_write_characters,
+    guththila_xml_writer_wrapper_get_prefix,
+    guththila_xml_writer_wrapper_set_prefix,
+    guththila_xml_writer_wrapper_set_default_prefix,
+    guththila_xml_writer_wrapper_write_encoded,
+    guththila_xml_writer_wrapper_get_xml,
+    guththila_xml_writer_wrapper_get_xml_size,
+    guththila_xml_writer_wrapper_get_type,
+    guththila_xml_writer_wrapper_write_raw,
+    guththila_xml_writer_wrapper_flush
+};
+
 
 /****************************** Macros *******************************************/
 
@@ -267,69 +313,7 @@
         return NULL;
     }
     /* ops */
-    writer_impl->writer.ops->free = guththila_xml_writer_wrapper_free;
-    writer_impl->writer.ops->write_start_element =
-        guththila_xml_writer_wrapper_write_start_element;
-    writer_impl->writer.ops->write_start_element_with_namespace =
-        guththila_xml_writer_wrapper_write_start_element_with_namespace;
-    writer_impl->writer.ops->write_start_element_with_namespace_prefix =
-        guththila_xml_writer_wrapper_write_start_element_with_namespace_prefix;
-
-    writer_impl->writer.ops->write_empty_element = 
-        guththila_xml_writer_wrapper_write_empty_element;
-    writer_impl->writer.ops->write_empty_element_with_namespace  =
-        guththila_xml_writer_wrapper_write_empty_element_with_namespace;
-    writer_impl->writer.ops->write_empty_element_with_namespace_prefix =
-        guththila_xml_writer_wrapper_write_empty_element_with_namespace_prefix;
-
-    writer_impl->writer.ops->write_end_element =
-        guththila_xml_writer_wrapper_write_end_element;
-    writer_impl->writer.ops->write_end_document =
-        guththila_xml_writer_wrapper_write_end_document;
-
-    writer_impl->writer.ops->write_attribute =
-        guththila_xml_writer_wrapper_write_attribute;
-    writer_impl->writer.ops->write_attribute_with_namespace =
-        guththila_xml_writer_wrapper_write_attribute_with_namespace;
-    writer_impl->writer.ops->write_attribute_with_namespace_prefix =
-        guththila_xml_writer_wrapper_write_attribute_with_namespace_prefix;
-    writer_impl->writer.ops->write_namespace =
-        guththila_xml_writer_wrapper_write_namespace;
-    writer_impl->writer.ops->write_default_namespace =
-        guththila_xml_writer_wrapper_write_default_namespace;
-    writer_impl->writer.ops->write_comment =
-        guththila_xml_writer_wrapper_write_comment;
-    writer_impl->writer.ops->write_processing_instruction =
-        guththila_xml_writer_wrapper_write_processing_instruction;
-    writer_impl->writer.ops->write_processing_instruction_data =
-        guththila_xml_writer_wrapper_write_processing_instruction_data;
-    writer_impl->writer.ops->write_cdata =
-        guththila_xml_writer_wrapper_write_cdata;
-    writer_impl->writer.ops->write_dtd =
-        guththila_xml_writer_wrapper_write_dtd;
-    writer_impl->writer.ops->write_entity_ref =
-        guththila_xml_writer_wrapper_write_entity_ref;
-    writer_impl->writer.ops->write_start_document =
-        guththila_xml_writer_wrapper_write_start_document;
-    writer_impl->writer.ops->write_start_document_with_version =
-        guththila_xml_writer_wrapper_write_start_document_with_version;
-    writer_impl->writer.ops->write_start_document_with_version_encoding =
-        guththila_xml_writer_wrapper_write_start_document_with_version_encoding;
-    writer_impl->writer.ops->write_characters =
-        guththila_xml_writer_wrapper_write_characters;
-    writer_impl->writer.ops->get_prefix =
-        guththila_xml_writer_wrapper_get_prefix;
-    writer_impl->writer.ops->set_prefix = guththila_xml_writer_wrapper_set_prefix;
-    writer_impl->writer.ops->set_default_prefix =
-        guththila_xml_writer_wrapper_set_default_prefix;
-    writer_impl->writer.ops->write_encoded =
-        guththila_xml_writer_wrapper_write_encoded;
-    writer_impl->writer.ops->get_xml =
-        guththila_xml_writer_wrapper_get_xml;
-    writer_impl->writer.ops->get_xml_size =
-        guththila_xml_writer_wrapper_get_xml_size;
-    writer_impl->writer.ops->write_raw =
-        guththila_xml_writer_wrapper_write_raw;
+    writer_impl->writer.ops = &axiom_xml_writer_ops_var;
 
     return &(writer_impl->writer);
 }
@@ -385,75 +369,12 @@
         return NULL;
     }
     /* ops */
-    writer_impl->writer.ops->free = guththila_xml_writer_wrapper_free;
-    writer_impl->writer.ops->write_start_element = 
-        guththila_xml_writer_wrapper_write_start_element;
-    writer_impl->writer.ops->write_start_element_with_namespace =
-        guththila_xml_writer_wrapper_write_start_element_with_namespace;
-    writer_impl->writer.ops->write_start_element_with_namespace_prefix =
-        guththila_xml_writer_wrapper_write_start_element_with_namespace_prefix;
-
-    writer_impl->writer.ops->write_empty_element = 
-        guththila_xml_writer_wrapper_write_empty_element;
-    writer_impl->writer.ops->write_empty_element_with_namespace  =
-        guththila_xml_writer_wrapper_write_empty_element_with_namespace;
-    writer_impl->writer.ops->write_empty_element_with_namespace_prefix =
-        guththila_xml_writer_wrapper_write_empty_element_with_namespace_prefix;
-
-    writer_impl->writer.ops->write_end_element =
-        guththila_xml_writer_wrapper_write_end_element;
-    writer_impl->writer.ops->write_end_document =
-        guththila_xml_writer_wrapper_write_end_document;
-
-    writer_impl->writer.ops->write_attribute =
-        guththila_xml_writer_wrapper_write_attribute;
-    writer_impl->writer.ops->write_attribute_with_namespace =
-        guththila_xml_writer_wrapper_write_attribute_with_namespace;
-    writer_impl->writer.ops->write_attribute_with_namespace_prefix =
-        guththila_xml_writer_wrapper_write_attribute_with_namespace_prefix;
-    writer_impl->writer.ops->write_namespace =
-        guththila_xml_writer_wrapper_write_namespace;
-    writer_impl->writer.ops->write_default_namespace =
-        guththila_xml_writer_wrapper_write_default_namespace;
-    writer_impl->writer.ops->write_comment =
-        guththila_xml_writer_wrapper_write_comment;
-    writer_impl->writer.ops->write_processing_instruction =
-        guththila_xml_writer_wrapper_write_processing_instruction;
-    writer_impl->writer.ops->write_processing_instruction_data =
-        guththila_xml_writer_wrapper_write_processing_instruction_data;
-    writer_impl->writer.ops->write_cdata =
-        guththila_xml_writer_wrapper_write_cdata;
-    writer_impl->writer.ops->write_dtd =
-        guththila_xml_writer_wrapper_write_dtd;
-    writer_impl->writer.ops->write_entity_ref =
-        guththila_xml_writer_wrapper_write_entity_ref;
-    writer_impl->writer.ops->write_start_document =
-        guththila_xml_writer_wrapper_write_start_document;
-    writer_impl->writer.ops->write_start_document_with_version =
-        guththila_xml_writer_wrapper_write_start_document_with_version;
-    writer_impl->writer.ops->write_start_document_with_version_encoding =
-        guththila_xml_writer_wrapper_write_start_document_with_version_encoding;
-    writer_impl->writer.ops->write_characters =
-        guththila_xml_writer_wrapper_write_characters;
-    writer_impl->writer.ops->get_prefix =
-        guththila_xml_writer_wrapper_get_prefix;
-    writer_impl->writer.ops->set_prefix = guththila_xml_writer_wrapper_set_prefix;
-    writer_impl->writer.ops->set_default_prefix =
-        guththila_xml_writer_wrapper_set_default_prefix;
-    writer_impl->writer.ops->write_encoded =
-        guththila_xml_writer_wrapper_write_encoded;
-    writer_impl->writer.ops->get_xml =
-        guththila_xml_writer_wrapper_get_xml;
-	writer_impl->writer.ops->get_xml_size =
-        guththila_xml_writer_wrapper_get_xml_size;
-       writer_impl->writer.ops->write_raw =
-        guththila_xml_writer_wrapper_write_raw;
-
+    writer_impl->writer.ops = &axiom_xml_writer_ops_var;
     return &(writer_impl->writer);
 
 }
 
-axis2_status_t AXIS2_CALL
+void AXIS2_CALL
 guththila_xml_writer_wrapper_free(axiom_xml_writer_t *writer,
     const axutil_env_t *env)
 {
@@ -468,17 +389,11 @@
         guththila_free((axutil_env_t *)env, AXIS2_INTF_TO_IMPL(writer)->parser);
     }
 
-    if (writer->ops)
-    {
-        AXIS2_FREE(env->allocator, writer->ops);
-    }
-
     if (writer)
     {
         AXIS2_FREE(env->allocator, AXIS2_INTF_TO_IMPL(writer));
     }
 
-    return AXIS2_SUCCESS;
 }
 
 axis2_status_t AXIS2_CALL
@@ -888,3 +803,26 @@
 }
 
 
+int AXIS2_CALL
+guththila_xml_writer_wrapper_get_type(axiom_xml_writer_t *writer,
+     const axutil_env_t *env)
+{
+    return 0;
+}
+
+axis2_status_t AXIS2_CALL
+guththila_xml_writer_wrapper_flush(axiom_xml_writer_t *writer,
+    const axutil_env_t *env)
+{
+    return AXIS2_SUCCESS;
+}
+
+axis2_status_t AXIS2_CALL
+guththila_xml_writer_wrapper_end_start_element(axiom_xml_writer_t *writer,
+    const axutil_env_t *env)
+{
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    /* nothing to do ,
+       it is automatically taken care by the libxml2 writer */
+    return AXIS2_SUCCESS;
+}



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