atomic queue: register as boxed type

This commit is contained in:
Evan Nemerson 2012-06-15 16:14:49 -07:00 committed by Wim Taymans
parent 6c6bb0e217
commit c29168ed5e
2 changed files with 8 additions and 0 deletions

View file

@ -39,6 +39,10 @@
* Since: 0.10.33
*/
G_DEFINE_BOXED_TYPE (GstAtomicQueue, gst_atomic_queue,
(GBoxedCopyFunc) gst_atomic_queue_ref,
(GBoxedFreeFunc) gst_atomic_queue_unref);
/* By default the queue uses 2 * sizeof(gpointer) * clp2 (max_items) of
* memory. clp2(x) is the next power of two >= than x.
*

View file

@ -27,6 +27,8 @@
G_BEGIN_DECLS
#define GST_TYPE_ATOMIC_QUEUE (gst_atomic_queue_get_type())
/**
* GstAtomicQueue:
*
@ -39,6 +41,8 @@ G_BEGIN_DECLS
typedef struct _GstAtomicQueue GstAtomicQueue;
GType gst_atomic_queue_get_type (void);
GstAtomicQueue * gst_atomic_queue_new (guint initial_size) G_GNUC_MALLOC;
void gst_atomic_queue_ref (GstAtomicQueue * queue);