diff options
author | Evan Nemerson <evan@nemerson.com> | 2014-06-11 15:21:34 -0700 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2014-06-26 18:56:38 +0200 |
commit | 2759882379fb4fd91038be3ff35cc9180e231841 (patch) | |
tree | 4be2e6d0ebbdb93c868d80138f5ec7c592f09655 /gst/gstpluginfeature.c | |
parent | eebff7b0487bffbac775208ef25a66b19a35d4ab (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/gstpluginfeature.c')
-rw-r--r-- | gst/gstpluginfeature.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/gst/gstpluginfeature.c b/gst/gstpluginfeature.c index 6672f7bc7f..ef24eaf690 100644 --- a/gst/gstpluginfeature.c +++ b/gst/gstpluginfeature.c @@ -90,7 +90,8 @@ gst_plugin_feature_finalize (GObject * object) * feature = loaded_feature; * ]| * - * Returns: (transfer full): a reference to the loaded feature, or %NULL on error + * Returns: (transfer full) (nullable): a reference to the loaded + * feature, or %NULL on error */ GstPluginFeature * gst_plugin_feature_load (GstPluginFeature * feature) @@ -185,8 +186,9 @@ gst_plugin_feature_get_rank (GstPluginFeature * feature) * * Get the plugin that provides this feature. * - * Returns: (transfer full): the plugin that provides this feature, or %NULL. - * Unref with gst_object_unref() when no longer needed. + * Returns: (transfer full) (nullable): the plugin that provides this + * feature, or %NULL. Unref with gst_object_unref() when no + * longer needed. */ GstPlugin * gst_plugin_feature_get_plugin (GstPluginFeature * feature) @@ -205,8 +207,9 @@ gst_plugin_feature_get_plugin (GstPluginFeature * feature) * * Get the name of the plugin that provides this feature. * - * Returns: the name of the plugin that provides this feature, or %NULL if - * the feature is not associated with a plugin. + * Returns: (nullable): the name of the plugin that provides this + * feature, or %NULL if the feature is not associated with a + * plugin. * * Since: 1.2 */ |