mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 18:35:35 +00:00
make signals use dashes in the names
Original commit message from CVS: make signals use dashes in the names
This commit is contained in:
parent
66d37486d0
commit
97f89b5365
14 changed files with 39 additions and 23 deletions
16
ChangeLog
16
ChangeLog
|
@ -1,3 +1,19 @@
|
|||
2004-03-04 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* gst/elements/gstmultifilesrc.c: (gst_multifilesrc_class_init):
|
||||
* gst/gstbin.c: (gst_bin_class_init):
|
||||
* gst/gstelement.c: (gst_element_class_init):
|
||||
* gst/gstindex.c: (gst_index_class_init):
|
||||
* gst/gstobject.c: (gst_object_class_init),
|
||||
(gst_signal_object_class_init):
|
||||
* gst/gstpad.c: (gst_pad_template_class_init):
|
||||
* gst/gstregistry.c: (gst_registry_class_init):
|
||||
* gst/gsturi.c: (gst_uri_handler_base_init):
|
||||
* gst/gstxml.c: (gst_xml_class_init):
|
||||
* libs/gst/control/dparam.c: (gst_dparam_class_init):
|
||||
* libs/gst/control/dparammanager.c: (gst_dpman_class_init):
|
||||
make all signal names use dashes instead of underscore
|
||||
|
||||
2004-03-03 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* configure.ac: AC_SUBST GLIB_ONLY CFLAGS and LIBS
|
||||
|
|
2
docs/random/API
Normal file
2
docs/random/API
Normal file
|
@ -0,0 +1,2 @@
|
|||
* signals should use dashes in their names, not underscores, so ::notify
|
||||
works correctly
|
|
@ -94,7 +94,7 @@ gst_multifilesrc_class_init (GstMultiFileSrcClass *klass)
|
|||
|
||||
|
||||
gst_multifilesrc_signals[NEW_FILE] =
|
||||
g_signal_new ("new_file", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("new-file", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstMultiFileSrcClass, new_file), NULL, NULL,
|
||||
g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1,
|
||||
G_TYPE_STRING);
|
||||
|
|
|
@ -135,11 +135,11 @@ gst_bin_class_init (GstBinClass * klass)
|
|||
parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
|
||||
|
||||
gst_bin_signals[ELEMENT_ADDED] =
|
||||
g_signal_new ("element_added", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_FIRST,
|
||||
g_signal_new ("element-added", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_FIRST,
|
||||
G_STRUCT_OFFSET (GstBinClass, element_added), NULL, NULL,
|
||||
gst_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GST_TYPE_ELEMENT);
|
||||
gst_bin_signals[ELEMENT_REMOVED] =
|
||||
g_signal_new ("element_removed", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_FIRST,
|
||||
g_signal_new ("element-removed", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_FIRST,
|
||||
G_STRUCT_OFFSET (GstBinClass, element_removed), NULL, NULL,
|
||||
gst_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GST_TYPE_ELEMENT);
|
||||
gst_bin_signals[ITERATE] =
|
||||
|
|
|
@ -115,17 +115,17 @@ gst_element_class_init (GstElementClass *klass)
|
|||
parent_class = g_type_class_ref(GST_TYPE_OBJECT);
|
||||
|
||||
gst_element_signals[STATE_CHANGE] =
|
||||
g_signal_new ("state_change", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("state-change", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstElementClass, state_change), NULL, NULL,
|
||||
gst_marshal_VOID__INT_INT, G_TYPE_NONE, 2,
|
||||
G_TYPE_INT, G_TYPE_INT);
|
||||
gst_element_signals[NEW_PAD] =
|
||||
g_signal_new ("new_pad", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("new-pad", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstElementClass, new_pad), NULL, NULL,
|
||||
gst_marshal_VOID__OBJECT, G_TYPE_NONE, 1,
|
||||
G_TYPE_OBJECT);
|
||||
gst_element_signals[PAD_REMOVED] =
|
||||
g_signal_new ("pad_removed", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("pad-removed", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstElementClass, pad_removed), NULL, NULL,
|
||||
gst_marshal_VOID__OBJECT, G_TYPE_NONE, 1,
|
||||
G_TYPE_OBJECT);
|
||||
|
|
|
@ -138,7 +138,7 @@ gst_index_class_init (GstIndexClass *klass)
|
|||
parent_class = g_type_class_ref(GST_TYPE_OBJECT);
|
||||
|
||||
gst_index_signals[ENTRY_ADDED] =
|
||||
g_signal_new ("entry_added", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("entry-added", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstIndexClass, entry_added), NULL, NULL,
|
||||
gst_marshal_VOID__BOXED, G_TYPE_NONE, 1,
|
||||
GST_TYPE_INDEX_ENTRY);
|
||||
|
|
|
@ -130,19 +130,19 @@ gst_object_class_init (GstObjectClass *klass)
|
|||
NULL, G_PARAM_READWRITE));
|
||||
|
||||
gst_object_signals[PARENT_SET] =
|
||||
g_signal_new ("parent_set", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("parent-set", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstObjectClass, parent_set), NULL, NULL,
|
||||
g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1,
|
||||
G_TYPE_OBJECT);
|
||||
gst_object_signals[PARENT_UNSET] =
|
||||
g_signal_new ("parent_unset", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("parent-unset", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstObjectClass, parent_unset), NULL, NULL,
|
||||
g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1,
|
||||
G_TYPE_OBJECT);
|
||||
#ifndef GST_DISABLE_LOADSAVE_REGISTRY
|
||||
/* FIXME This should be the GType of xmlNodePtr instead of G_TYPE_POINTER */
|
||||
gst_object_signals[OBJECT_SAVED] =
|
||||
g_signal_new ("object_saved", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("object-saved", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstObjectClass, object_saved), NULL, NULL,
|
||||
g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1,
|
||||
G_TYPE_POINTER);
|
||||
|
@ -150,7 +150,7 @@ gst_object_class_init (GstObjectClass *klass)
|
|||
klass->restore_thyself = gst_object_real_restore_thyself;
|
||||
#endif
|
||||
gst_object_signals[DEEP_NOTIFY] =
|
||||
g_signal_new ("deep_notify", G_TYPE_FROM_CLASS (klass),
|
||||
g_signal_new ("deep-notify", G_TYPE_FROM_CLASS (klass),
|
||||
G_SIGNAL_RUN_FIRST | G_SIGNAL_NO_RECURSE | G_SIGNAL_DETAILED | G_SIGNAL_NO_HOOKS,
|
||||
G_STRUCT_OFFSET (GstObjectClass, deep_notify), NULL, NULL,
|
||||
gst_marshal_VOID__OBJECT_PARAM, G_TYPE_NONE,
|
||||
|
@ -808,7 +808,7 @@ gst_signal_object_class_init (GstSignalObjectClass *klass)
|
|||
|
||||
#ifndef GST_DISABLE_LOADSAVE_REGISTRY
|
||||
gst_signal_object_signals[SO_OBJECT_LOADED] =
|
||||
g_signal_new ("object_loaded", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("object-loaded", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstSignalObjectClass, object_loaded), NULL, NULL,
|
||||
gst_marshal_VOID__OBJECT_POINTER, G_TYPE_NONE, 2,
|
||||
G_TYPE_OBJECT, G_TYPE_POINTER);
|
||||
|
|
|
@ -3204,7 +3204,7 @@ gst_pad_template_class_init (GstPadTemplateClass *klass)
|
|||
padtemplate_parent_class = g_type_class_ref (GST_TYPE_OBJECT);
|
||||
|
||||
gst_pad_template_signals[TEMPL_PAD_CREATED] =
|
||||
g_signal_new ("pad_created", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("pad-created", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstPadTemplateClass, pad_created),
|
||||
NULL, NULL, gst_marshal_VOID__OBJECT, G_TYPE_NONE, 1,
|
||||
GST_TYPE_PAD);
|
||||
|
|
|
@ -82,7 +82,7 @@ gst_registry_class_init (GstRegistryClass *klass)
|
|||
parent_class = g_type_class_ref (G_TYPE_OBJECT);
|
||||
|
||||
gst_registry_signals[PLUGIN_ADDED] =
|
||||
g_signal_new ("plugin_added", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST,
|
||||
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);
|
||||
|
|
|
@ -67,14 +67,13 @@ gst_uri_handler_base_init (gpointer g_class)
|
|||
static gboolean initialized = FALSE;
|
||||
|
||||
if (!initialized) {
|
||||
g_signal_new ("new_uri", GST_TYPE_URI_HANDLER, G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("new-uri", GST_TYPE_URI_HANDLER, G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstURIHandlerInterface, new_uri), NULL, NULL,
|
||||
gst_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING);
|
||||
initialized = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
gst_uri_protocol_check_internal (const gchar *uri, gchar **endptr)
|
||||
{
|
||||
|
|
|
@ -74,7 +74,7 @@ gst_xml_class_init (GstXMLClass *klass)
|
|||
|
||||
/* FIXME G_TYPE_POINTER should be GType of xmlNodePtr */
|
||||
gst_xml_signals[OBJECT_LOADED] =
|
||||
g_signal_new ("object_loaded", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("object-loaded", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstXMLClass, object_loaded), NULL, NULL,
|
||||
gst_marshal_VOID__OBJECT_POINTER, G_TYPE_NONE, 2,
|
||||
GST_TYPE_OBJECT, G_TYPE_POINTER);
|
||||
|
|
|
@ -109,7 +109,7 @@ gst_dparam_class_init (GstDParamClass *klass)
|
|||
gobject_class->dispose = gst_dparam_dispose;
|
||||
|
||||
gst_dparam_signals[VALUE_CHANGED] =
|
||||
g_signal_new ("value_changed", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("value-changed", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstDParamClass, value_changed), NULL, NULL,
|
||||
gst_marshal_VOID__VOID, G_TYPE_NONE, 0);
|
||||
/*gstobject_class->save_thyself = gst_dparam_save_thyself; */
|
||||
|
|
|
@ -112,11 +112,10 @@ gst_dpman_class_init (GstDParamManagerClass *klass)
|
|||
|
||||
|
||||
gst_dpman_signals[NEW_REQUIRED_DPARAM] =
|
||||
g_signal_new ("new_required_dparam", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("new-required-dparam", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstDParamManagerClass, new_required_dparam), NULL, NULL,
|
||||
gst_marshal_VOID__STRING, G_TYPE_NONE, 1,
|
||||
G_TYPE_STRING);
|
||||
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -94,7 +94,7 @@ gst_multifilesrc_class_init (GstMultiFileSrcClass *klass)
|
|||
|
||||
|
||||
gst_multifilesrc_signals[NEW_FILE] =
|
||||
g_signal_new ("new_file", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("new-file", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstMultiFileSrcClass, new_file), NULL, NULL,
|
||||
g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1,
|
||||
G_TYPE_STRING);
|
||||
|
|
Loading…
Reference in a new issue