php_xmlwriter.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. +----------------------------------------------------------------------+
  3. | PHP Version 5 |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 1997-2016 The PHP Group |
  6. +----------------------------------------------------------------------+
  7. | This source file is subject to version 3.01 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_01.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. | Pierre-A. Joye <pajoye@php.net> |
  17. +----------------------------------------------------------------------+
  18. */
  19. /* $Id$ */
  20. #ifndef PHP_XMLWRITER_H
  21. #define PHP_XMLWRITER_H
  22. extern zend_module_entry xmlwriter_module_entry;
  23. #define phpext_xmlwriter_ptr &xmlwriter_module_entry
  24. #ifdef ZTS
  25. #include "TSRM.h"
  26. #endif
  27. #include <libxml/tree.h>
  28. #include <libxml/xmlwriter.h>
  29. #include <libxml/uri.h>
  30. /* Resource struct, not the object :) */
  31. typedef struct _xmlwriter_object {
  32. xmlTextWriterPtr ptr;
  33. xmlBufferPtr output;
  34. #ifndef ZEND_ENGINE_2
  35. xmlOutputBufferPtr uri_output;
  36. #endif
  37. } xmlwriter_object;
  38. /* Extends zend object */
  39. typedef struct _ze_xmlwriter_object {
  40. zend_object zo;
  41. xmlwriter_object *xmlwriter_ptr;
  42. } ze_xmlwriter_object;
  43. #endif /* PHP_XMLWRITER_H */
  44. /*
  45. * Local variables:
  46. * tab-width: 4
  47. * c-basic-offset: 4
  48. * End:
  49. * vim600: noet sw=4 ts=4 fdm=marker
  50. * vim<600: noet sw=4 ts=4
  51. */