From 01c11ebf082aeec5b8f68ece1530c451f23b1822 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Mon, 10 Oct 2011 19:30:34 +0100 Subject: [PATCH] utils: remove gst_type_register_static_full() It was only really used by GST_BOILERPLATE, and that is no more. https://bugzilla.gnome.org/show_bug.cgi?id=660955 --- docs/gst/gstreamer-sections.txt | 1 - gst/gstutils.c | 70 ----------------------------------------- gst/gstutils.h | 14 --------- win32/common/libgstreamer.def | 1 - 4 files changed, 86 deletions(-) diff --git a/docs/gst/gstreamer-sections.txt b/docs/gst/gstreamer-sections.txt index 76167b3..f6f45d2 100644 --- a/docs/gst/gstreamer-sections.txt +++ b/docs/gst/gstreamer-sections.txt @@ -2777,7 +2777,6 @@ gst_print_element_args gst_print_pad_caps gst_guint64_to_gdouble gst_gdouble_to_guint64 -gst_type_register_static_full gst_util_dump_mem gst_util_uint64_scale gst_util_uint64_scale_round diff --git a/gst/gstutils.c b/gst/gstutils.c index 07eac6b..2cde8e4 100644 --- a/gst/gstutils.c +++ b/gst/gstutils.c @@ -3300,76 +3300,6 @@ gst_parse_bin_from_description_full (const gchar * bin_description, } /** - * gst_type_register_static_full: - * @parent_type: The GType of the parent type the newly registered type will - * derive from - * @type_name: NULL-terminated string used as the name of the new type - * @class_size: Size of the class structure. - * @base_init: Location of the base initialization function (optional). - * @base_finalize: Location of the base finalization function (optional). - * @class_init: Location of the class initialization function for class types - * Location of the default vtable initialization function for interface - * types. (optional) - * @class_finalize: Location of the class finalization function for class types. - * Location of the default vtable finalization function for interface types. - * (optional) - * @class_data: User-supplied data passed to the class init/finalize functions. - * @instance_size: Size of the instance (object) structure (required for - * instantiatable types only). - * @n_preallocs: The number of pre-allocated (cached) instances to reserve - * memory for (0 indicates no caching). Ignored on recent GLib's. - * @instance_init: Location of the instance initialization function (optional, - * for instantiatable types only). - * @value_table: A GTypeValueTable function table for generic handling of - * GValues of this type (usually only useful for fundamental types). - * @flags: #GTypeFlags for this GType. E.g: G_TYPE_FLAG_ABSTRACT - * - * Helper function which constructs a #GTypeInfo structure and registers a - * GType, but which generates less linker overhead than a static const - * #GTypeInfo structure. For further details of the parameters, please see - * #GTypeInfo in the GLib documentation. - * - * Registers type_name as the name of a new static type derived from - * parent_type. The value of flags determines the nature (e.g. abstract or - * not) of the type. It works by filling a GTypeInfo struct and calling - * g_type_register_static(). - * - * Returns: A #GType for the newly-registered type. - * - * Since: 0.10.14 - */ -GType -gst_type_register_static_full (GType parent_type, - const gchar * type_name, - guint class_size, - GBaseInitFunc base_init, - GBaseFinalizeFunc base_finalize, - GClassInitFunc class_init, - GClassFinalizeFunc class_finalize, - gconstpointer class_data, - guint instance_size, - guint16 n_preallocs, - GInstanceInitFunc instance_init, - const GTypeValueTable * value_table, GTypeFlags flags) -{ - GTypeInfo info; - - info.class_size = class_size; - info.base_init = base_init; - info.base_finalize = base_finalize; - info.class_init = class_init; - info.class_finalize = class_finalize; - info.class_data = class_data; - info.instance_size = instance_size; - info.n_preallocs = n_preallocs; - info.instance_init = instance_init; - info.value_table = value_table; - - return g_type_register_static (parent_type, type_name, &info, flags); -} - - -/** * gst_util_get_timestamp: * * Get a timestamp as GstClockTime to be used for interval measurements. diff --git a/gst/gstutils.h b/gst/gstutils.h index 8f1445a..628037b 100644 --- a/gst/gstutils.h +++ b/gst/gstutils.h @@ -78,20 +78,6 @@ void gst_print_pad_caps (GString *buf, gint indent, GstPad *pad); void gst_print_element_args (GString *buf, gint indent, GstElement *element); -GType gst_type_register_static_full (GType parent_type, - const gchar *type_name, - guint class_size, - GBaseInitFunc base_init, - GBaseFinalizeFunc base_finalize, - GClassInitFunc class_init, - GClassFinalizeFunc class_finalize, - gconstpointer class_data, - guint instance_size, - guint16 n_preallocs, - GInstanceInitFunc instance_init, - const GTypeValueTable *value_table, - GTypeFlags flags); - /** * GST_CALL_PARENT: * @parent_class_cast: the name of the class cast macro for the parent type diff --git a/win32/common/libgstreamer.def b/win32/common/libgstreamer.def index 5256d72..346c081 100644 --- a/win32/common/libgstreamer.def +++ b/win32/common/libgstreamer.def @@ -1141,7 +1141,6 @@ EXPORTS gst_type_find_register gst_type_find_suggest gst_type_find_suggest_simple - gst_type_register_static_full gst_update_registry gst_uri_construct gst_uri_get_location -- 2.7.4