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 2009 Bo Yang <struggleyb.nku@gmail.com>
  6.  */
  7.  
  8. #ifndef dom_html_collection_h_
  9. #define dom_html_collection_h_
  10.  
  11. #include <dom/core/exceptions.h>
  12. #include <dom/core/string.h>
  13.  
  14. struct dom_node;
  15.  
  16. typedef struct dom_html_collection dom_html_collection;
  17.  
  18. dom_exception dom_html_collection_get_length(dom_html_collection *col,
  19.                 uint32_t *len);
  20. dom_exception dom_html_collection_item(dom_html_collection *col,
  21.                 uint32_t index, struct dom_node **node);
  22. dom_exception dom_html_collection_named_item(dom_html_collection *col,
  23.                 dom_string *name, struct dom_node **node);
  24.  
  25. void dom_html_collection_ref(dom_html_collection *col);
  26. void dom_html_collection_unref(dom_html_collection *col);
  27.  
  28. #endif
  29.  
  30.