Method

GLibQueuepop_head

Declaration

gpointer
g_queue_pop_head (
  GQueue* queue
)

Description

Removes the first element of the queue and returns its data.

Return value

Type: gpointer

The data of the first element in the queue, or NULL if the queue is empty.

The data is owned by the instance.
The return value can be NULL.