Go to the source code of this file.
◆ dom_nodelist_item
#define dom_nodelist_item |
( |
| l, |
|
|
| i, |
|
|
| n ) |
Value:
dom_exception _dom_nodelist_item(struct dom_nodelist *list, uint32_t index, struct dom_node **node)
Definition nodelist.c:305
◆ dom_nodelist
typedef struct dom_nodelist dom_nodelist |
◆ _dom_nodelist_item()
Retrieve an item from a node list
- Parameters
-
list | The list to retrieve the item from |
index | The list index to retrieve |
node | Pointer to location to receive item |
- Returns
- DOM_NO_ERR.
::index is a zero-based index into list. ::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.
NOTE: If node contains a node pointer already, it will NOT be unreffed. Managing the lifetime of that is up to the caller.
◆ dom_nodelist_get_length()
Retrieve the length of a node list
- Parameters
-
list | List to retrieve length of |
length | Pointer to location to receive length |
- Returns
- DOM_NO_ERR.
◆ dom_nodelist_ref()
Claim a reference on a DOM node list
- Parameters
-
list | The list to claim a reference on |
◆ dom_nodelist_unref()
Release a reference on a DOM node list
- Parameters
-
list | The list to release the reference from |
If the reference count reaches zero, any memory claimed by the list will be released