[proto,1/1] Replace valueparam with CARD32 bit field in Xprint

Submitted by Jaya Tiwari on Dec. 23, 2014, 5:27 p.m.

Details

Message ID CAGt7qzU+rs+KQukE9ED44Yvv_K=X=1_7B0647mxF9f9VWqpB1w@mail.gmail.com
State New
Headers show

Commit Message

Jaya Tiwari Dec. 23, 2014, 5:27 p.m.
Replaced valueparam with a simple 32 bit field for PrintSelectInput
and PrintInputSelected by looking at the
lib code at :
http://cgit.freedesktop.org/xorg/lib/libXp/tree/src/XpInput.c?id=libXp-1.0.2

Signed-off-by: Jaya Tiwari <tiwari.jaya18@gmail.com>
---
 src/xprint.xml | 13 +++----------
 1 file changed, 3 insertions(+), 10 deletions(-)

Patch hide | download patch | download mbox

diff --git a/src/xprint.xml b/src/xprint.xml
index e32293f..dc23dd0 100644
--- a/src/xprint.xml
+++ b/src/xprint.xml
@@ -209,21 +209,14 @@  <request name="PrintEndPage" opcode="14">

     <request name="PrintSelectInput" opcode="15">
         <field type="PCONTEXT" name="context" />
-        <valueparam value-mask-type="CARD32"
-                    value-mask-name="event_mask"
-                    value-list-name="event_list" />
+        <field type="CARD32" name="event_mask" />
     </request>

     <request name="PrintInputSelected" opcode="16">
         <field type="PCONTEXT" name="context" />
         <reply>
-            <pad bytes="1" />
-            <valueparam value-mask-type="CARD32"
-                            value-mask-name="event_mask"
-                            value-list-name="event_list" />
-            <valueparam value-mask-type="CARD32"
-                            value-mask-name="all_events_mask"
-                            value-list-name="all_events_list" />
+           <field type="CARD32" name="event_mask" />
+           <field type="CARD32" name="all_events_mask" />
         </reply>
     </request>