mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-20 14:18:34 +00:00
gst/: Remove empty instance_init() functions to save relocs and lessen the noise. Remove some of the function prototy...
Original commit message from CVS: * gst/gstindexfactory.c: (gst_index_factory_get_type): * gst/gstplugin.c: (gst_plugin_init): * gst/gstpluginfeature.c: (gst_plugin_feature_init): * gst/gstquery.c: (gst_query_get_type): * gst/gstregistry.c: (gst_registry_init): * gst/gsturi.c: (gst_uri_handler_base_init): Remove empty instance_init() functions to save relocs and lessen the noise. Remove some of the function prototypes that are doubled by G_DEFINE_TYPE.
This commit is contained in:
parent
8aff242e77
commit
1756e6aa87
7 changed files with 20 additions and 24 deletions
12
ChangeLog
12
ChangeLog
|
@ -1,3 +1,15 @@
|
||||||
|
2007-06-27 Stefan Kost <ensonic@users.sf.net>
|
||||||
|
|
||||||
|
* gst/gstindexfactory.c: (gst_index_factory_get_type):
|
||||||
|
* gst/gstplugin.c: (gst_plugin_init):
|
||||||
|
* gst/gstpluginfeature.c: (gst_plugin_feature_init):
|
||||||
|
* gst/gstquery.c: (gst_query_get_type):
|
||||||
|
* gst/gstregistry.c: (gst_registry_init):
|
||||||
|
* gst/gsturi.c: (gst_uri_handler_base_init):
|
||||||
|
Remove empty instance_init() functions to save relocs and lessen the
|
||||||
|
noise. Remove some of the function prototypes that are doubled by
|
||||||
|
G_DEFINE_TYPE.
|
||||||
|
|
||||||
2007-06-27 Wim Taymans <wim@fluendo.com>
|
2007-06-27 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
Patch by: Étienne Noreau-Hébert <etienne at deepunder dot org>
|
Patch by: Étienne Noreau-Hébert <etienne at deepunder dot org>
|
||||||
|
|
|
@ -38,7 +38,6 @@
|
||||||
#include "gstregistry.h"
|
#include "gstregistry.h"
|
||||||
|
|
||||||
static void gst_index_factory_class_init (GstIndexFactoryClass * klass);
|
static void gst_index_factory_class_init (GstIndexFactoryClass * klass);
|
||||||
static void gst_index_factory_init (GstIndexFactory * factory);
|
|
||||||
static void gst_index_factory_finalize (GObject * object);
|
static void gst_index_factory_finalize (GObject * object);
|
||||||
|
|
||||||
static GstPluginFeatureClass *factory_parent_class = NULL;
|
static GstPluginFeatureClass *factory_parent_class = NULL;
|
||||||
|
@ -60,7 +59,7 @@ gst_index_factory_get_type (void)
|
||||||
NULL,
|
NULL,
|
||||||
sizeof (GstIndexFactory),
|
sizeof (GstIndexFactory),
|
||||||
0,
|
0,
|
||||||
(GInstanceInitFunc) gst_index_factory_init,
|
NULL,
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -86,11 +85,6 @@ gst_index_factory_class_init (GstIndexFactoryClass * klass)
|
||||||
gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_index_factory_finalize);
|
gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_index_factory_finalize);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
gst_index_factory_init (GstIndexFactory * factory)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_index_factory_finalize (GObject * object)
|
gst_index_factory_finalize (GObject * object)
|
||||||
{
|
{
|
||||||
|
|
|
@ -108,8 +108,8 @@ static const gchar *valid_licenses[] = {
|
||||||
|
|
||||||
static GstPlugin *gst_plugin_register_func (GstPlugin * plugin,
|
static GstPlugin *gst_plugin_register_func (GstPlugin * plugin,
|
||||||
GstPluginDesc * desc);
|
GstPluginDesc * desc);
|
||||||
static void
|
static void gst_plugin_desc_copy (GstPluginDesc * dest,
|
||||||
gst_plugin_desc_copy (GstPluginDesc * dest, const GstPluginDesc * src);
|
const GstPluginDesc * src);
|
||||||
static void gst_plugin_desc_free (GstPluginDesc * desc);
|
static void gst_plugin_desc_free (GstPluginDesc * desc);
|
||||||
|
|
||||||
|
|
||||||
|
@ -118,7 +118,7 @@ G_DEFINE_TYPE (GstPlugin, gst_plugin, GST_TYPE_OBJECT);
|
||||||
static void
|
static void
|
||||||
gst_plugin_init (GstPlugin * plugin)
|
gst_plugin_init (GstPlugin * plugin)
|
||||||
{
|
{
|
||||||
|
/* do nothing, needed because of G_DEFINE_TYPE */
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -39,8 +39,6 @@
|
||||||
|
|
||||||
#define GST_CAT_DEFAULT GST_CAT_PLUGIN_LOADING
|
#define GST_CAT_DEFAULT GST_CAT_PLUGIN_LOADING
|
||||||
|
|
||||||
static void gst_plugin_feature_class_init (GstPluginFeatureClass * klass);
|
|
||||||
static void gst_plugin_feature_init (GstPluginFeature * feature);
|
|
||||||
static void gst_plugin_feature_finalize (GObject * object);
|
static void gst_plugin_feature_finalize (GObject * object);
|
||||||
|
|
||||||
/* static guint gst_plugin_feature_signals[LAST_SIGNAL] = { 0 }; */
|
/* static guint gst_plugin_feature_signals[LAST_SIGNAL] = { 0 }; */
|
||||||
|
@ -60,7 +58,7 @@ gst_plugin_feature_class_init (GstPluginFeatureClass * klass)
|
||||||
static void
|
static void
|
||||||
gst_plugin_feature_init (GstPluginFeature * feature)
|
gst_plugin_feature_init (GstPluginFeature * feature)
|
||||||
{
|
{
|
||||||
|
/* do nothing, needed because of G_DEFINE_TYPE */
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -69,7 +69,6 @@
|
||||||
GST_DEBUG_CATEGORY_STATIC (gst_query_debug);
|
GST_DEBUG_CATEGORY_STATIC (gst_query_debug);
|
||||||
#define GST_CAT_DEFAULT gst_query_debug
|
#define GST_CAT_DEFAULT gst_query_debug
|
||||||
|
|
||||||
static void gst_query_init (GTypeInstance * instance, gpointer g_class);
|
|
||||||
static void gst_query_class_init (gpointer g_class, gpointer class_data);
|
static void gst_query_class_init (gpointer g_class, gpointer class_data);
|
||||||
static void gst_query_finalize (GstQuery * query);
|
static void gst_query_finalize (GstQuery * query);
|
||||||
static GstQuery *_gst_query_copy (GstQuery * query);
|
static GstQuery *_gst_query_copy (GstQuery * query);
|
||||||
|
@ -174,7 +173,7 @@ gst_query_get_type (void)
|
||||||
NULL,
|
NULL,
|
||||||
sizeof (GstQuery),
|
sizeof (GstQuery),
|
||||||
0,
|
0,
|
||||||
gst_query_init,
|
NULL,
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -207,12 +206,6 @@ gst_query_finalize (GstQuery * query)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
gst_query_init (GTypeInstance * instance, gpointer g_class)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
static GstQuery *
|
static GstQuery *
|
||||||
_gst_query_copy (GstQuery * query)
|
_gst_query_copy (GstQuery * query)
|
||||||
{
|
{
|
||||||
|
|
|
@ -122,8 +122,6 @@ enum
|
||||||
LAST_SIGNAL
|
LAST_SIGNAL
|
||||||
};
|
};
|
||||||
|
|
||||||
static void gst_registry_class_init (GstRegistryClass * klass);
|
|
||||||
static void gst_registry_init (GstRegistry * registry);
|
|
||||||
static void gst_registry_finalize (GObject * object);
|
static void gst_registry_finalize (GObject * object);
|
||||||
|
|
||||||
static guint gst_registry_signals[LAST_SIGNAL] = { 0 };
|
static guint gst_registry_signals[LAST_SIGNAL] = { 0 };
|
||||||
|
@ -177,6 +175,7 @@ gst_registry_class_init (GstRegistryClass * klass)
|
||||||
static void
|
static void
|
||||||
gst_registry_init (GstRegistry * registry)
|
gst_registry_init (GstRegistry * registry)
|
||||||
{
|
{
|
||||||
|
/* do nothing, needed because of G_DEFINE_TYPE */
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -85,7 +85,7 @@ gst_uri_handler_base_init (gpointer g_class)
|
||||||
{
|
{
|
||||||
static gboolean initialized = FALSE;
|
static gboolean initialized = FALSE;
|
||||||
|
|
||||||
if (!initialized) {
|
if (G_UNLIKELY (!initialized)) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GstURIHandler::new-uri:
|
* GstURIHandler::new-uri:
|
||||||
|
|
Loading…
Reference in a new issue