plugin: remove gst_plugin_name_filter
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Sun, 29 Apr 2012 17:35:11 +0000 (18:35 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Sun, 29 Apr 2012 17:35:11 +0000 (18:35 +0100)
It's only used internally, most other users will likely
want to use gst_registry_find_plugin() directly instead
(and if not, they can easily walk the list and doing the
strcmp themselves).

docs/gst/gstreamer-sections.txt
gst/gstplugin.c
gst/gstplugin.h
gst/gstregistry.c
win32/common/libgstreamer.def

index c0480b7..8e7ebfb 100644 (file)
@@ -1998,7 +1998,6 @@ gst_plugin_get_release_date_string
 gst_plugin_is_loaded
 gst_plugin_get_cache_data
 gst_plugin_set_cache_data
-gst_plugin_name_filter
 gst_plugin_load_file
 gst_plugin_load
 gst_plugin_load_by_name
index 7fa2582..3f7c314 100644 (file)
@@ -1159,25 +1159,7 @@ gst_plugin_list_feature_filter (GList * list,
 
   return data.result;
 }
-#endif
-
-/**
- * gst_plugin_name_filter:
- * @plugin: the plugin to check
- * @name: the name of the plugin
- *
- * A standard filter that returns TRUE when the plugin is of the
- * given name.
- *
- * Returns: TRUE if the plugin is of the given name.
- */
-gboolean
-gst_plugin_name_filter (GstPlugin * plugin, const gchar * name)
-{
-  return (plugin->desc.name && !strcmp (plugin->desc.name, name));
-}
 
-#if 0
 /**
  * gst_plugin_find_feature:
  * @plugin: plugin to get the feature from
index 90d4836..fcf9a2f 100644 (file)
@@ -298,8 +298,6 @@ void                        gst_plugin_set_cache_data       (GstPlugin * plugin, GstStructure *cache_data);
 
 gboolean               gst_plugin_is_loaded            (GstPlugin *plugin);
 
-gboolean               gst_plugin_name_filter          (GstPlugin *plugin, const gchar *name);
-
 GstPlugin *            gst_plugin_load_file            (const gchar *filename, GError** error);
 
 GstPlugin *             gst_plugin_load                 (GstPlugin *plugin);
index 5e4d7bc..0575709 100644 (file)
@@ -816,6 +816,12 @@ gst_registry_feature_filter (GstRegistry * registry,
   return list;
 }
 
+static gboolean
+gst_registry_plugin_name_filter (GstPlugin * plugin, const gchar * name)
+{
+  return (plugin->desc.name && !strcmp (plugin->desc.name, name));
+}
+
 /**
  * gst_registry_find_plugin:
  * @registry: the registry to search
@@ -839,7 +845,7 @@ gst_registry_find_plugin (GstRegistry * registry, const gchar * name)
   g_return_val_if_fail (name != NULL, NULL);
 
   walk = gst_registry_plugin_filter (registry,
-      (GstPluginFilter) gst_plugin_name_filter, TRUE, (gpointer) name);
+      (GstPluginFilter) gst_registry_plugin_name_filter, TRUE, (gpointer) name);
   if (walk) {
     result = GST_PLUGIN_CAST (walk->data);
 
index 9981e5b..351e502 100644 (file)
@@ -773,7 +773,6 @@ EXPORTS
        gst_plugin_load
        gst_plugin_load_by_name
        gst_plugin_load_file
-       gst_plugin_name_filter
        gst_plugin_register_static
        gst_plugin_register_static_full
        gst_plugin_set_cache_data