Method

GLibQueuepeek_head

Declaration

gpointer
g_queue_peek_head (
  GQueue* queue
)

Description

Returns the first element of the queue.

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.