protocol: Explicitly mark requests which allow null arguments
authorChristopher James Halse Rogers <christopher.halse.rogers@canonical.com>
Mon, 2 Jul 2012 10:03:31 +0000 (20:03 +1000)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 2 Jul 2012 17:53:06 +0000 (13:53 -0400)
Signed-off-by: Christopher James Halse Rogers <christopher.halse.rogers@canonical.com>
protocol/wayland.xml

index 5260ecf..06b3d0f 100644 (file)
       </description>
 
       <arg name="serial" type="uint"/>
-      <arg name="type" type="string"/>
+      <arg name="type" type="string" allow-null="true"/>
     </request>
 
     <request name="receive">
        a target does not accept any of the offered types, type is NULL.
       </description>
 
-      <arg name="mime_type" type="string"/>
+      <arg name="mime_type" type="string" allow-null="true"/>
     </event>
 
     <event name="send">
        hotspot, but subsequent surface.attach request can move the
        relative position.
       </description>
-      <arg name="source" type="object" interface="wl_data_source"/>
+      <arg name="source" type="object" interface="wl_data_source" allow-null="true"/>
       <arg name="origin" type="object" interface="wl_surface"/>
-      <arg name="icon" type="object" interface="wl_surface"/>
+      <arg name="icon" type="object" interface="wl_surface" allow-null="true"/>
       <arg name="serial" type="uint"/>
     </request>
 
        data_offer is valid until a new data_offer or NULL is received
        or until the client loses keyboard focus.
       </description>
-      <arg name="id" type="object" interface="wl_data_offer"/>
+      <arg name="id" type="object" interface="wl_data_offer" allow-null="true"/>
     </event>
   </interface>
 
       </description>
       <arg name="method" type="uint"/>
       <arg name="framerate" type="uint"/>
-      <arg name="output" type="object" interface="wl_output"/>
+      <arg name="output" type="object" interface="wl_output" allow-null="true"/>
     </request>
 
     <enum name="fullscreen_method">
         to, except the panel area. This is the main difference between
         a maximized shell surface and a fullscreen shell surface.
       </description>
-      <arg name="output" type="object" interface="wl_output"/>
+      <arg name="output" type="object" interface="wl_output" allow-null="true"/>
     </request>
 
     <request name="set_title">
        region is the entire surface.
       </description>
 
-      <arg name="region" type="object" interface="wl_region"/>
+      <arg name="region" type="object" interface="wl_region" allow-null="true"/>
     </request>
 
     <event name="enter">
       </description>
 
       <arg name="serial" type="uint"/>
-      <arg name="surface" type="object" interface="wl_surface"/>
+      <arg name="surface" type="object" interface="wl_surface" allow-null="true"/>
       <arg name="hotspot_x" type="int"/>
       <arg name="hotspot_y" type="int"/>
     </request>