Changed valueparam arguments for attribute lists
authorPatrick Guimond <patg@patg.homeunix.org>
Wed, 8 Nov 2006 22:29:43 +0000 (17:29 -0500)
committerJosh Triplett <josh@freedesktop.org>
Wed, 22 Nov 2006 05:46:13 +0000 (21:46 -0800)
For following request and replies, substitutes attribute list passing
to a parameter list instead of valuemask/values

Requests: - CreatePixmap
          - QueryContext
          - CreatePbuffer
          - ChangeDrawableAttributes
          - CreateWindow
Reply:    - GetDrawableAttributes

src/glx.xml

index 4f4a822..e7ec59e 100644 (file)
@@ -342,6 +342,12 @@ The patch that fixed this server bug in X.org CVS is here:
                <field type="xproto:PIXMAP" name="pixmap" />
                <field type="glx:PIXMAP" name="glx_pixmap" />
                <field type="CARD32" name="num_attribs" />  
                <field type="xproto:PIXMAP" name="pixmap" />
                <field type="glx:PIXMAP" name="glx_pixmap" />
                <field type="CARD32" name="num_attribs" />  
+               <list type="CARD32" name="attribs">
+                       <op op="*">
+                               <fieldref>num_attribs</fieldref>
+                               <value>2</value>
+                       </op>
+               </list>
        </request>
 
        <request name="DestroyPixmap" opcode="23">
        </request>
 
        <request name="DestroyPixmap" opcode="23">
@@ -365,9 +371,12 @@ The patch that fixed this server bug in X.org CVS is here:
                        <pad bytes="1" />
                        <field type="CARD32" name="num_attributes"/>
                        <pad bytes="20" />
                        <pad bytes="1" />
                        <field type="CARD32" name="num_attributes"/>
                        <pad bytes="20" />
-                       <valueparam value-mask-type="CARD32"
-                               value-mask-name="value_mask"
-                               value-list-name="value_list" />
+                       <list type="CARD32" name="attribs">
+                               <op op="*">
+                                       <fieldref>num_attributes</fieldref>
+                                       <value>2</value>
+                               </op>
+                       </list>
                </reply>
        </request>
 
                </reply>
        </request>
 
@@ -388,9 +397,12 @@ The patch that fixed this server bug in X.org CVS is here:
                <field type="FBCONFIG" name="fbconfig" />
                <field type="PBUFFER" name="pbuffer" />
                <field type="CARD32" name="num_attribs" />
                <field type="FBCONFIG" name="fbconfig" />
                <field type="PBUFFER" name="pbuffer" />
                <field type="CARD32" name="num_attribs" />
-               <valueparam value-mask-type="CARD32"
-                       value-mask-name="value_mask"
-                       value-list-name="value_list" />
+               <list type="CARD32" name="attribs">
+                       <op op="*">
+                               <fieldref>num_attribs</fieldref>
+                               <value>2</value>
+                       </op>
+               </list>
        </request>
 
        <request name="DestroyPbuffer" opcode="28">
        </request>
 
        <request name="DestroyPbuffer" opcode="28">
@@ -403,18 +415,24 @@ The patch that fixed this server bug in X.org CVS is here:
                        <pad bytes="1" />
                        <field type="CARD32" name="num_attribs" />
                        <pad bytes="20" />
                        <pad bytes="1" />
                        <field type="CARD32" name="num_attribs" />
                        <pad bytes="20" />
-                       <valueparam value-mask-type="CARD32"
-                               value-mask-name="value_mask"
-                               value-list-name="value_list" />
+                       <list type="CARD32" name="attribs">
+                               <op op="*">
+                                       <fieldref>num_attribs</fieldref>
+                                       <value>2</value>
+                               </op>
+                       </list>
                </reply>
        </request>
 
        <request name="ChangeDrawableAttributes" opcode="30">
                <field type="glx:DRAWABLE" name="drawable" />
                <field type="CARD32" name="num_attribs" />
                </reply>
        </request>
 
        <request name="ChangeDrawableAttributes" opcode="30">
                <field type="glx:DRAWABLE" name="drawable" />
                <field type="CARD32" name="num_attribs" />
-               <valueparam value-mask-type="CARD32"
-                       value-mask-name="value_mask"
-                       value-list-name="value_list" />
+               <list type="CARD32" name="attribs">
+                       <op op="*">
+                               <fieldref>num_attribs</fieldref>
+                               <value>2</value>
+                       </op>
+               </list>
        </request>
 
        <request name="CreateWindow" opcode="31">
        </request>
 
        <request name="CreateWindow" opcode="31">
@@ -423,9 +441,12 @@ The patch that fixed this server bug in X.org CVS is here:
                <field type="xproto:WINDOW" name="window" />
                <field type="glx:WINDOW" name="glx_window" />
                <field type="CARD32" name="num_attribs" />
                <field type="xproto:WINDOW" name="window" />
                <field type="glx:WINDOW" name="glx_window" />
                <field type="CARD32" name="num_attribs" />
-               <valueparam value-mask-type="CARD32"
-                       value-mask-name="value_mask"
-                       value-list-name="value_list" />
+               <list type="CARD32" name="attribs">
+                       <op op="*">
+                               <fieldref>num_attribs</fieldref>
+                               <value>2</value>
+                       </op>
+               </list>
        </request>
 
        <request name="DeleteWindow" opcode="32">
        </request>
 
        <request name="DeleteWindow" opcode="32">