From: Tim-Philipp Müller Date: Mon, 9 Jul 2012 19:55:00 +0000 (+0100) Subject: plugins: sprinkle G_GNUC_INTERNAL for dataqueue functions X-Git-Tag: RELEASE-0.11.93~122 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a8d5665db745d0be244471d671210ae4c4fffd39;p=platform%2Fupstream%2Fgstreamer.git plugins: sprinkle G_GNUC_INTERNAL for dataqueue functions And remove padding, since this is not public API any more. --- 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