You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
2.2 KiB

21 years ago
  1. /*
  2. +----------------------------------------------------------------------+
  3. | PHP Version 5 |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 1997-2005 The PHP Group |
  6. +----------------------------------------------------------------------+
  7. | This source file is subject to version 3.0 of the PHP license, |
  8. | that is bundled with this package in the file LICENSE, and is |
  9. | available through the world-wide-web at the following url: |
  10. | http://www.php.net/license/3_0.txt. |
  11. | If you did not receive a copy of the PHP license and are unable to |
  12. | obtain it through the world-wide-web, please send a note to |
  13. | license@php.net so we can mail you a copy immediately. |
  14. +----------------------------------------------------------------------+
  15. | Author: Rob Richards <rrichards@php.net> |
  16. +----------------------------------------------------------------------+
  17. */
  18. /* $Id$ */
  19. #ifndef PHP_XMLREADER_H
  20. #define PHP_XMLREADER_H
  21. extern zend_module_entry xmlreader_module_entry;
  22. #define phpext_xmlreader_ptr &xmlreader_module_entry
  23. #ifdef PHP_WIN32
  24. #define PHP_XMLREADER_API __declspec(dllexport)
  25. #else
  26. #define PHP_XMLREADER_API
  27. #endif
  28. #ifdef ZTS
  29. #include "TSRM.h"
  30. #endif
  31. #include "ext/libxml/php_libxml.h"
  32. #include <libxml/xmlreader.h>
  33. typedef struct _xmlreader_object {
  34. zend_object std;
  35. xmlTextReaderPtr ptr;
  36. /* input is used to allow strings to be loaded under libxml 2.5.x
  37. must manually allocate and de-allocate these - can be refactored when
  38. libxml 2.6.x becomes minimum version */
  39. xmlParserInputBufferPtr input;
  40. void *schema;
  41. HashTable *prop_handler;
  42. zend_object_handle handle;
  43. } xmlreader_object;
  44. PHP_MINIT_FUNCTION(xmlreader);
  45. PHP_MSHUTDOWN_FUNCTION(xmlreader);
  46. PHP_MINFO_FUNCTION(xmlreader);
  47. #ifdef ZTS
  48. #define XMLREADER_G(v) TSRMG(xmlreader_globals_id, zend_xmlreader_globals *, v)
  49. #else
  50. #define XMLREADER_G(v) (xmlreader_globals.v)
  51. #endif
  52. #endif /* PHP_XMLREADER_H */
  53. /*
  54. * Local variables:
  55. * tab-width: 4
  56. * c-basic-offset: 4
  57. * End:
  58. * vim600: noet sw=4 ts=4 fdm=marker
  59. * vim<600: noet sw=4 ts=4
  60. */