After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 783330 - navigation: Add introspection annotations for some output parameters
navigation: Add introspection annotations for some output parameters
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Linux
: Normal normal
: 1.12.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-06-01 20:05 UTC by Scott D Phillips
Modified: 2017-06-17 07:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[PATCH] navigation: Add introspection annotations for some output parameters (5.07 KB, patch)
2017-06-01 20:05 UTC, Scott D Phillips
none Details | Review
[PATCH v2] navigation: Add introspection annotations for some output parameters (7.41 KB, patch)
2017-06-02 17:53 UTC, Scott D Phillips
committed Details | Review
navigation: Add some validation while sending key/mouse events (1.46 KB, patch)
2017-06-06 05:42 UTC, Arun Raghavan
committed Details | Review
navigation: Add introspection annotations for some output parameters (7.31 KB, patch)
2017-06-06 05:42 UTC, Arun Raghavan
none Details | Review

Description Scott D Phillips 2017-06-01 20:05:21 UTC
Created attachment 353029 [details] [review]
[PATCH] navigation: Add introspection annotations for some output parameters

The missing annotations prevent proper usage from introspected
bindings like python.
Comment 1 Arun Raghavan 2017-06-02 02:56:46 UTC
Review of attachment 353029 [details] [review]:

Thanks for this -- could you also add (optional) to the parameters which are ignored if NULL? (I don't see any that should also be (nullable), but do double check).
Comment 2 Scott D Phillips 2017-06-02 17:53:54 UTC
Created attachment 353095 [details] [review]
[PATCH v2] navigation: Add introspection annotations for some output parameters

changes since v1
- add (optional) where it is appropriate
- add (array length) to set_commandsv
Comment 3 Scott D Phillips 2017-06-02 17:56:36 UTC
(In reply to Arun Raghavan from comment #1)
> Review of attachment 353029 [details] [review] [review]:
> 
> Thanks for this -- could you also add (optional) to the parameters which are
> ignored if NULL? (I don't see any that should also be (nullable), but do
> double check).

The only place that seemed like it could conceivable be nullable is key from gst_navigation_event_parse_key_event. It seems more like a logic error though so I left nullable off. Seem ok?
Comment 4 Arun Raghavan 2017-06-06 05:34:50 UTC
(In reply to Scott D Phillips from comment #3)
> (In reply to Arun Raghavan from comment #1)
> > Review of attachment 353029 [details] [review] [review] [review]:
> > 
> > Thanks for this -- could you also add (optional) to the parameters which are
> > ignored if NULL? (I don't see any that should also be (nullable), but do
> > double check).
> 
> The only place that seemed like it could conceivable be nullable is key from
> gst_navigation_event_parse_key_event. It seems more like a logic error
> though so I left nullable off. Seem ok?

This one's a bit awkward indeed -- I think we should either add some validation while creating the event, so we can be a bit more resilient to errors (and then we can skip the nullable). I'll do that after pushing out your fixes. Thanks!
Comment 5 Arun Raghavan 2017-06-06 05:42:20 UTC
The following fixes have been pushed:
398a6a2 navigation: Add some validation while sending key/mouse events
8d1b45d navigation: Add introspection annotations for some output parameters
Comment 6 Arun Raghavan 2017-06-06 05:42:26 UTC
Created attachment 353236 [details] [review]
navigation: Add some validation while sending key/mouse events
Comment 7 Arun Raghavan 2017-06-06 05:42:33 UTC
Created attachment 353237 [details] [review]
navigation: Add introspection annotations for some output parameters

The missing annotations prevented proper usage from introspected
bindings like python.