Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. /*
  2.  * This file is part of libdom.
  3.  * Licensed under the MIT License,
  4.  *                http://www.opensource.org/licenses/mit-license.php
  5.  * Copyright 2007 John-Mark Bell <jmb@netsurf-browser.org>
  6.  */
  7.  
  8. #ifndef dom_internal_core_documentfragment_h_
  9. #define dom_internal_core_documentfragment_h_
  10.  
  11. #include <dom/core/exceptions.h>
  12. #include <dom/core/doc_fragment.h>
  13.  
  14. dom_exception _dom_document_fragment_create(dom_document *doc,
  15.                 dom_string *name, dom_string *value,
  16.                 dom_document_fragment **result);
  17.  
  18. void _dom_document_fragment_destroy(dom_document_fragment *frag);
  19.  
  20. #define _dom_document_fragment_initialise       _dom_node_initialise
  21. #define _dom_document_fragment_finalise         _dom_node_finalise
  22.  
  23.  
  24. /* Following comes the protected vtable */
  25. void _dom_df_destroy(dom_node_internal *node);
  26. dom_exception _dom_df_copy(dom_node_internal *old, dom_node_internal **copy);
  27.  
  28. #define DOM_DF_PROTECT_VTABLE \
  29.         _dom_df_destroy, \
  30.         _dom_df_copy
  31.  
  32. #endif
  33.