[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xcb
Subject:    Re: [Xcb] randr for xcb
From:       Jeremy Kolb <jkolb () brandeis ! edu>
Date:       2005-01-24 6:14:59
Message-ID: 41F49263.30500 () brandeis ! edu
[Download RAW message or body]

Josh Triplett wrote:
> Minor typographical issues:
> 
> Jeremy Kolb wrote:
> 
>>Copyright (C) 2001-2005 Jeremy Kolb.
> 
> 
> This should just be "2005".
> 
> 
>>All Rights Reserved.
>>
>>Permission is hereby granted, free of charge, to any person ob/Sintaining a copy
> 
> 
> Looks like "/Sin" got inserted here.
> 
> - Josh Triplett

Alright, I THINK I have the rates business fixed.  The specs were very 
unclear about this so I had to go looking at the Xlib c source. 
Anyways, here's the updated version.

Jeremy

["randr.xml" (text/xml)]

<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2005 Jeremy Kolb.
All Rights Reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Except as contained in this notice, the names of the authors or their
institutions shall not be used in advertising or otherwise to promote the
sale, use or other dealings in this Software without prior written
authorization from the authors.
-->

<xcb header="randr" extension-xname="RANDR" extension-name="RandR">
	<!-- Implements version 1.1 of RANDR -->	
	
	<enum name="Rotation">
		<item name="Rotate_0"><value>1</value></item>
		<item name="Rotate_90"><value>2</value></item>
		<item name="Rotate_180"><value>4</value></item>
		<item name="Rotate_270"><value>8</value></item>
		<item name="Reflect_X"><value>16</value></item>
		<item name="Reflect_Y"><value>32</value></item>
	</enum>

	<!-- Not sure if we need this struct -->
	<struct name="ScreenSize">
		<field type="INT16" name="width" />
		<field type="INT16" name="height" />
		<field type="INT16" name="mwidth" />
		<field type="INT16" name="mheight" />
	</struct>

	<struct name="Refresh">
		<field type="CARD16" name="n" />
		<field type="CARD16" name="rates" />
	</struct>

	<request name="QueryVersion" opcode="0">
		<field type="CARD32" name="major_version" />
		<field type="CARD32" name="minor_version" />
		<reply>
			<pad bytes="1" />
			<field type="CARD32" name="major_version" />
			<field type="CARD32" name="minor_version" />i
			<pad bytes="16" />
		</reply>
	</request>

	<request name="SetScreenConfig" opcode="2">
		<field type="DRAWABLE" name="drawable" />
		<field type="TIMESTAMP" name="timestamp" />
		<field type="CARD16" name="sizeID" />
		<field type="INT16" name="rotation" />
		<field type="CARD16" name="refresh" />
		<pad bytes="2" />
		<reply>
			<field type="CARD8" name="status" />
			<field type="TIMESTAMP" name="new_timestamp" />
			<field type="TIMESTAMP" name="new_conf_timestamp" />
			<field type="WINDOW" name="root" />
			<field type="CARD16" name="subpixel_order" />
			<pad bytes="10" />
		</reply>
	</request>

	<enum name="SetConfigStatus">
		<item name="Success"><value>0</value></item>
		<item name="InvalidConfigTime"><value>1</value></item>
		<item name="InvalidTime"><value>2</value></item>
		<item name="Failed"><value>3</value></item>
	</enum>

	<request name="SelectInput" opcode="4">	
		<field type="WINDOW" name="window" />
		<field type="CARD16" name="enable" />
		<pad bytes="2" />
	</request>

	<!-- I think this is correct.  The spec is very unclear about this reply,
	I had to look at the code in xc/lib/Xrandr/Xrandr.c
	Someone may want to verify the business of refresh rates.
	-->
	<request name="GetScreenInfo" opcode="5">
		<field type="WINDOW" name="window" />
		<reply>
			<field type="CARD8" name="rotations" />
			<field type="WINDOW" name="root" />
			<field type="TIMESTAMP" name="timestamp" />
			<field type="TIMESTAMP" name="config_timestamp" />
			<field type="CARD16" name="sizes_len" />
			<field type="CARD16" name="sizeID" />
			<field type="INT16" name="rotation" />
			<field type="CARD16" name="rate" />
			<field type="CARD16" name="rates_len" />
			<pad bytes="2" />
			<list type="ScreenSize" name="sizes"><fieldref>sizes_len</fieldref></list>
			<list type="CARD16" name="rates"><fieldref>rates_len</fieldref></list>
		</reply>
	</request>

	<event name="ScreenChangeNotify" number="0">
		<field type="CARD8" name="rotation" />
		<field type="TIMESTAMP" name="timestamp" />
		<field type="TIMESTAMP" name="config_timestamp" />
		<field type="WINDOW" name="root" />
		<field type="WINDOW" name="request_window" />
		<field type="CARD16" name="sizeID" />
		<field type="CARD16" name="subpixel_order" />
		<field type="CARD16" name="width" />
		<field type="CARD16" name="height" />
		<field type="CARD16" name="mwidth" />
		<field type="CARD16" name="mheight" />
	</event>
		
</xcb>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic