From acfc9fd1b44f7b72ba66705daf34914940509793 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Tue, 10 Jul 2007 21:36:14 +0000 Subject: Add NodeList and string comparison API svn path=/trunk/dom/; revision=3394 --- include/dom/core/nodelist.h | 24 ++++++++++++++++++++++++ include/dom/core/string.h | 6 ++++++ 2 files changed, 30 insertions(+) create mode 100644 include/dom/core/nodelist.h (limited to 'include') diff --git a/include/dom/core/nodelist.h b/include/dom/core/nodelist.h new file mode 100644 index 0000000..e350c5b --- /dev/null +++ b/include/dom/core/nodelist.h @@ -0,0 +1,24 @@ +/* + * This file is part of libdom. + * Licensed under the MIT License, + * http://www.opensource.org/licenses/mit-license.php + * Copyright 2007 John-Mark Bell + */ + +#ifndef dom_core_nodelist_h_ +#define dom_core_nodelist_h_ + +#include + +struct dom_node; +struct dom_nodelist; + +void dom_nodelist_ref(struct dom_nodelist *list); +void dom_nodelist_unref(struct dom_nodelist *list); + +dom_exception dom_nodelist_get_length(struct dom_nodelist *list, + unsigned long *length); +dom_exception dom_nodelist_item(struct dom_nodelist *list, + unsigned long index, struct dom_node **node); + +#endif diff --git a/include/dom/core/string.h b/include/dom/core/string.h index f591464..759f042 100644 --- a/include/dom/core/string.h +++ b/include/dom/core/string.h @@ -35,4 +35,10 @@ dom_exception dom_string_create_from_const_ptr(struct dom_document *doc, dom_exception dom_string_get_data(struct dom_string *str, const uint8_t **data, size_t *len); +/* Case sensitively compare two DOM strings */ +int dom_string_cmp(struct dom_string *s1, struct dom_string *s2); +/* Case insensitively compare two DOM strings */ +int dom_string_icmp(struct dom_string *s1, struct dom_string *s2); + + #endif -- cgit v1.2.3