summaryrefslogtreecommitdiff
path: root/ext/xmlwriter/php_xmlwriter.h
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2005-06-23 11:28:25 (GMT)
committerPierre Joye <pajoye@php.net>2005-06-23 11:28:25 (GMT)
commit8c1c4865acf12fdac68c0cb5a420f3253bf82410 (patch)
tree363ab40d5daad9584e53e5d7b7e3e85cbb60fae2 /ext/xmlwriter/php_xmlwriter.h
parentcfe01e1b0601850b4d3313d7d327f53b513f14e5 (diff)
downloadphp-8c1c4865acf12fdac68c0cb5a420f3253bf82410.tar.gz
- Add OO interface
- some {{{ fixes
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);