Function

GLibNodenew

Declaration

GNode*
g_node_new (
  gpointer data
)

Description

Creates a new GNode containing the given data. Used to create the first node in a tree.

Parameters

data gpointer
 

The data of the new node.

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

Return value

Returns: GNode
 

A new GNode.

 The data is owned by the called function.