Back to index

php5  5.3.10
php_xmlreader.h
Go to the documentation of this file.
00001 /*
00002   +----------------------------------------------------------------------+
00003   | PHP Version 5                                                        |
00004   +----------------------------------------------------------------------+
00005   | Copyright (c) 1997-2012 The PHP Group                                |
00006   +----------------------------------------------------------------------+
00007   | This source file is subject to version 3.01 of the PHP license,      |
00008   | that is bundled with this package in the file LICENSE, and is        |
00009   | available through the world-wide-web at the following url:           |
00010   | http://www.php.net/license/3_01.txt                                  |
00011   | If you did not receive a copy of the PHP license and are unable to   |
00012   | obtain it through the world-wide-web, please send a note to          |
00013   | license@php.net so we can mail you a copy immediately.               |
00014   +----------------------------------------------------------------------+
00015   | Author: Rob Richards <rrichards@php.net>                             |
00016   +----------------------------------------------------------------------+
00017 */
00018 
00019 /* $Id: php_xmlreader.h 321634 2012-01-01 13:15:04Z felipe $ */
00020 
00021 #ifndef PHP_XMLREADER_H
00022 #define PHP_XMLREADER_H
00023 
00024 extern zend_module_entry xmlreader_module_entry;
00025 #define phpext_xmlreader_ptr &xmlreader_module_entry
00026 
00027 #ifdef ZTS
00028 #include "TSRM.h"
00029 #endif
00030 
00031 #include "ext/libxml/php_libxml.h"
00032 #include <libxml/xmlreader.h>
00033 
00034 typedef struct _xmlreader_object {
00035        zend_object  std;
00036        xmlTextReaderPtr ptr;
00037        /* strings must be set in input buffer as copy is required */
00038        xmlParserInputBufferPtr input;
00039        void *schema;
00040        HashTable *prop_handler;
00041        zend_object_handle handle;
00042 } xmlreader_object;
00043 
00044 PHP_MINIT_FUNCTION(xmlreader);
00045 PHP_MSHUTDOWN_FUNCTION(xmlreader);
00046 PHP_MINFO_FUNCTION(xmlreader);
00047 
00048 #define REGISTER_XMLREADER_CLASS_CONST_LONG(const_name, value) \
00049        zend_declare_class_constant_long(xmlreader_class_entry, const_name, sizeof(const_name)-1, (long)value TSRMLS_CC);
00050 
00051 #ifdef ZTS
00052 #define XMLREADER_G(v) TSRMG(xmlreader_globals_id, zend_xmlreader_globals *, v)
00053 #else
00054 #define XMLREADER_G(v) (xmlreader_globals.v)
00055 #endif
00056 
00057 #endif /* PHP_XMLREADER_H */
00058 
00059 /*
00060  * Local variables:
00061  * tab-width: 4
00062  * c-basic-offset: 4
00063  * End:
00064  * vim600: noet sw=4 ts=4 fdm=marker
00065  * vim<600: noet sw=4 ts=4
00066  */