domnode-xml.h 806 B

123456789101112131415161718192021222324252627282930313233
  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 char* a_buffer,
  23. size_t a_size);
  24. extern int __sd_domnode_xml_write(const sd_domnode_t* a_node, char** a_buffer,
  25. size_t* a_size);
  26. #endif