1 #if defined(G_DISABLE_SINGLE_INCLUDES) && !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION)
2 #error "Only <glib.h> can be included directly."
10 typedef struct _GPQueueNode GPQueueNode;
15 * An opaque structure representing a priority queue.
19 typedef struct _GPQueue GPQueue;
24 * An opaque value representing one entry in a #GPQueue.
28 typedef GPQueueNode* GPQueueHandle;
30 GPQueue* g_pqueue_new (GCompareDataFunc compare_func,
31 gpointer *compare_userdata);
33 void g_pqueue_free (GPQueue* pqueue);
35 gboolean g_pqueue_is_empty (GPQueue *pqueue);
37 void g_pqueue_foreach (GPQueue *pqueue,
41 GPtrArray* g_pqueue_get_array (GPQueue *pqueue);
43 GPQueueHandle g_pqueue_push (GPQueue *pqueue,
46 gpointer g_pqueue_peek (GPQueue *pqueue);
48 gpointer g_pqueue_pop (GPQueue *pqueue);
50 void g_pqueue_remove (GPQueue* pqueue,
53 void g_pqueue_priority_changed (GPQueue* pqueue,
56 void g_pqueue_priority_decreased (GPQueue* pqueue,
59 void g_pqueue_clear (GPQueue* pqueue);
63 #endif /* __G_PQUEUE_H__ */