summaryrefslogtreecommitdiff
path: root/gst/gststructure.c
diff options
context:
space:
mode:
authorEvan Nemerson <evan@nemerson.com>2014-06-11 15:21:34 -0700
committerSebastian Dröge <sebastian@centricular.com>2014-06-26 18:56:38 +0200
commit2759882379fb4fd91038be3ff35cc9180e231841 (patch)
tree4be2e6d0ebbdb93c868d80138f5ec7c592f09655 /gst/gststructure.c
parenteebff7b0487bffbac775208ef25a66b19a35d4ab (diff)
introspection: add missing (nullable) annotations to return values
Support for (nullable) was added to G-I at the same time as nullable return values. Previous versions of G-I will not mark return values as nullable, even when an (allow-none) annotation is present, so it is not necessary to add (allow-none) annotations for compatibility with older versions of G-I. https://bugzilla.gnome.org/show_bug.cgi?id=730957
Diffstat (limited to 'gst/gststructure.c')
-rw-r--r--gst/gststructure.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/gst/gststructure.c b/gst/gststructure.c
index 5013860fc..91f3ab3a3 100644
--- a/gst/gststructure.c
+++ b/gst/gststructure.c
@@ -1585,8 +1585,8 @@ gst_structure_get_double (const GstStructure * structure,
* The string should not be modified, and remains valid until the next
* call to a gst_structure_*() function with the given structure.
*
- * Returns: a pointer to the string or %NULL when the field did not exist
- * or did not contain a string.
+ * Returns: (nullable): a pointer to the string or %NULL when the
+ * field did not exist or did not contain a string.
*/
const gchar *
gst_structure_get_string (const GstStructure * structure,
@@ -2374,8 +2374,9 @@ priv_gst_structure_parse_fields (gchar * str, gchar ** end,
*
* Free-function: gst_structure_free
*
- * Returns: (transfer full): a new #GstStructure or %NULL when the string could
- * not be parsed. Free with gst_structure_free() after use.
+ * Returns: (transfer full) (nullable): a new #GstStructure or %NULL
+ * when the string could not be parsed. Free with
+ * gst_structure_free() after use.
*
* Since: 1.2
*/
@@ -2396,8 +2397,9 @@ gst_structure_new_from_string (const gchar * string)
*
* Free-function: gst_structure_free
*
- * Returns: (transfer full): a new #GstStructure or %NULL when the string could
- * not be parsed. Free with gst_structure_free() after use.
+ * Returns: (transfer full) (nullable): a new #GstStructure or %NULL
+ * when the string could not be parsed. Free with
+ * gst_structure_free() after use.
*/
GstStructure *
gst_structure_from_string (const gchar * string, gchar ** end)