protocol: invalid_method is sent on malformed request
authorSimon Ser <contact@emersion.fr>
Thu, 11 Jul 2019 17:03:55 +0000 (20:03 +0300)
committerSimon Ser <contact@emersion.fr>
Tue, 10 Sep 2019 09:47:19 +0000 (09:47 +0000)
Currently libwayland sends a wl_display.invalid_method when arguments provided
with a request are invalid (e.g. too short, see wl_client_connection_data).

Clarify the protocol by adding that invalid_method can be sent on malformed
request.

Signed-off-by: Simon Ser <contact@emersion.fr>
protocol/wayland.xml

index e897302..f1a13b7 100644 (file)
@@ -91,7 +91,7 @@
       <entry name="invalid_object" value="0"
             summary="server couldn't find object"/>
       <entry name="invalid_method" value="1"
-            summary="method doesn't exist on the specified interface"/>
+            summary="method doesn't exist on the specified interface or malformed request"/>
       <entry name="no_memory" value="2"
             summary="server is out of memory"/>
       <entry name="implementation" value="3"