mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 21:18:52 +00:00
various: wrap property registration and add a single fixme for long desc.
This commit is contained in:
parent
8ab60bd7cd
commit
92634ff92a
4 changed files with 54 additions and 20 deletions
|
@ -116,9 +116,12 @@ gst_artsdsink_class_init (GstArtsdsinkClass * klass)
|
||||||
|
|
||||||
parent_class = g_type_class_peek_parent (klass);
|
parent_class = g_type_class_peek_parent (klass);
|
||||||
|
|
||||||
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_MUTE, g_param_spec_boolean ("mute", "mute", "mute", TRUE, G_PARAM_READWRITE)); /* CHECKME */
|
/* FIXME: add long property descriptions */
|
||||||
|
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_MUTE,
|
||||||
|
g_param_spec_boolean ("mute", "mute", "mute", TRUE, G_PARAM_READWRITE));
|
||||||
|
|
||||||
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_NAME, g_param_spec_string ("name", "name", "name", NULL, G_PARAM_READWRITE)); /* CHECKME */
|
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_NAME,
|
||||||
|
g_param_spec_string ("name", "name", "name", NULL, G_PARAM_READWRITE));
|
||||||
|
|
||||||
gobject_class->set_property = gst_artsdsink_set_property;
|
gobject_class->set_property = gst_artsdsink_set_property;
|
||||||
gobject_class->get_property = gst_artsdsink_get_property;
|
gobject_class->get_property = gst_artsdsink_get_property;
|
||||||
|
|
|
@ -160,8 +160,13 @@ gst_afsink_class_init (GstAFSinkClass * klass)
|
||||||
gst_element_class_install_std_props (GST_ELEMENT_CLASS (klass),
|
gst_element_class_install_std_props (GST_ELEMENT_CLASS (klass),
|
||||||
"location", ARG_LOCATION, G_PARAM_READWRITE, NULL);
|
"location", ARG_LOCATION, G_PARAM_READWRITE, NULL);
|
||||||
|
|
||||||
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_TYPE, g_param_spec_enum ("type", "type", "type", GST_TYPE_AFSINK_TYPES, 0, G_PARAM_READWRITE)); /* CHECKME! */
|
/* FIXME: add long property descriptions */
|
||||||
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_OUTPUT_ENDIANNESS, g_param_spec_int ("endianness", "endianness", "endianness", G_MININT, G_MAXINT, 0, G_PARAM_READWRITE)); /* CHECKME */
|
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_TYPE,
|
||||||
|
g_param_spec_enum ("type", "type", "type", GST_TYPE_AFSINK_TYPES, 0,
|
||||||
|
G_PARAM_READWRITE));
|
||||||
|
g_object_class_install_property (G_OBJECT_CLASS (klass),
|
||||||
|
ARG_OUTPUT_ENDIANNESS, g_param_spec_int ("endianness", "endianness",
|
||||||
|
"endianness", G_MININT, G_MAXINT, 0, G_PARAM_READWRITE));
|
||||||
|
|
||||||
gst_afsink_signals[SIGNAL_HANDOFF] =
|
gst_afsink_signals[SIGNAL_HANDOFF] =
|
||||||
g_signal_new ("handoff", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST,
|
g_signal_new ("handoff", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST,
|
||||||
|
|
|
@ -129,33 +129,52 @@ gst_icecastsend_class_init (GstIcecastSendClass * klass)
|
||||||
|
|
||||||
parent_class = g_type_class_peek_parent (klass);
|
parent_class = g_type_class_peek_parent (klass);
|
||||||
|
|
||||||
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_IP, g_param_spec_string ("ip", "ip", "ip", NULL, G_PARAM_READWRITE)); /* CHECKME */
|
/* FIXME: add long property descriptions */
|
||||||
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_PORT, g_param_spec_int ("port", "port", "port", G_MININT, G_MAXINT, 0, G_PARAM_READWRITE)); /* CHECKME */
|
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_IP,
|
||||||
|
g_param_spec_string ("ip", "ip", "ip", NULL, G_PARAM_READWRITE));
|
||||||
|
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_PORT,
|
||||||
|
g_param_spec_int ("port", "port", "port", G_MININT, G_MAXINT, 0,
|
||||||
|
G_PARAM_READWRITE));
|
||||||
|
|
||||||
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_PASSWORD, g_param_spec_string ("password", "password", "password", NULL, G_PARAM_READWRITE)); /* CHECKME */
|
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_PASSWORD,
|
||||||
|
g_param_spec_string ("password", "password", "password", NULL,
|
||||||
|
G_PARAM_READWRITE));
|
||||||
|
|
||||||
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_PUBLIC, g_param_spec_boolean ("public", "public", "public", TRUE, G_PARAM_READWRITE)); /* CHECKME */
|
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_PUBLIC,
|
||||||
|
g_param_spec_boolean ("public", "public", "public", TRUE,
|
||||||
|
G_PARAM_READWRITE));
|
||||||
|
|
||||||
/* metadata */
|
/* metadata */
|
||||||
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_NAME, g_param_spec_string ("name", "name", "name", NULL, G_PARAM_READWRITE)); /* CHECKME */
|
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_NAME,
|
||||||
|
g_param_spec_string ("name", "name", "name", NULL, G_PARAM_READWRITE));
|
||||||
|
|
||||||
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_DESCRIPTION, g_param_spec_string ("description", "description", "description", NULL, G_PARAM_READWRITE)); /* CHECKME */
|
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_DESCRIPTION,
|
||||||
|
g_param_spec_string ("description", "description", "description", NULL,
|
||||||
|
G_PARAM_READWRITE));
|
||||||
|
|
||||||
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_GENRE, g_param_spec_string ("genre", "genre", "genre", NULL, G_PARAM_READWRITE)); /* CHECKME */
|
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_GENRE,
|
||||||
|
g_param_spec_string ("genre", "genre", "genre", NULL, G_PARAM_READWRITE));
|
||||||
|
|
||||||
/* icecast only */
|
/* icecast only */
|
||||||
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_MOUNT, g_param_spec_string ("mount", "mount", "mount", NULL, G_PARAM_READWRITE)); /* CHECKME */
|
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_MOUNT,
|
||||||
|
g_param_spec_string ("mount", "mount", "mount", NULL, G_PARAM_READWRITE));
|
||||||
|
|
||||||
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_DUMPFILE, g_param_spec_string ("dumpfile", "dumpfile", "dumpfile", NULL, G_PARAM_READWRITE)); /* CHECKME */
|
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_DUMPFILE,
|
||||||
|
g_param_spec_string ("dumpfile", "dumpfile", "dumpfile", NULL,
|
||||||
|
G_PARAM_READWRITE));
|
||||||
|
|
||||||
/* shoutcast only */
|
/* shoutcast only */
|
||||||
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_ICY, g_param_spec_boolean ("icy", "icy", "icy", FALSE, G_PARAM_READWRITE)); /* CHECKME */
|
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_ICY,
|
||||||
|
g_param_spec_boolean ("icy", "icy", "icy", FALSE, G_PARAM_READWRITE));
|
||||||
|
|
||||||
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_AIM, g_param_spec_string ("aim", "aim", "aim", NULL, G_PARAM_READWRITE)); /* CHECKME */
|
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_AIM,
|
||||||
|
g_param_spec_string ("aim", "aim", "aim", NULL, G_PARAM_READWRITE));
|
||||||
|
|
||||||
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_ICQ, g_param_spec_string ("icq", "icq", "icq", NULL, G_PARAM_READWRITE)); /* CHECKME */
|
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_ICQ,
|
||||||
|
g_param_spec_string ("icq", "icq", "icq", NULL, G_PARAM_READWRITE));
|
||||||
|
|
||||||
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_IRC, g_param_spec_string ("irc", "irc", "irc", NULL, G_PARAM_READWRITE)); /* CHECKME */
|
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_IRC,
|
||||||
|
g_param_spec_string ("irc", "irc", "irc", NULL, G_PARAM_READWRITE));
|
||||||
|
|
||||||
|
|
||||||
gobject_class->set_property = gst_icecastsend_set_property;
|
gobject_class->set_property = gst_icecastsend_set_property;
|
||||||
|
|
|
@ -123,9 +123,16 @@ gst_smooth_class_init (GstSmoothClass * klass)
|
||||||
|
|
||||||
parent_class = g_type_class_peek_parent (klass);
|
parent_class = g_type_class_peek_parent (klass);
|
||||||
|
|
||||||
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_ACTIVE, g_param_spec_boolean ("active", "active", "active", TRUE, G_PARAM_READWRITE)); /* CHECKME */
|
/* FIXME: add long property descriptions */
|
||||||
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_TOLERANCE, g_param_spec_int ("tolerance", "tolerance", "tolerance", G_MININT, G_MAXINT, 0, G_PARAM_READWRITE)); /* CHECKME */
|
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_ACTIVE,
|
||||||
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_FILTERSIZE, g_param_spec_int ("filtersize", "filtersize", "filtersize", G_MININT, G_MAXINT, 0, G_PARAM_READWRITE)); /* CHECKME */
|
g_param_spec_boolean ("active", "active", "active", TRUE,
|
||||||
|
G_PARAM_READWRITE));
|
||||||
|
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_TOLERANCE,
|
||||||
|
g_param_spec_int ("tolerance", "tolerance", "tolerance", G_MININT,
|
||||||
|
G_MAXINT, 0, G_PARAM_READWRITE));
|
||||||
|
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_FILTERSIZE,
|
||||||
|
g_param_spec_int ("filtersize", "filtersize", "filtersize", G_MININT,
|
||||||
|
G_MAXINT, 0, G_PARAM_READWRITE));
|
||||||
|
|
||||||
gobject_class->set_property = gst_smooth_set_property;
|
gobject_class->set_property = gst_smooth_set_property;
|
||||||
gobject_class->get_property = gst_smooth_get_property;
|
gobject_class->get_property = gst_smooth_get_property;
|
||||||
|
|
Loading…
Reference in a new issue