Function

GLibSequencenew

Declaration

GSequence*
g_sequence_new (
  GDestroyNotify data_destroy
)

Description

Creates a new GSequence. The data_destroy function, if non-NULL will be called on all items when the sequence is destroyed and on items that are removed from the sequence.

Available since:2.14

Parameters

data_destroy GDestroyNotify
 

A GDestroyNotify function, or NULL.

Return value

Returns: GSequence
 

A new GSequence.

 The caller of the function takes ownership of the data, and is responsible for freeing it.