mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
registry: remove padding and signal vfuncs
And fix signal GTypes and marshaller. No one will ever need to subclass our registry, so just remove the padding and the signal vfuncs.
This commit is contained in:
parent
65975daec9
commit
7f1103544d
3 changed files with 4 additions and 16 deletions
|
@ -4,7 +4,6 @@ VOID:INT
|
|||
VOID:STRING
|
||||
VOID:BOXED
|
||||
VOID:BOXED,OBJECT
|
||||
VOID:POINTER
|
||||
VOID:POINTER,OBJECT
|
||||
VOID:OBJECT
|
||||
VOID:OBJECT,OBJECT
|
||||
|
|
|
@ -229,8 +229,8 @@ gst_registry_class_init (GstRegistryClass * klass)
|
|||
*/
|
||||
gst_registry_signals[PLUGIN_ADDED] =
|
||||
g_signal_new ("plugin-added", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRegistryClass, plugin_added), NULL,
|
||||
NULL, gst_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER);
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, gst_marshal_VOID__OBJECT,
|
||||
G_TYPE_NONE, 1, GST_TYPE_PLUGIN);
|
||||
|
||||
/**
|
||||
* GstRegistry::feature-added:
|
||||
|
@ -242,8 +242,8 @@ gst_registry_class_init (GstRegistryClass * klass)
|
|||
*/
|
||||
gst_registry_signals[FEATURE_ADDED] =
|
||||
g_signal_new ("feature-added", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRegistryClass, feature_added),
|
||||
NULL, NULL, gst_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER);
|
||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, gst_marshal_VOID__OBJECT,
|
||||
G_TYPE_NONE, 1, GST_TYPE_PLUGIN_FEATURE);
|
||||
|
||||
gobject_class->finalize = gst_registry_finalize;
|
||||
}
|
||||
|
|
|
@ -51,23 +51,12 @@ struct _GstRegistry {
|
|||
|
||||
/*< private >*/
|
||||
GstRegistryPrivate *priv;
|
||||
|
||||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
struct _GstRegistryClass {
|
||||
GstObjectClass parent_class;
|
||||
|
||||
/* signals */
|
||||
void (*plugin_added) (GstRegistry *registry, GstPlugin *plugin);
|
||||
void (*feature_added) (GstRegistry *registry, GstPluginFeature *feature);
|
||||
|
||||
/*< private >*/
|
||||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
|
||||
/* normal GObject stuff */
|
||||
GType gst_registry_get_type (void);
|
||||
|
||||
GstRegistry * gst_registry_get_default (void);
|
||||
|
|
Loading…
Reference in a new issue