summaryrefslogtreecommitdiff
path: root/include/dom/core/node.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2007-07-06 21:42:18 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2007-07-06 21:42:18 +0000
commitd39dbc93d93f537962fe998031ade04d7ee6ca6a (patch)
tree38200fb0d97551967a2d9063daaf28927c043902 /include/dom/core/node.h
parent5da747ff564cdcfeff90c5f5cfcfac03bc48332b (diff)
downloadlibdom-d39dbc93d93f537962fe998031ade04d7ee6ca6a.tar.gz
libdom-d39dbc93d93f537962fe998031ade04d7ee6ca6a.tar.bz2
Purge all trace of the ballache that was dom_ctx.
Document the functions in document.c svn path=/trunk/dom/; revision=3385
Diffstat (limited to 'include/dom/core/node.h')
-rw-r--r--include/dom/core/node.h149
1 files changed, 66 insertions, 83 deletions
diff --git a/include/dom/core/node.h b/include/dom/core/node.h
index e37d99b..e335007 100644
--- a/include/dom/core/node.h
+++ b/include/dom/core/node.h
@@ -13,7 +13,6 @@
#include <dom/core/exceptions.h>
-struct dom_ctx;
struct dom_document;
struct dom_node;
struct dom_node_list;
@@ -69,102 +68,86 @@ typedef enum {
} dom_node_type;
-void dom_node_ref(struct dom_ctx *ctx, struct dom_node *node);
-void dom_node_unref(struct dom_ctx *ctx, struct dom_node *node);
+void dom_node_ref(struct dom_node *node);
+void dom_node_unref(struct dom_node *node);
-dom_exception dom_node_get_name(struct dom_ctx *ctx,
- struct dom_node *node, struct dom_string **result);
-dom_exception dom_node_get_value(struct dom_ctx *ctx,
- struct dom_node *node, struct dom_string **result);
-dom_exception dom_node_set_value(struct dom_ctx *ctx,
- struct dom_node *node, struct dom_string *value);
-dom_exception dom_node_get_type(struct dom_ctx *ctx,
- struct dom_node *node, dom_node_type *result);
-dom_exception dom_node_get_parent(struct dom_ctx *ctx,
- struct dom_node *node, struct dom_node **result);
-dom_exception dom_node_get_children(struct dom_ctx *ctx,
- struct dom_node *node, struct dom_node_list **result);
-dom_exception dom_node_get_first_child(struct dom_ctx *ctx,
- struct dom_node *node, struct dom_node **result);
-dom_exception dom_node_get_last_child(struct dom_ctx *ctx,
- struct dom_node *node, struct dom_node **result);
-dom_exception dom_node_get_previous(struct dom_ctx *ctx,
- struct dom_node *node, struct dom_node **result);
-dom_exception dom_node_get_next(struct dom_ctx *ctx,
- struct dom_node *node, struct dom_node **result);
-dom_exception dom_node_get_attributes(struct dom_ctx *ctx,
- struct dom_node *node, struct dom_named_node_map **result);
-dom_exception dom_node_get_owner(struct dom_ctx *ctx,
- struct dom_node *node, struct dom_document **result);
-dom_exception dom_node_insert_before(struct dom_ctx *ctx,
- struct dom_node *node,
+dom_exception dom_node_get_name(struct dom_node *node,
+ struct dom_string **result);
+dom_exception dom_node_get_value(struct dom_node *node,
+ struct dom_string **result);
+dom_exception dom_node_set_value(struct dom_node *node,
+ struct dom_string *value);
+dom_exception dom_node_get_type(struct dom_node *node,
+ dom_node_type *result);
+dom_exception dom_node_get_parent(struct dom_node *node,
+ struct dom_node **result);
+dom_exception dom_node_get_children(struct dom_node *node,
+ struct dom_node_list **result);
+dom_exception dom_node_get_first_child(struct dom_node *node,
+ struct dom_node **result);
+dom_exception dom_node_get_last_child(struct dom_node *node,
+ struct dom_node **result);
+dom_exception dom_node_get_previous(struct dom_node *node,
+ struct dom_node **result);
+dom_exception dom_node_get_next(struct dom_node *node,
+ struct dom_node **result);
+dom_exception dom_node_get_attributes(struct dom_node *node,
+ struct dom_named_node_map **result);
+dom_exception dom_node_get_owner(struct dom_node *node,
+ struct dom_document **result);
+dom_exception dom_node_insert_before(struct dom_node *node,
struct dom_node *new_child, struct dom_node *ref_child,
struct dom_node **result);
-dom_exception dom_node_replace_child(struct dom_ctx *ctx,
- struct dom_node *node,
+dom_exception dom_node_replace_child(struct dom_node *node,
struct dom_node *new_child, struct dom_node *old_child,
struct dom_node **result);
-dom_exception dom_node_remove_child(struct dom_ctx *ctx,
- struct dom_node *node,
+dom_exception dom_node_remove_child(struct dom_node *node,
struct dom_node *old_child,
struct dom_node **result);
-dom_exception dom_node_append_child(struct dom_ctx *ctx,
- struct dom_node *node,
+dom_exception dom_node_append_child(struct dom_node *node,
struct dom_node *new_child,
struct dom_node **result);
-dom_exception dom_node_has_children(struct dom_ctx *ctx,
- struct dom_node *node, bool *result);
-dom_exception dom_node_clone(struct dom_ctx *ctx,
- struct dom_node *node, bool deep,
+dom_exception dom_node_has_children(struct dom_node *node, bool *result);
+dom_exception dom_node_clone(struct dom_node *node, bool deep,
struct dom_node **result);
-dom_exception dom_node_normalize(struct dom_ctx *ctx,
- struct dom_node *node);
-dom_exception dom_node_is_supported(struct dom_ctx *ctx,
- struct dom_node *node, struct dom_string *feature,
- struct dom_node *version, bool *result);
-dom_exception dom_node_get_namespace(struct dom_ctx *ctx,
- struct dom_node *node, struct dom_string **result);
-dom_exception dom_node_get_prefix(struct dom_ctx *ctx,
- struct dom_node *node, struct dom_string **result);
-dom_exception dom_node_set_prefix(struct dom_ctx *ctx,
- struct dom_node *node, struct dom_string *prefix);
-dom_exception dom_node_get_local_name(struct dom_ctx *ctx,
- struct dom_node *node, struct dom_string **result);
-dom_exception dom_node_has_attributes(struct dom_ctx *ctx,
- struct dom_node *node, bool *result);
-dom_exception dom_node_get_base(struct dom_ctx *ctx,
- struct dom_node *node, struct dom_string **result);
-dom_exception dom_node_compare_document_position(struct dom_ctx *ctx,
- struct dom_node *node, struct dom_node *other,
- uint16_t *result);
-dom_exception dom_node_get_text_content(struct dom_ctx *ctx,
- struct dom_node *node, struct dom_string **result);
-dom_exception dom_node_set_text_content(struct dom_ctx *ctx,
- struct dom_node *node, struct dom_string *content);
-dom_exception dom_node_is_same(struct dom_ctx *ctx,
- struct dom_node *node, struct dom_node *other,
+dom_exception dom_node_normalize(struct dom_node *node);
+dom_exception dom_node_is_supported(struct dom_node *node,
+ struct dom_string *feature, struct dom_node *version,
bool *result);
-dom_exception dom_node_lookup_prefix(struct dom_ctx *ctx,
- struct dom_node *node, struct dom_string *namespace,
+dom_exception dom_node_get_namespace(struct dom_node *node,
struct dom_string **result);
-dom_exception dom_node_is_default_namespace(struct dom_ctx *ctx,
- struct dom_node *node, struct dom_string *namespace,
- bool *result);
-dom_exception dom_node_lookup_namespace(struct dom_ctx *ctx,
- struct dom_node *node, struct dom_string *prefix,
+dom_exception dom_node_get_prefix(struct dom_node *node,
+ struct dom_string **result);
+dom_exception dom_node_set_prefix(struct dom_node *node,
+ struct dom_string *prefix);
+dom_exception dom_node_get_local_name(struct dom_node *node,
struct dom_string **result);
-dom_exception dom_node_is_equal(struct dom_ctx *ctx,
- struct dom_node *node, struct dom_node *other,
+dom_exception dom_node_has_attributes(struct dom_node *node, bool *result);
+dom_exception dom_node_get_base(struct dom_node *node,
+ struct dom_string **result);
+dom_exception dom_node_compare_document_position(struct dom_node *node,
+ struct dom_node *other, uint16_t *result);
+dom_exception dom_node_get_text_content(struct dom_node *node,
+ struct dom_string **result);
+dom_exception dom_node_set_text_content(struct dom_node *node,
+ struct dom_string *content);
+dom_exception dom_node_is_same(struct dom_node *node, struct dom_node *other,
bool *result);
-dom_exception dom_node_get_feature(struct dom_ctx *ctx,
- struct dom_node *node, struct dom_string *feature,
- struct dom_string *version, void **result);
-dom_exception dom_node_set_user_data(struct dom_ctx *ctx,
- struct dom_node *node, struct dom_string *key,
- void *data, dom_user_data_handler handler,
- void **result);
-dom_exception dom_node_get_user_data(struct dom_ctx *ctx,
- struct dom_node *node, struct dom_string *key,
+dom_exception dom_node_lookup_prefix(struct dom_node *node,
+ struct dom_string *namespace, struct dom_string **result);
+dom_exception dom_node_is_default_namespace(struct dom_node *node,
+ struct dom_string *namespace, bool *result);
+dom_exception dom_node_lookup_namespace(struct dom_node *node,
+ struct dom_string *prefix, struct dom_string **result);
+dom_exception dom_node_is_equal(struct dom_node *node,
+ struct dom_node *other, bool *result);
+dom_exception dom_node_get_feature(struct dom_node *node,
+ struct dom_string *feature, struct dom_string *version,
void **result);
+dom_exception dom_node_set_user_data(struct dom_node *node,
+ struct dom_string *key, void *data,
+ dom_user_data_handler handler, void **result);
+dom_exception dom_node_get_user_data(struct dom_node *node,
+ struct dom_string *key, void **result);
#endif