Bug 78850 - gudev: Add missing (nullable) annotations on return values
Summary: gudev: Add missing (nullable) annotations on return values
Status: RESOLVED FIXED
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium minor
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-18 07:26 UTC by Evan Nemerson
Modified: 2014-05-18 16:59 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
gudev: add missing (nullable) annotations on return values (7.25 KB, text/plain)
2014-05-18 07:26 UTC, Evan Nemerson
Details

Description Evan Nemerson 2014-05-18 07:26:47 UTC
Created attachment 99266 [details]
gudev: add missing (nullable) annotations on return values

GObject Introspection has recently added support for annotating return values as nullable (see https://bugzilla.gnome.org/show_bug.cgi?id=660879), and gudev includes many functions which can return NULL.

Right now this is only in git, but adding (nullable) annotations now should only cause some harmless warning messages from older g-ir-scanner and gtk-doc like "warning: unknown annotation "nullable" in documentation for g_udev_...", so I believe this is safe add the annotations immediately.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.