Method

GLibNodefind

Declaration [src]

GNode*
g_node_find (
  GNode* root,
  GTraverseType order,
  GTraverseFlags flags,
  gpointer data
)

Description [src]

Finds a GNode in a tree.

This method is not directly available to language bindings.

Parameters

order

Type: GTraverseType

The order in which nodes are visited - G_IN_ORDER, G_PRE_ORDER, G_POST_ORDER, or G_LEVEL_ORDER.

flags

Type: GTraverseFlags

Which types of children are to be searched, one of G_TRAVERSE_ALL, G_TRAVERSE_LEAVES and G_TRAVERSE_NON_LEAVES.

data

Type: gpointer

The data to find.

The argument can be NULL.
The data is owned by the caller of the method.

Return value

Type: GNode

The found GNode, or NULL if the data is not found.

The returned data is owned by the instance.