From 35441095b2b03c99356fde106cb5f65f1d782dc0 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Wed, 5 Jan 2005 13:17:28 +0000 Subject: [PATCH] another shell oneliner for empty return value docs more doc fixes (parameters and return values) Original commit message from CVS: another shell oneliner for empty return value docs more doc fixes (parameters and return values) --- ChangeLog | 9 +++++++++ docs/README | 5 ++++- gst/gstcaps.c | 4 ++-- gst/gstvalue.c | 6 ++++-- libs/gst/control/dparam.c | 8 ++++---- libs/gst/control/dparammanager.c | 36 ++++++++++++++++++++++++++++++------ 6 files changed, 53 insertions(+), 15 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9eb990b..a013f22 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2005-01-05 Stefan Kost + + * docs/README: + another shell oneliner for empty return value docs + * gst/gstcaps.c: + * gst/gstvalue.c: + * libs/gst/control/dparam.c: + more doc fixes (parameters and return values) + 2005-01-05 Vincent Torri Reviewed by: Ronald S. Bultje diff --git a/docs/README b/docs/README index 87d61c2..a8eb18e 100644 --- a/docs/README +++ b/docs/README @@ -138,7 +138,10 @@ GTK-DOC NOTES with the types in XXX.types to detect entries that are maybe missing - gtk docs does not warns about empty member docs!, run - find . -name "*.[c,h]" -exec egrep -Hn "^ +\* +@.*: *$" {} \; | wc -l + find . -name "*.[c,h]" -exec egrep -Hn "^ +\* +@.*: *$" {} \; + in the project root to find them + - gtk docs does not warns about empty Returns: docs!, run + find . -name "*.[c,h]" -exec egrep -Hn "^ +\* +@Returns: *$" {} \; in the project root to find them * what happens during a gtk-doc build ? diff --git a/gst/gstcaps.c b/gst/gstcaps.c index 1fd50f5..2bf0799 100644 --- a/gst/gstcaps.c +++ b/gst/gstcaps.c @@ -361,11 +361,11 @@ gst_caps_remove_structure (GstCaps * caps, guint idx) /** * gst_caps_split_one: - * @caps: + * @caps: a #GstCaps * * This function is not implemented. * - * Returns: + * Returns: NULL */ GstCaps * gst_caps_split_one (GstCaps * caps) diff --git a/gst/gstvalue.c b/gst/gstvalue.c index 10c81f0..02f2495 100644 --- a/gst/gstvalue.c +++ b/gst/gstvalue.c @@ -2249,9 +2249,11 @@ gst_value_register (const GstValueTable * table) /** * gst_value_init_and_copy: - * @dest: - * @src: + * @dest: the target value + * @src: the source value * + * Initialises the target value to be of the same type as source and then copies + * the contents from source to target. */ void gst_value_init_and_copy (GValue * dest, const GValue * src) diff --git a/libs/gst/control/dparam.c b/libs/gst/control/dparam.c index 32654c3..9dc297a 100644 --- a/libs/gst/control/dparam.c +++ b/libs/gst/control/dparam.c @@ -247,10 +247,10 @@ gst_dparam_set_property (GObject * object, guint prop_id, const GValue * value, /** * gst_dparam_do_update_default: - * @dparam: - * @timestamp: - * @value: - * @update_info: + * @dparam: the parameter to update + * @timestamp: when should the update take place + * @value: the new value + * @update_info: unused here * * Default implementation for changing a dynamic parameter. * Subclasses might overwrite the behaviour of this. diff --git a/libs/gst/control/dparammanager.c b/libs/gst/control/dparammanager.c index 61ce607..87c329c 100644 --- a/libs/gst/control/dparammanager.c +++ b/libs/gst/control/dparammanager.c @@ -205,7 +205,10 @@ gst_dpman_add_required_dparam_callback (GstDParamManager * dpman, dpwrap = gst_dpman_new_wrapper (dpman, param_spec, unit_name, GST_DPMAN_CALLBACK); - g_return_val_if_fail (dpwrap != NULL, FALSE); + if (!dpwrap) { + GST_INFO ("failed to obtain a new dparam wrapper"); + return FALSE; + } GST_DEBUG ("adding required callback dparam '%s'", g_param_spec_get_name (param_spec)); @@ -244,7 +247,10 @@ gst_dpman_add_required_dparam_direct (GstDParamManager * dpman, dpwrap = gst_dpman_new_wrapper (dpman, param_spec, unit_name, GST_DPMAN_DIRECT); - g_return_val_if_fail (dpwrap != NULL, FALSE); + if (!dpwrap) { + GST_INFO ("failed to obtain a new dparam wrapper"); + return FALSE; + } GST_DEBUG ("adding required direct dparam '%s'", g_param_spec_get_name (param_spec)); @@ -282,7 +288,10 @@ gst_dpman_add_required_dparam_array (GstDParamManager * dpman, dpwrap = gst_dpman_new_wrapper (dpman, param_spec, unit_name, GST_DPMAN_ARRAY); - g_return_val_if_fail (dpwrap != NULL, FALSE); + if (!dpwrap) { + GST_INFO ("failed to obtain a new dparam wrapper"); + return FALSE; + } GST_DEBUG ("adding required array dparam '%s'", g_param_spec_get_name (param_spec)); @@ -353,7 +362,12 @@ gst_dpman_attach_dparam (GstDParamManager * dpman, const gchar * dparam_name, dpwrap = gst_dpman_get_wrapper (dpman, dparam_name); - g_return_val_if_fail (dpwrap != NULL, FALSE); + if (!dpwrap) { + GST_INFO ("failed to obtain get the dparam wrapper for parameter '%s'", + dparam_name); + return FALSE; + } + // FIXME: if these are triggered convert them to messages + returns as well g_return_val_if_fail (dpwrap->value != NULL, FALSE); g_return_val_if_fail (G_PARAM_SPEC_VALUE_TYPE (dpwrap->param_spec) == GST_DPARAM_TYPE (dparam), FALSE); @@ -407,7 +421,12 @@ gst_dpman_get_dparam (GstDParamManager * dpman, const gchar * dparam_name) g_return_val_if_fail (dparam_name != NULL, NULL); dpwrap = gst_dpman_get_wrapper (dpman, dparam_name); - g_return_val_if_fail (dpwrap != NULL, NULL); + + if (!dpwrap) { + GST_INFO ("failed to obtain get the dparam wrapper for parameter '%s'", + dparam_name); + return NULL; + } return dpwrap->dparam; } @@ -431,7 +450,12 @@ gst_dpman_get_dparam_type (GstDParamManager * dpman, const gchar * dparam_name) g_return_val_if_fail (dparam_name != NULL, 0); dpwrap = gst_dpman_get_wrapper (dpman, dparam_name); - g_return_val_if_fail (dpwrap != NULL, 0); + + if (!dpwrap) { + GST_INFO ("failed to obtain get the dparam wrapper for parameter '%s'", + dparam_name); + return 0; + } return G_VALUE_TYPE (dpwrap->value); } -- 2.7.4