|
Packit Service |
963350 |
/* GStreamer
|
|
Packit Service |
963350 |
* Copyright (C) 2009-2010 Edward Hervey <bilboed@bilboed.com>
|
|
Packit Service |
963350 |
* (C) 2011 Wim Taymans <wim.taymans@gmail.com>
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* gstatomicqueue.h:
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* This library is free software; you can redistribute it and/or
|
|
Packit Service |
963350 |
* modify it under the terms of the GNU Library General Public
|
|
Packit Service |
963350 |
* License as published by the Free Software Foundation; either
|
|
Packit Service |
963350 |
* version 2 of the License, or (at your option) any later version.
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* This library is distributed in the hope that it will be useful,
|
|
Packit Service |
963350 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
963350 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
963350 |
* Library General Public License for more details.
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* You should have received a copy of the GNU Library General Public
|
|
Packit Service |
963350 |
* License along with this library; if not, write to the
|
|
Packit Service |
963350 |
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
Packit Service |
963350 |
* Boston, MA 02110-1301, USA.
|
|
Packit Service |
963350 |
*/
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
#include <glib.h>
|
|
Packit Service |
963350 |
#include <glib-object.h>
|
|
Packit Service |
963350 |
#include <gst/gstconfig.h>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
#ifndef __GST_ATOMIC_QUEUE_H__
|
|
Packit Service |
963350 |
#define __GST_ATOMIC_QUEUE_H__
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
G_BEGIN_DECLS
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
#define GST_TYPE_ATOMIC_QUEUE (gst_atomic_queue_get_type())
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/**
|
|
Packit Service |
963350 |
* GstAtomicQueue:
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* Opaque atomic data queue.
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* Use the accessor functions to get the stored values.
|
|
Packit Service |
963350 |
*/
|
|
Packit Service |
963350 |
typedef struct _GstAtomicQueue GstAtomicQueue;
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
GST_API
|
|
Packit Service |
963350 |
GType gst_atomic_queue_get_type (void);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
GST_API
|
|
Packit Service |
963350 |
GstAtomicQueue * gst_atomic_queue_new (guint initial_size) G_GNUC_MALLOC;
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
GST_API
|
|
Packit Service |
963350 |
void gst_atomic_queue_ref (GstAtomicQueue * queue);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
GST_API
|
|
Packit Service |
963350 |
void gst_atomic_queue_unref (GstAtomicQueue * queue);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
GST_API
|
|
Packit Service |
963350 |
void gst_atomic_queue_push (GstAtomicQueue* queue, gpointer data);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
GST_API
|
|
Packit Service |
963350 |
gpointer gst_atomic_queue_pop (GstAtomicQueue* queue);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
GST_API
|
|
Packit Service |
963350 |
gpointer gst_atomic_queue_peek (GstAtomicQueue* queue);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
GST_API
|
|
Packit Service |
963350 |
guint gst_atomic_queue_length (GstAtomicQueue * queue);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
|
Packit Service |
963350 |
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstAtomicQueue, gst_atomic_queue_unref)
|
|
Packit Service |
963350 |
#endif
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
G_END_DECLS
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
#endif /* __GST_ATOMIC_QUEUE_H__ */
|