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/gstbus.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/gstbus.c')
-rw-r--r-- | gst/gstbus.c | 43 |
1 files changed, 23 insertions, 20 deletions
diff --git a/gst/gstbus.c b/gst/gstbus.c index 69cf6b982..0d784e19d 100644 --- a/gst/gstbus.c +++ b/gst/gstbus.c @@ -467,10 +467,11 @@ gst_bus_set_flushing (GstBus * bus, gboolean flushing) * @timeout is #GST_CLOCK_TIME_NONE, this function will block forever until a * matching message was posted on the bus. * - * Returns: (transfer full): a #GstMessage matching the filter in @types, - * or %NULL if no matching message was found on the bus until the timeout - * expired. The message is taken from the bus and needs to be unreffed - * with gst_message_unref() after usage. + * Returns: (transfer full) (nullable): a #GstMessage matching the + * filter in @types, or %NULL if no matching message was found on + * the bus until the timeout expired. The message is taken from + * the bus and needs to be unreffed with gst_message_unref() after + * usage. * * MT safe. */ @@ -568,10 +569,10 @@ beach: * #GST_CLOCK_TIME_NONE, this function will block forever until a message was * posted on the bus. * - * Returns: (transfer full): the #GstMessage that is on the bus after the - * specified timeout or %NULL if the bus is empty after the timeout expired. - * The message is taken from the bus and needs to be unreffed with - * gst_message_unref() after usage. + * Returns: (transfer full) (nullable): the #GstMessage that is on the + * bus after the specified timeout or %NULL if the bus is empty + * after the timeout expired. The message is taken from the bus + * and needs to be unreffed with gst_message_unref() after usage. * * MT safe. */ @@ -594,10 +595,10 @@ gst_bus_timed_pop (GstBus * bus, GstClockTime timeout) * the bus, all messages will be discarded. It is not possible to use message * enums beyond #GST_MESSAGE_EXTENDED in the @events mask. * - * Returns: (transfer full): the next #GstMessage matching @type that is on - * the bus, or %NULL if the bus is empty or there is no message matching - * @type. The message is taken from the bus and needs to be unreffed with - * gst_message_unref() after usage. + * Returns: (transfer full) (nullable): the next #GstMessage matching + * @type that is on the bus, or %NULL if the bus is empty or there + * is no message matching @type. The message is taken from the bus + * and needs to be unreffed with gst_message_unref() after usage. * * MT safe. */ @@ -616,9 +617,10 @@ gst_bus_pop_filtered (GstBus * bus, GstMessageType types) * * Get a message from the bus. * - * Returns: (transfer full): the #GstMessage that is on the bus, or %NULL if the - * bus is empty. The message is taken from the bus and needs to be unreffed - * with gst_message_unref() after usage. + * Returns: (transfer full) (nullable): the #GstMessage that is on the + * bus, or %NULL if the bus is empty. The message is taken from + * the bus and needs to be unreffed with gst_message_unref() after + * usage. * * MT safe. */ @@ -638,8 +640,8 @@ gst_bus_pop (GstBus * bus) * on the bus' message queue. A reference is returned, and needs to be unreffed * by the caller. * - * Returns: (transfer full): the #GstMessage that is on the bus, or %NULL if the - * bus is empty. + * Returns: (transfer full) (nullable): the #GstMessage that is on the + * bus, or %NULL if the bus is empty. * * MT safe. */ @@ -1054,9 +1056,10 @@ poll_destroy_timeout (GstBusPollData * poll_data) * better handled by setting up an asynchronous bus watch and doing things * from there. * - * Returns: (transfer full): the message that was received, or %NULL if the - * poll timed out. The message is taken from the bus and needs to be - * unreffed with gst_message_unref() after usage. + * Returns: (transfer full) (nullable): the message that was received, + * or %NULL if the poll timed out. The message is taken from the + * bus and needs to be unreffed with gst_message_unref() after + * usage. */ GstMessage * gst_bus_poll (GstBus * bus, GstMessageType events, GstClockTime timeout) |