diff options
author | Thibault Saunier <tsaunier@gnome.org> | 2015-12-02 13:50:02 +0100 |
---|---|---|
committer | Thibault Saunier <tsaunier@gnome.org> | 2015-12-02 13:50:02 +0100 |
commit | 167306dbe019197f5c245afd4a46f41ba940aa06 (patch) | |
tree | d0f028d4fa7344e2d8900cc22a50bf3619964518 | |
parent | 87fbaf966c086321a9f753ce603d898fb2ad64de (diff) |
validate: Add some documentation and annotiations
-rw-r--r-- | validate/gst/validate/gst-validate-utils.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/validate/gst/validate/gst-validate-utils.c b/validate/gst/validate/gst-validate-utils.c index e948a10..0a6c870 100644 --- a/validate/gst/validate/gst-validate-utils.c +++ b/validate/gst/validate/gst-validate-utils.c @@ -679,6 +679,18 @@ done: return result; } +/** + * gst_validate_utils_get_clocktime: + * @structure: A #GstStructure to retrieve @name as a GstClockTime. + * @name: The name of the field containing a #GstClockTime + * @retval: (out): The clocktime contained in @structure + * + * Get @name from @structure as a #GstClockTime, it handles various types + * for the value, if it is a double, it conciders the value to be in second + * it can be a gint, gint64 a guint, a gint64. + * + * Return: %TRUE in case of success, %FALSE otherwize. + */ gboolean gst_validate_utils_get_clocktime (GstStructure * structure, const gchar * name, GstClockTime * retval) |