ext/xml/ruby_xml_document.h in libxml-ruby-0.3.8.4 vs ext/xml/ruby_xml_document.h in libxml-ruby-0.5.0

- old
+ new

@@ -1,6 +1,6 @@ -/* $Id: ruby_xml_document.h,v 1.1 2006/02/21 20:40:16 roscopeco Exp $ */ +/* $Id: ruby_xml_document.h 138 2007-08-29 18:00:35Z danj $ */ /* Please see the LICENSE file for copyright and distribution information */ #ifndef __RUBY_XML_DOCUMENT__ #define __RUBY_XML_DOCUMENT__ @@ -9,19 +9,15 @@ typedef struct rxp_document { xmlDocPtr doc; /* Tree/DOM interface */ int data_type; /* The data type referenced by *data */ void *data; /* Pointer to an external structure of options */ - int is_ptr; /* Determines if this object owns its data or points to it someplace else */ - VALUE xmlver; /* T_STRING with the xml version */ -} ruby_xml_document; +} ruby_xml_document_t; VALUE ruby_xml_document_filename_get(VALUE self); -void ruby_xml_document_free(ruby_xml_document *rxd); -VALUE ruby_xml_document_new(VALUE class, xmlDocPtr doc); -VALUE ruby_xml_document_new2(VALUE class, VALUE xmlver); -VALUE ruby_xml_document_new3(VALUE class); -VALUE ruby_xml_document_new4(VALUE class, xmlDocPtr doc); +VALUE ruby_xml_document_new_native(VALUE class, VALUE xmlver); +VALUE ruby_xml_document_wrap(VALUE class, xmlDocPtr xnode); +void ruby_xml_document_free(ruby_xml_document_t *rxd); VALUE ruby_xml_document_root_get(VALUE self); void ruby_init_xml_document(void); #endif