From a8d5665db745d0be244471d671210ae4c4fffd39 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Mon, 9 Jul 2012 20:55:00 +0100 Subject: [PATCH] plugins: sprinkle G_GNUC_INTERNAL for dataqueue functions And remove padding, since this is not public API any more. --- plugins/elements/gstdataqueue.h | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/plugins/elements/gstdataqueue.h b/plugins/elements/gstdataqueue.h index ca86d7f..5f24ca2 100644 --- a/plugins/elements/gstdataqueue.h +++ b/plugins/elements/gstdataqueue.h @@ -138,7 +138,7 @@ struct _GstDataQueue GstDataQueueFullCallback fullcallback; GstDataQueueEmptyCallback emptycallback; - gpointer _gst_reserved[GST_PADDING]; + /* gpointer _gst_reserved[GST_PADDING]; */ }; struct _GstDataQueueClass @@ -149,31 +149,47 @@ struct _GstDataQueueClass void (*empty) (GstDataQueue * queue); void (*full) (GstDataQueue * queue); - gpointer _gst_reserved[GST_PADDING]; + /* gpointer _gst_reserved[GST_PADDING]; */ }; +G_GNUC_INTERNAL GType gst_data_queue_get_type (void); +G_GNUC_INTERNAL GstDataQueue * gst_data_queue_new (GstDataQueueCheckFullFunction checkfull, gpointer checkdata) G_GNUC_MALLOC; +G_GNUC_INTERNAL GstDataQueue * gst_data_queue_new_full (GstDataQueueCheckFullFunction checkfull, GstDataQueueFullCallback fullcallback, GstDataQueueEmptyCallback emptycallback, gpointer checkdata) G_GNUC_MALLOC; +G_GNUC_INTERNAL gboolean gst_data_queue_push (GstDataQueue * queue, GstDataQueueItem * item); + +G_GNUC_INTERNAL gboolean gst_data_queue_pop (GstDataQueue * queue, GstDataQueueItem ** item); +G_GNUC_INTERNAL void gst_data_queue_flush (GstDataQueue * queue); + +G_GNUC_INTERNAL void gst_data_queue_set_flushing (GstDataQueue * queue, gboolean flushing); +G_GNUC_INTERNAL gboolean gst_data_queue_drop_head (GstDataQueue * queue, GType type); +G_GNUC_INTERNAL gboolean gst_data_queue_is_full (GstDataQueue * queue); + +G_GNUC_INTERNAL gboolean gst_data_queue_is_empty (GstDataQueue * queue); +G_GNUC_INTERNAL void gst_data_queue_get_level (GstDataQueue * queue, GstDataQueueSize *level); + +G_GNUC_INTERNAL void gst_data_queue_limits_changed (GstDataQueue * queue); G_END_DECLS -- 2.7.4