domnode-xml.h 780 B

12345678910111213141516171819202122232425262728293031
  1. /* $Id$
  2. *
  3. * Copyright 2001-2003, Meiosys (www.meiosys.com). All rights reserved.
  4. * See the COPYING file for the terms of usage and distribution.
  5. */
  6. #ifndef __sd_domnode_xml_h
  7. #define __sd_domnode_xml_h
  8. /**
  9. * @file domnode-xml.h @ingroup sd
  10. *
  11. * @brief Private API for XML parsing.
  12. */
  13. #include "domnode.h"
  14. #include "stack.h"
  15. struct __sd_domnode_xml_maker {
  16. void* scanner;
  17. sd_stack_t* elements;
  18. sd_domnode_t* root;
  19. };
  20. extern int __sd_domnode_xml_fread(sd_domnode_t** a_node, FILE* a_stream);
  21. extern int __sd_domnode_xml_fwrite(const sd_domnode_t* a_node, FILE* a_stream);
  22. extern int __sd_domnode_xml_read(sd_domnode_t** a_node, const TCHAR* a_buffer, size_t a_size);
  23. extern int __sd_domnode_xml_write(const sd_domnode_t* a_node, TCHAR** a_buffer,size_t* a_size);
  24. #endif