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_processinginstruction_h_
  9. #define dom_internal_core_processinginstruction_h_
  10.  
  11. #include <dom/core/exceptions.h>
  12. #include <dom/core/pi.h>
  13.  
  14. dom_exception _dom_processing_instruction_create(dom_document *doc,
  15.                 dom_string *name, dom_string *value,
  16.                 dom_processing_instruction **result);
  17.  
  18. void _dom_processing_instruction_destroy(dom_processing_instruction *pi);
  19.  
  20. #define _dom_processing_instruction_initialise  _dom_node_initialise
  21. #define _dom_processing_instruction_finalise    _dom_node_finalise
  22.  
  23. /* Following comes the protected vtable  */
  24. void _dom_pi_destroy(dom_node_internal *node);
  25. dom_exception _dom_pi_copy(dom_node_internal *old, dom_node_internal **copy);
  26.  
  27. #define DOM_PI_PROTECT_VTABLE \
  28.         _dom_pi_destroy, \
  29.         _dom_pi_copy
  30.  
  31. #endif
  32.