From 14632db174876447b4ace8629930b1c4d4a5cff1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sat, 14 Jul 2012 20:00:30 +0100 Subject: [PATCH] plugins: sprinkle some more G_GNUC_INTERNAL --- plugins/elements/gstcapsfilter.h | 2 +- plugins/elements/gstfakesink.h | 2 +- plugins/elements/gstfakesrc.h | 2 +- plugins/elements/gstfdsink.h | 2 +- plugins/elements/gstfdsrc.h | 2 +- plugins/elements/gstfilesink.h | 2 +- plugins/elements/gstfilesrc.h | 2 +- plugins/elements/gstfunnel.h | 2 +- plugins/elements/gstidentity.h | 2 +- plugins/elements/gstinputselector.h | 2 +- plugins/elements/gstmultiqueue.h | 2 +- plugins/elements/gstoutputselector.h | 2 +- plugins/elements/gstqueue.h | 2 +- plugins/elements/gstqueue2.h | 2 +- plugins/elements/gstqueuearray.h | 30 ++++++++++++++++++--------- plugins/elements/gsttee.h | 2 +- plugins/elements/gsttypefindelement.h | 2 +- plugins/elements/gstvalve.h | 2 +- 18 files changed, 37 insertions(+), 27 deletions(-) diff --git a/plugins/elements/gstcapsfilter.h b/plugins/elements/gstcapsfilter.h index d132e66d48..9db6ebce2e 100644 --- a/plugins/elements/gstcapsfilter.h +++ b/plugins/elements/gstcapsfilter.h @@ -59,7 +59,7 @@ struct _GstCapsFilterClass { GstBaseTransformClass trans_class; }; -GType gst_capsfilter_get_type (void); +G_GNUC_INTERNAL GType gst_capsfilter_get_type (void); G_END_DECLS diff --git a/plugins/elements/gstfakesink.h b/plugins/elements/gstfakesink.h index 2db98b9581..274b45acbe 100644 --- a/plugins/elements/gstfakesink.h +++ b/plugins/elements/gstfakesink.h @@ -92,7 +92,7 @@ struct _GstFakeSinkClass { void (*preroll_handoff) (GstElement *element, GstBuffer *buf, GstPad *pad); }; -GType gst_fake_sink_get_type (void); +G_GNUC_INTERNAL GType gst_fake_sink_get_type (void); G_END_DECLS diff --git a/plugins/elements/gstfakesrc.h b/plugins/elements/gstfakesrc.h index 965fcb0a50..3ed0e608ee 100644 --- a/plugins/elements/gstfakesrc.h +++ b/plugins/elements/gstfakesrc.h @@ -159,7 +159,7 @@ struct _GstFakeSrcClass { void (*handoff) (GstElement *element, GstBuffer *buf, GstPad *pad); }; -GType gst_fake_src_get_type (void); +G_GNUC_INTERNAL GType gst_fake_src_get_type (void); G_END_DECLS diff --git a/plugins/elements/gstfdsink.h b/plugins/elements/gstfdsink.h index 59393d0247..643453d28b 100644 --- a/plugins/elements/gstfdsink.h +++ b/plugins/elements/gstfdsink.h @@ -67,7 +67,7 @@ struct _GstFdSinkClass { GstBaseSinkClass parent_class; }; -GType gst_fd_sink_get_type(void); +G_GNUC_INTERNAL GType gst_fd_sink_get_type (void); G_END_DECLS diff --git a/plugins/elements/gstfdsrc.h b/plugins/elements/gstfdsrc.h index aac1d528eb..16e696f0ba 100644 --- a/plugins/elements/gstfdsrc.h +++ b/plugins/elements/gstfdsrc.h @@ -80,7 +80,7 @@ struct _GstFdSrcClass { void (*timeout) (GstElement *element); }; -GType gst_fd_src_get_type(void); +G_GNUC_INTERNAL GType gst_fd_src_get_type(void); G_END_DECLS diff --git a/plugins/elements/gstfilesink.h b/plugins/elements/gstfilesink.h index 3f0d6cef1b..9776550bda 100644 --- a/plugins/elements/gstfilesink.h +++ b/plugins/elements/gstfilesink.h @@ -72,7 +72,7 @@ struct _GstFileSinkClass { GstBaseSinkClass parent_class; }; -GType gst_file_sink_get_type(void); +G_GNUC_INTERNAL GType gst_file_sink_get_type (void); G_END_DECLS diff --git a/plugins/elements/gstfilesrc.h b/plugins/elements/gstfilesrc.h index 5aa9f874fc..18c3c4170e 100644 --- a/plugins/elements/gstfilesrc.h +++ b/plugins/elements/gstfilesrc.h @@ -69,7 +69,7 @@ struct _GstFileSrcClass { GstBaseSrcClass parent_class; }; -GType gst_file_src_get_type (void); +G_GNUC_INTERNAL GType gst_file_src_get_type (void); G_END_DECLS diff --git a/plugins/elements/gstfunnel.h b/plugins/elements/gstfunnel.h index 588a6516fe..c968fcab99 100644 --- a/plugins/elements/gstfunnel.h +++ b/plugins/elements/gstfunnel.h @@ -62,7 +62,7 @@ struct _GstFunnelClass { GstElementClass parent_class; }; -GType gst_funnel_get_type (void); +G_GNUC_INTERNAL GType gst_funnel_get_type (void); G_END_DECLS diff --git a/plugins/elements/gstidentity.h b/plugins/elements/gstidentity.h index e02557b83a..835cf94222 100644 --- a/plugins/elements/gstidentity.h +++ b/plugins/elements/gstidentity.h @@ -81,7 +81,7 @@ struct _GstIdentityClass { void (*handoff) (GstElement *element, GstBuffer *buf); }; -GType gst_identity_get_type(void); +G_GNUC_INTERNAL GType gst_identity_get_type (void); G_END_DECLS diff --git a/plugins/elements/gstinputselector.h b/plugins/elements/gstinputselector.h index dd48a51087..2bfcd3ea4b 100644 --- a/plugins/elements/gstinputselector.h +++ b/plugins/elements/gstinputselector.h @@ -84,7 +84,7 @@ struct _GstInputSelectorClass { gint64 (*block) (GstInputSelector *self); }; -GType gst_input_selector_get_type (void); +G_GNUC_INTERNAL GType gst_input_selector_get_type (void); G_END_DECLS diff --git a/plugins/elements/gstmultiqueue.h b/plugins/elements/gstmultiqueue.h index 04c7501a80..986dc22afb 100644 --- a/plugins/elements/gstmultiqueue.h +++ b/plugins/elements/gstmultiqueue.h @@ -84,7 +84,7 @@ struct _GstMultiQueueClass { void (*overrun) (GstMultiQueue *queue); }; -GType gst_multi_queue_get_type (void); +G_GNUC_INTERNAL GType gst_multi_queue_get_type (void); G_END_DECLS diff --git a/plugins/elements/gstoutputselector.h b/plugins/elements/gstoutputselector.h index 8c55b44944..b2a47289da 100644 --- a/plugins/elements/gstoutputselector.h +++ b/plugins/elements/gstoutputselector.h @@ -61,7 +61,7 @@ struct _GstOutputSelectorClass { GstElementClass parent_class; }; -GType gst_output_selector_get_type (void); +G_GNUC_INTERNAL GType gst_output_selector_get_type (void); G_END_DECLS diff --git a/plugins/elements/gstqueue.h b/plugins/elements/gstqueue.h index e959f42cca..fd970421e9 100644 --- a/plugins/elements/gstqueue.h +++ b/plugins/elements/gstqueue.h @@ -148,7 +148,7 @@ struct _GstQueueClass { void (*pushing) (GstQueue *queue); }; -GType gst_queue_get_type (void); +G_GNUC_INTERNAL GType gst_queue_get_type (void); G_END_DECLS diff --git a/plugins/elements/gstqueue2.h b/plugins/elements/gstqueue2.h index 25beef4044..b69f46bf0e 100644 --- a/plugins/elements/gstqueue2.h +++ b/plugins/elements/gstqueue2.h @@ -156,7 +156,7 @@ struct _GstQueue2Class GstElementClass parent_class; }; -GType gst_queue2_get_type (void); +G_GNUC_INTERNAL GType gst_queue2_get_type (void); G_END_DECLS diff --git a/plugins/elements/gstqueuearray.h b/plugins/elements/gstqueuearray.h index dd2899346a..510cbf47db 100644 --- a/plugins/elements/gstqueuearray.h +++ b/plugins/elements/gstqueuearray.h @@ -35,17 +35,27 @@ struct _GstQueueArray guint length; }; -void gst_queue_array_init (GstQueueArray * array, guint initial_size); -void gst_queue_array_clear (GstQueueArray * array); +G_GNUC_INTERNAL void gst_queue_array_init (GstQueueArray * array, + guint initial_size); -GstQueueArray *gst_queue_array_new (guint initial_size); -gpointer gst_queue_array_pop_head (GstQueueArray * array); -void gst_queue_array_push_tail (GstQueueArray * array, gpointer data); -gboolean gst_queue_array_is_empty (GstQueueArray * array); -void gst_queue_array_free (GstQueueArray * array); +G_GNUC_INTERNAL void gst_queue_array_clear (GstQueueArray * array); -void gst_queue_array_drop_element (GstQueueArray * array, guint idx); -guint gst_queue_array_find (GstQueueArray * array, GCompareFunc func, - gpointer data); +G_GNUC_INTERNAL GstQueueArray * gst_queue_array_new (guint initial_size); + +G_GNUC_INTERNAL gpointer gst_queue_array_pop_head (GstQueueArray * array); + +G_GNUC_INTERNAL void gst_queue_array_push_tail (GstQueueArray * array, + gpointer data); + +G_GNUC_INTERNAL gboolean gst_queue_array_is_empty (GstQueueArray * array); + +G_GNUC_INTERNAL void gst_queue_array_free (GstQueueArray * array); + +G_GNUC_INTERNAL void gst_queue_array_drop_element (GstQueueArray * array, + guint idx); + +G_GNUC_INTERNAL guint gst_queue_array_find (GstQueueArray * array, + GCompareFunc func, + gpointer data); #endif diff --git a/plugins/elements/gsttee.h b/plugins/elements/gsttee.h index c48ad2a4ab..5d009477d6 100644 --- a/plugins/elements/gsttee.h +++ b/plugins/elements/gsttee.h @@ -86,7 +86,7 @@ struct _GstTeeClass { GstElementClass parent_class; }; -GType gst_tee_get_type (void); +G_GNUC_INTERNAL GType gst_tee_get_type (void); G_END_DECLS diff --git a/plugins/elements/gsttypefindelement.h b/plugins/elements/gsttypefindelement.h index 7d677998f2..2ee33256f8 100644 --- a/plugins/elements/gsttypefindelement.h +++ b/plugins/elements/gsttypefindelement.h @@ -74,7 +74,7 @@ struct _GstTypeFindElementClass { GstCaps *caps); }; -GType gst_type_find_element_get_type (void); +G_GNUC_INTERNAL GType gst_type_find_element_get_type (void); G_END_DECLS diff --git a/plugins/elements/gstvalve.h b/plugins/elements/gstvalve.h index d1d9bbb0df..c12c7c7fb2 100644 --- a/plugins/elements/gstvalve.h +++ b/plugins/elements/gstvalve.h @@ -70,7 +70,7 @@ struct _GstValveClass GstElementClass parent_class; }; -GType gst_valve_get_type (void); +G_GNUC_INTERNAL GType gst_valve_get_type (void); G_END_DECLS