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_core_nodelist_h_
  9. #define dom_core_nodelist_h_
  10.  
  11. #include <dom/core/exceptions.h>
  12.  
  13. struct dom_node;
  14.  
  15. typedef struct dom_nodelist dom_nodelist;
  16.  
  17. void dom_nodelist_ref(struct dom_nodelist *list);
  18. void dom_nodelist_unref(struct dom_nodelist *list);
  19.  
  20. dom_exception dom_nodelist_get_length(struct dom_nodelist *list,
  21.                 uint32_t *length);
  22. dom_exception _dom_nodelist_item(struct dom_nodelist *list,
  23.                 uint32_t index, struct dom_node **node);
  24.  
  25. #define dom_nodelist_item(l, i, n) _dom_nodelist_item((dom_nodelist *) (l), \
  26.                 (uint32_t) (i), (dom_node **) (n))
  27.  
  28. #endif
  29.