elementfactory: don't export private _gst_elementclass_factory quark

This commit is contained in:
Tim-Philipp Müller 2011-10-08 20:46:22 +01:00
parent ac40ab45b3
commit 534e077c18
3 changed files with 6 additions and 7 deletions

View file

@ -141,7 +141,7 @@ static GstObjectClass *parent_class = NULL;
static guint gst_element_signals[LAST_SIGNAL] = { 0 };
/* this is used in gstelementfactory.c:gst_element_register() */
GQuark _gst_elementclass_factory = 0;
GQuark __gst_elementclass_factory = 0;
GType
gst_element_get_type (void)
@ -166,7 +166,7 @@ gst_element_get_type (void)
_type = g_type_register_static (GST_TYPE_OBJECT, "GstElement",
&element_info, G_TYPE_FLAG_ABSTRACT);
_gst_elementclass_factory =
__gst_elementclass_factory =
g_quark_from_static_string ("GST_ELEMENTCLASS_FACTORY");
g_once_init_leave (&gst_element_type, _type);
}
@ -262,7 +262,7 @@ gst_element_base_class_init (gpointer g_class)
/* set the factory, see gst_element_register() */
element_class->elementfactory =
g_type_get_qdata (G_TYPE_FROM_CLASS (element_class),
_gst_elementclass_factory);
__gst_elementclass_factory);
GST_DEBUG ("type %s : factory %p", G_OBJECT_CLASS_NAME (element_class),
element_class->elementfactory);
}

View file

@ -77,7 +77,7 @@ static void gst_element_factory_cleanup (GstElementFactory * factory);
/* static guint gst_element_factory_signals[LAST_SIGNAL] = { 0 }; */
/* this is defined in gstelement.c */
extern GQuark _gst_elementclass_factory;
extern GQuark __gst_elementclass_factory;
#define _do_init \
{ \
@ -219,7 +219,7 @@ gst_element_register (GstPlugin * plugin, const gchar * name, guint rank,
factory = GST_ELEMENT_FACTORY_CAST (existing_feature);
factory->type = type;
existing_feature->loaded = TRUE;
g_type_set_qdata (type, _gst_elementclass_factory, factory);
g_type_set_qdata (type, __gst_elementclass_factory, factory);
gst_object_unref (existing_feature);
return TRUE;
}
@ -232,7 +232,7 @@ gst_element_register (GstPlugin * plugin, const gchar * name, guint rank,
g_type_name (type));
/* provide info needed during class structure setup */
g_type_set_qdata (type, _gst_elementclass_factory, factory);
g_type_set_qdata (type, __gst_elementclass_factory, factory);
klass = GST_ELEMENT_CLASS (g_type_class_ref (type));
#if 0
/* FIXME */

View file

@ -45,7 +45,6 @@ EXPORTS
_gst_debug_register_funcptr
_gst_disable_registry_cache DATA
_gst_element_error_printf
_gst_elementclass_factory DATA
_gst_event_type DATA
_gst_plugin_loader_client_run
_gst_structure_type DATA