mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-11-06 19:13:19 +01:00
Add G_QUEUE_INIT, g_queue_init(), and g_queue_clear() to better support
2007-03-06 Matthew Barnes <mbarnes@redhat.com> * glib/gqueue.h: * glib/gqueue.c: Add G_QUEUE_INIT, g_queue_init(), and g_queue_clear() to better support statically allocated queues. (#413244) svn path=/trunk/; revision=5378
This commit is contained in:
committed by
Matthew Barnes
parent
6ebc6d7382
commit
cc3e80c26a
@@ -40,10 +40,14 @@ struct _GQueue
|
||||
guint length;
|
||||
};
|
||||
|
||||
#define G_QUEUE_INIT { NULL, NULL, 0 }
|
||||
|
||||
/* Queues
|
||||
*/
|
||||
GQueue* g_queue_new (void);
|
||||
void g_queue_free (GQueue *queue);
|
||||
void g_queue_init (GQueue *queue);
|
||||
void g_queue_clear (GQueue *queue);
|
||||
gboolean g_queue_is_empty (GQueue *queue);
|
||||
guint g_queue_get_length (GQueue *queue);
|
||||
void g_queue_reverse (GQueue *queue);
|
||||
|
||||
Reference in New Issue
Block a user