summaryrefslogtreecommitdiff
path: root/include/dom/core/attr.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/dom/core/attr.h')
-rw-r--r--include/dom/core/attr.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/include/dom/core/attr.h b/include/dom/core/attr.h
index f5105f7..10d4a79 100644
--- a/include/dom/core/attr.h
+++ b/include/dom/core/attr.h
@@ -17,7 +17,6 @@ struct dom_element;
struct dom_type_info;
struct dom_node;
struct dom_attr;
-struct dom_string;
typedef struct dom_attr dom_attr;
@@ -37,13 +36,13 @@ typedef struct dom_attr_vtable {
struct dom_node_vtable base;
dom_exception (*dom_attr_get_name)(struct dom_attr *attr,
- struct dom_string **result);
+ dom_string **result);
dom_exception (*dom_attr_get_specified)(struct dom_attr *attr,
bool *result);
dom_exception (*dom_attr_get_value)(struct dom_attr *attr,
- struct dom_string **result);
+ dom_string **result);
dom_exception (*dom_attr_set_value)(struct dom_attr *attr,
- struct dom_string *value);
+ dom_string *value);
dom_exception (*dom_attr_get_owner_element)(struct dom_attr *attr,
struct dom_element **result);
dom_exception (*dom_attr_get_schema_type_info)(struct dom_attr *attr,
@@ -52,13 +51,13 @@ typedef struct dom_attr_vtable {
} dom_attr_vtable;
static inline dom_exception dom_attr_get_name(struct dom_attr *attr,
- struct dom_string **result)
+ dom_string **result)
{
return ((dom_attr_vtable *) ((dom_node *) attr)->vtable)->
dom_attr_get_name(attr, result);
}
#define dom_attr_get_name(a, r) dom_attr_get_name((struct dom_attr *) (a), \
- (struct dom_string **) (r))
+ (dom_string **) (r))
static inline dom_exception dom_attr_get_specified(struct dom_attr *attr,
bool *result)
@@ -70,22 +69,22 @@ static inline dom_exception dom_attr_get_specified(struct dom_attr *attr,
(struct dom_attr *) (a), (bool *) (r))
static inline dom_exception dom_attr_get_value(struct dom_attr *attr,
- struct dom_string **result)
+ dom_string **result)
{
return ((dom_attr_vtable *) ((dom_node *) attr)->vtable)->
dom_attr_get_value(attr, result);
}
#define dom_attr_get_value(a, r) dom_attr_get_value((struct dom_attr *) (a), \
- (struct dom_string **) (r))
+ (dom_string **) (r))
static inline dom_exception dom_attr_set_value(struct dom_attr *attr,
- struct dom_string *value)
+ dom_string *value)
{
return ((dom_attr_vtable *) ((dom_node *) attr)->vtable)->
dom_attr_set_value(attr, value);
}
#define dom_attr_set_value(a, v) dom_attr_set_value((struct dom_attr *) (a), \
- (struct dom_string *) (v))
+ (dom_string *) (v))
static inline dom_exception dom_attr_get_owner_element(struct dom_attr *attr,
struct dom_element **result)