gobj_walk_gobj_childs()
#
Traverses the direct child objects of the given hgobj
using the specified traversal method and applies a callback function to each child.
Prototype
int gobj_walk_gobj_childs(
hgobj gobj,
walk_type_t walk_type,
cb_walking_t cb_walking,
void *user_data,
void *user_data2
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
The parent |
|
|
The traversal method, which determines the order in which child objects are visited. |
|
|
A callback function that is applied to each child |
|
|
User-defined data passed to the callback function. |
|
|
Additional user-defined data passed to the callback function. |
Return Value
Returns 0 on success, or a negative value if an error occurs.
Notes
This function only traverses the direct children of the given hgobj
. To traverse the entire hierarchy, use gobj_walk_gobj_childs_tree()
.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples