Method

GLibNodefind

Declaration

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

Description

Finds a GNode in a tree.

This method is not directly available to language bindings.

Parameters

order GTraverseType
 

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

flags GTraverseFlags
 

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

data gpointer
 

The data to find.

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

Return value

Returns: GNode
 

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

 The data is owned by the instance.