gobj_walk_gobj_childs()

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

gobj

hgobj

The parent hgobj whose direct children will be traversed.

walk_type

walk_type_t

The traversal method, which determines the order in which child objects are visited.

cb_walking

cb_walking_t

A callback function that is applied to each child hgobj.

user_data

void *

User-defined data passed to the callback function.

user_data2

void *

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