Go to the source code of this file.
|
#define | dom_namednodemap_get_named_item(m, n, r) |
|
#define | dom_namednodemap_set_named_item(m, a, n) |
|
#define | dom_namednodemap_remove_named_item(m, n, r) |
|
#define | dom_namednodemap_item(m, i, n) |
|
#define | dom_namednodemap_get_named_item_ns(m, n, l, r) |
|
#define | dom_namednodemap_set_named_item_ns(m, a, n) |
|
#define | dom_namednodemap_remove_named_item_ns(m, n, l, r) |
|
|
void | dom_namednodemap_ref (struct dom_namednodemap *map) |
|
void | dom_namednodemap_unref (struct dom_namednodemap *map) |
|
dom_exception | dom_namednodemap_get_length (struct dom_namednodemap *map, dom_ulong *length) |
|
dom_exception | _dom_namednodemap_get_named_item (struct dom_namednodemap *map, dom_string *name, struct dom_node **node) |
|
dom_exception | _dom_namednodemap_set_named_item (struct dom_namednodemap *map, struct dom_node *arg, struct dom_node **node) |
|
dom_exception | _dom_namednodemap_remove_named_item (struct dom_namednodemap *map, dom_string *name, struct dom_node **node) |
|
dom_exception | _dom_namednodemap_item (struct dom_namednodemap *map, dom_ulong index, struct dom_node **node) |
|
dom_exception | _dom_namednodemap_get_named_item_ns (struct dom_namednodemap *map, dom_string *namespace, dom_string *localname, struct dom_node **node) |
|
dom_exception | _dom_namednodemap_set_named_item_ns (struct dom_namednodemap *map, struct dom_node *arg, struct dom_node **node) |
|
dom_exception | _dom_namednodemap_remove_named_item_ns (struct dom_namednodemap *map, dom_string *namespace, dom_string *localname, struct dom_node **node) |
|
◆ dom_namednodemap_get_named_item
#define dom_namednodemap_get_named_item |
( |
| m, |
|
|
| n, |
|
|
| r ) |
Value:
dom_exception _dom_namednodemap_get_named_item(struct dom_namednodemap *map, dom_string *name, struct dom_node **node)
Definition namednodemap.c:137
Definition namednodemap.c:26
◆ dom_namednodemap_get_named_item_ns
#define dom_namednodemap_get_named_item_ns |
( |
| m, |
|
|
| n, |
|
|
| l, |
|
|
| r ) |
Value:
dom_exception _dom_namednodemap_get_named_item_ns(struct dom_namednodemap *map, dom_string *namespace, dom_string *localname, struct dom_node **node)
Definition namednodemap.c:234
◆ dom_namednodemap_item
#define dom_namednodemap_item |
( |
| m, |
|
|
| i, |
|
|
| n ) |
Value:
dom_exception _dom_namednodemap_item(struct dom_namednodemap *map, dom_ulong index, struct dom_node **node)
Definition namednodemap.c:211
◆ dom_namednodemap_remove_named_item
#define dom_namednodemap_remove_named_item |
( |
| m, |
|
|
| n, |
|
|
| r ) |
Value:
dom_exception _dom_namednodemap_remove_named_item(struct dom_namednodemap *map, dom_string *name, struct dom_node **node)
Definition namednodemap.c:189
◆ dom_namednodemap_remove_named_item_ns
#define dom_namednodemap_remove_named_item_ns |
( |
| m, |
|
|
| n, |
|
|
| l, |
|
|
| r ) |
Value:
dom_exception _dom_namednodemap_remove_named_item_ns(struct dom_namednodemap *map, dom_string *namespace, dom_string *localname, struct dom_node **node)
Definition namednodemap.c:299
◆ dom_namednodemap_set_named_item
#define dom_namednodemap_set_named_item |
( |
| m, |
|
|
| a, |
|
|
| n ) |
Value:
dom_exception _dom_namednodemap_set_named_item(struct dom_namednodemap *map, struct dom_node *arg, struct dom_node **node)
Definition namednodemap.c:168
◆ dom_namednodemap_set_named_item_ns
#define dom_namednodemap_set_named_item_ns |
( |
| m, |
|
|
| a, |
|
|
| n ) |
Value:
dom_exception _dom_namednodemap_set_named_item_ns(struct dom_namednodemap *map, struct dom_node *arg, struct dom_node **node)
Definition namednodemap.c:272
◆ dom_namednodemap
typedef struct dom_namednodemap dom_namednodemap |
◆ _dom_namednodemap_get_named_item()
Retrieve an item by name from a named node map
- Parameters
-
map | The map to retrieve the item from |
name | The name of the item to retrieve |
node | Pointer to location to receive item |
- Returns
- DOM_NO_ERR.
The returned node will have had its reference count increased. The client should unref the node once it has finished with it.
◆ _dom_namednodemap_get_named_item_ns()
Retrieve an item by namespace/localname from a named node map
- Parameters
-
map | The map to retrieve the item from |
namespace | The namespace URI of the item to retrieve |
localname | The local name of the node to retrieve |
node | Pointer to location to receive item |
- Returns
- DOM_NO_ERR on success, DOM_NOT_SUPPORTED_ERR if the implementation does not support the feature "XML" and the language exposed through the Document does not support Namespaces.
The returned node will have had its reference count increased. The client should unref the node once it has finished with it.
◆ _dom_namednodemap_item()
Retrieve an item from a named node map
- Parameters
-
map | The map to retrieve the item from |
index | The map index to retrieve |
node | Pointer to location to receive item |
- Returns
- DOM_NO_ERR.
::index is a zero-based index into ::map. ::index lies in the range [0, length-1]
The returned node will have had its reference count increased. The client should unref the node once it has finished with it.
◆ _dom_namednodemap_remove_named_item()
Remove an item by name from a named node map
- Parameters
-
map | The map to remove from |
name | The name of the item to remove |
node | Pointer to location to receive removed item |
- Returns
- DOM_NO_ERR on success, DOM_NOT_FOUND_ERR if there is no node named ::name in ::map, DOM_NO_MODIFICATION_ALLOWED_ERR if ::map is readonly.
The returned node will have had its reference count increased. The client should unref the node once it has finished with it.
◆ _dom_namednodemap_remove_named_item_ns()
Remove an item by namespace/localname from a named node map
- Parameters
-
map | The map to remove from |
namespace | The namespace URI of the item to remove |
localname | The local name of the item to remove |
node | Pointer to location to receive removed item |
- Returns
- DOM_NO_ERR on success, DOM_NOT_FOUND_ERR if there is no node named ::name in ::map, DOM_NO_MODIFICATION_ALLOWED_ERR if ::map is readonly. DOM_NOT_SUPPORTED_ERR if the implementation does not support the feature "XML" and the language exposed through the Document does not support Namespaces.
The returned node will have had its reference count increased. The client should unref the node once it has finished with it.
◆ _dom_namednodemap_set_named_item()
Add a node to a named node map, replacing any matching existing node
- Parameters
-
map | The map to add to |
arg | The node to add |
node | Pointer to location to receive replaced node |
- Returns
- DOM_NO_ERR on success, DOM_WRONG_DOCUMENT_ERR if ::arg was created from a different document than ::map, DOM_NO_MODIFICATION_ALLOWED_ERR if ::map is readonly, DOM_INUSE_ATTRIBUTE_ERR if ::arg is an Attr that is already an attribute on another Element, DOM_HIERARCHY_REQUEST_ERR if the type of ::arg is not permitted as a member of ::map.
::arg's nodeName attribute will be used to store it in ::map. It will be accessible using the nodeName attribute as the key for lookup.
Replacing a node by itself has no effect.
The returned node will have had its reference count increased. The client should unref the node once it has finished with it.
◆ _dom_namednodemap_set_named_item_ns()
Add a node to a named node map, replacing any matching existing node
- Parameters
-
map | The map to add to |
arg | The node to add |
node | Pointer to location to receive replaced node |
- Returns
- DOM_NO_ERR on success, DOM_WRONG_DOCUMENT_ERR if ::arg was created from a different document than ::map, DOM_NO_MODIFICATION_ALLOWED_ERR if ::map is readonly, DOM_INUSE_ATTRIBUTE_ERR if ::arg is an Attr that is already an attribute on another Element, DOM_HIERARCHY_REQUEST_ERR if the type of ::arg is not permitted as a member of ::map. DOM_NOT_SUPPORTED_ERR if the implementation does not support the feature "XML" and the language exposed through the Document does not support Namespaces.
::arg's namespaceURI and localName attributes will be used to store it in ::map. It will be accessible using the namespaceURI and localName attributes as the keys for lookup.
Replacing a node by itself has no effect.
The returned node will have had its reference count increased. The client should unref the node once it has finished with it.
◆ dom_namednodemap_get_length()
Retrieve the length of a named node map
- Parameters
-
map | Map to retrieve length of |
length | Pointer to location to receive length |
- Returns
- DOM_NO_ERR.
◆ dom_namednodemap_ref()
Claim a reference on a DOM named node map
- Parameters
-
map | The map to claim a reference on |
◆ dom_namednodemap_unref()
Release a reference on a DOM named node map
- Parameters
-
map | The map to release the reference from |
If the reference count reaches zero, any memory claimed by the map will be released