diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2007-07-06 14:32:44 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2007-07-06 14:32:44 +0000 |
commit | 5da747ff564cdcfeff90c5f5cfcfac03bc48332b (patch) | |
tree | 18a60e0aa3081bcb49156782f4c30576679cdc52 /include/dom/core/attr.h | |
download | libdom-5da747ff564cdcfeff90c5f5cfcfac03bc48332b.tar.gz libdom-5da747ff564cdcfeff90c5f5cfcfac03bc48332b.tar.bz2 |
Import DOM library.
This is mainly stub functions atm (and is missing a number of key interfaces).
svn path=/trunk/dom/; revision=3384
Diffstat (limited to 'include/dom/core/attr.h')
-rw-r--r-- | include/dom/core/attr.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/include/dom/core/attr.h b/include/dom/core/attr.h new file mode 100644 index 0000000..782513e --- /dev/null +++ b/include/dom/core/attr.h @@ -0,0 +1,37 @@ +/* + * This file is part of libdom. + * Licensed under the MIT License, + * http://www.opensource.org/licenses/mit-license.php + * Copyright 2007 John-Mark Bell <jmb@netsurf-browser.org> + */ + +#ifndef dom_core_attr_h_ +#define dom_core_attr_h_ + +#include <stdbool.h> + +#include <dom/core/exceptions.h> + +struct dom_ctx; +struct dom_element; +struct dom_typeinfo; +struct dom_node; +struct dom_attr; +struct dom_string; + +dom_exception dom_attr_get_name(struct dom_ctx *ctx, + struct dom_attr *attr, struct dom_string **result); +dom_exception dom_attr_get_specified(struct dom_ctx *ctx, + struct dom_attr *attr, bool *result); +dom_exception dom_attr_get_value(struct dom_ctx *ctx, + struct dom_attr *attr, struct dom_string **result); +dom_exception dom_attr_set_value(struct dom_ctx *ctx, + struct dom_attr *attr, struct dom_string *value); +dom_exception dom_attr_get_owner(struct dom_ctx *ctx, + struct dom_attr *attr, struct dom_element **result); +dom_exception dom_attr_get_typeinfo(struct dom_ctx *ctx, + struct dom_attr *attr, struct dom_typeinfo **result); +dom_exception dom_attr_is_id(struct dom_ctx *ctx, + struct dom_attr *attr, bool *result); + +#endif |