summaryrefslogtreecommitdiff
path: root/ext/xmlwriter/php_xmlwriter.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/xmlwriter/php_xmlwriter.h')
-rw-r--r--ext/xmlwriter/php_xmlwriter.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/xmlwriter/php_xmlwriter.h b/ext/xmlwriter/php_xmlwriter.h
index d4f0e33..1c3687e 100644
--- a/ext/xmlwriter/php_xmlwriter.h
+++ b/ext/xmlwriter/php_xmlwriter.h
@@ -38,6 +38,7 @@ extern zend_module_entry xmlwriter_module_entry;
#include <libxml/xmlwriter.h>
#include <libxml/uri.h>
+/* Resource struct, not the object :) */
typedef struct _xmlwriter_object {
xmlTextWriterPtr ptr;
xmlBufferPtr output;
@@ -46,6 +47,18 @@ typedef struct _xmlwriter_object {
#endif
} xmlwriter_object;
+
+/* Extends zend object */
+typedef struct _ze_xmlwriter_object {
+ zend_object zo;
+ xmlwriter_object *xmlwriter_ptr;
+} ze_xmlwriter_object;
+
+static void xmlwriter_free_resource_ptr(xmlwriter_object *intern TSRMLS_DC);
+static void xmlwriter_dtor(zend_rsrc_list_entry *rsrc TSRMLS_DC);
+
+zend_class_entry *xmlwriter_class_entry_ce;
+
#if LIBXML_VERSION >= 20605
PHP_FUNCTION(xmlwriter_set_indent);
PHP_FUNCTION(xmlwriter_set_indent_string);