protocol: Add a couple of missing allow-null annotations
authorKristian Høgsberg <krh@bitplanet.net>
Mon, 2 Jul 2012 18:34:48 +0000 (14:34 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 2 Jul 2012 18:34:48 +0000 (14:34 -0400)
wl_data_device.set_selection() allows NULL to withdraw the previously set
selection and wl_surface.attach() allows a NULL buffer to hide the surface.

protocol/wayland.xml

index 06b3d0f..54fb9e0 100644 (file)
     </request>
 
     <request name="set_selection">
-      <arg name="source" type="object" interface="wl_data_source"/>
+      <arg name="source" type="object" interface="wl_data_source" allow-null="true"/>
       <arg name="serial" type="uint"/>
     </request>
 
        corner, relative to the old buffers upper left corner.
       </description>
 
-      <arg name="buffer" type="object" interface="wl_buffer"/>
+      <arg name="buffer" type="object" interface="wl_buffer" allow-null="true"/>
       <arg name="x" type="int"/>
       <arg name="y" type="int"/>
     </request>