From: Tim-Philipp Müller Date: Sat, 19 May 2012 16:24:52 +0000 (+0100) Subject: pluginfeature: make GstPluginFeature structure private X-Git-Tag: RELEASE-0.11.92~80 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5b4417ff9e8e75ba925050853afd7b27bf638221;p=platform%2Fupstream%2Fgstreamer.git pluginfeature: make GstPluginFeature structure private Make GstPluginFeature opaque until we have time to clean it up a little. Only GstElementFactory and GstTypefindFactory derive from it, and they are opaque already, and we currently don't support custom plugin features in the registry anyway. --- diff --git a/gst/gst_private.h b/gst/gst_private.h index 4bf226e..4608f3f 100644 --- a/gst/gst_private.h +++ b/gst/gst_private.h @@ -296,6 +296,27 @@ struct _GstPluginClass { gpointer _gst_reserved[GST_PADDING]; }; +struct _GstPluginFeature { + GstObject object; + + /*< private >*/ + gboolean loaded; + guint rank; + + const gchar *plugin_name; + GstPlugin *plugin; /* weak ref */ + + /*< private >*/ + gpointer _gst_reserved[GST_PADDING]; +}; + +struct _GstPluginFeatureClass { + GstObjectClass parent_class; + + /*< private >*/ + gpointer _gst_reserved[GST_PADDING]; +}; + #include "gsttypefind.h" struct _GstTypeFindFactory { diff --git a/gst/gstpluginfeature.h b/gst/gstpluginfeature.h index c3f212c..a372281 100644 --- a/gst/gstpluginfeature.h +++ b/gst/gstpluginfeature.h @@ -38,6 +38,11 @@ G_BEGIN_DECLS #define GST_PLUGIN_FEATURE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_PLUGIN_FEATURE, GstPluginFeatureClass)) #define GST_PLUGIN_FEATURE_CAST(obj) ((GstPluginFeature*)(obj)) +/** + * GstPluginFeature: + * + * Opaque #GstPluginFeature structure. + */ typedef struct _GstPluginFeature GstPluginFeature; typedef struct _GstPluginFeatureClass GstPluginFeatureClass; @@ -85,32 +90,6 @@ typedef enum { #define gst_plugin_feature_set_name(feature,name) gst_object_set_name(GST_OBJECT_CAST(feature),name) /** - * GstPluginFeature: - * - * Opaque #GstPluginFeature structure. - */ -struct _GstPluginFeature { - GstObject object; - - /*< private >*/ - gboolean loaded; - guint rank; - - const gchar *plugin_name; - GstPlugin *plugin; /* weak ref */ - - /*< private >*/ - gpointer _gst_reserved[GST_PADDING]; -}; - -struct _GstPluginFeatureClass { - GstObjectClass parent_class; - - /*< private >*/ - gpointer _gst_reserved[GST_PADDING]; -}; - -/** * GstPluginFeatureFilter: * @feature: the pluginfeature to check * @user_data: the user_data that has been passed on e.g.