Enforce non-null types in the protocol
Christopher James Halse Rogers
christopher.halse.rogers at canonical.com
Mon Jul 2 03:03:29 PDT 2012
These commits add a new, optional attribute to string, array, and objects
in the protocol: allow-null. If an argument is marked as allow-null=false
or does not have an allow-null attribute then attempting to pass null is
a protocol error, is picked up in libwayland, and the call is not made.
This makes it easier to write a reliable compositor (or client), as
implementations can now assume that objects passed to them are non-null
unless they've explicitly allowed them to be.
More information about the wayland-devel
mailing list