[Xorg-commit] xc/include/extensions Imakefile,1.1.4.2,1.1.4.3 xineramaProto.h,1.1.4.1,1.1.4.2

Kaleb Keithley xorg-commit at pdx.freedesktop.org
Thu Dec 18 21:29:44 EET 2003


Committed by: kaleb

Update of /cvs/xorg/xc/include/extensions
In directory pdx:/home/kaleb/xorg/xc.XORG-CURRENT/include/extensions

Modified Files:
      Tag: XORG-CURRENT
	Imakefile xineramaProto.h 
Log Message:
First pass at "Standard" Xinerama.
The sources for this came from Heather Lanigan's xinerama tree on 
Sourceforge.Net. 
No attempt has been made to handle previous, non-standard versions of 
the protocol. Nor has any attempt been made to preserve the ABI of 
previous versions -- that part will be added at a later time, and 
then probably only on systems that have nice object/linker semantics, 
e.g. ELF systems with weak symbols.



Index: Imakefile
===================================================================
RCS file: /cvs/xorg/xc/include/extensions/Imakefile,v
retrieving revision 1.1.4.2
retrieving revision 1.1.4.3
diff -u -d -r1.1.4.2 -r1.1.4.3
--- Imakefile	26 Nov 2003 22:48:31 -0000	1.1.4.2
+++ Imakefile	18 Dec 2003 19:29:11 -0000	1.1.4.3
@@ -1,3 +1,4 @@
+XCOMM $XdotOrg$
 XCOMM $Xorg: Imakefile,v 1.3 2000/08/18 04:05:44 coskrey Exp $
 
 
@@ -36,7 +37,7 @@
 FONTCACHEHEADERS = fontcache.h fontcacheP.h fontcachstr.h
 #endif
 #if BuildXinerama || BuildXineramaLibrary
-XINERAMAHEADERS = panoramiXext.h panoramiXproto.h Xinerama.h
+XINERAMAHEADERS = Xinerama.h xineramaProto.h
 #endif
 #if BuildRender || BuildXftLibrary
 RENDERHEADERS = render.h renderproto.h

Index: xineramaProto.h
===================================================================
RCS file: /cvs/xorg/xc/include/extensions/xineramaProto.h,v
retrieving revision 1.1.4.1
retrieving revision 1.1.4.2
diff -u -d -r1.1.4.1 -r1.1.4.2
--- xineramaProto.h	17 Nov 2003 19:03:40 -0000	1.1.4.1
+++ xineramaProto.h	18 Dec 2003 19:29:11 -0000	1.1.4.2
@@ -1,192 +1,124 @@
-/* $Xorg: panoramiXproto.h,v 1.4 2000/08/18 04:05:45 coskrey Exp $ */
-/*****************************************************************
-Copyright (c) 1991, 1997 Digital Equipment Corporation, Maynard, Massachusetts.
-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.
+/* $XdotOrg$ */
+/*
+
+Copyright 2003  The Open Group
+
+Permission to use, copy, modify, distribute, and sell this software and its
+documentation for any purpose is hereby granted without fee, provided that
+the above copyright notice appear in all copies and that both that
+copyright notice and this permission notice appear in supporting
+documentation.
 
 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
-DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES, INCLUDING,
-BUT NOT LIMITED TO CONSEQUENTIAL OR INCIDENTAL 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 name of Digital Equipment Corporation
-shall not be used in advertising or otherwise to promote the sale, use or other
-dealings in this Software without prior written authorization from Digital
-Equipment Corporation.
-******************************************************************/
-/* $XFree86: xc/include/extensions/panoramiXproto.h,v 3.6 2001/01/17 17:53:22 dawes Exp $ */
-
-/* THIS IS NOT AN X PROJECT TEAM SPECIFICATION */
-
-#ifndef _PANORAMIXPROTO_H_
-#define _PANORAMIXPROTO_H_
-
-#define PANORAMIX_PROTOCOL_NAME "XINERAMA"
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
+OPEN GROUP 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.
 
-#define X_PanoramiXQueryVersion		0
-#define X_PanoramiXGetState		1
-#define X_PanoramiXGetScreenCount	2
-#define X_PanoramiXGetScreenSize	3
+Except as contained in this notice, the name of The Open Group 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 Open Group.
 
-#define X_XineramaIsActive		4
-#define X_XineramaQueryScreens		5
+*/
 
-typedef struct _PanoramiXQueryVersion {
-	CARD8	reqType;		/* always PanoramiXReqCode */
-	CARD8	panoramiXReqType;	/* always X_PanoramiXQueryVersion */
-	CARD16	length B16;
-	CARD8	clientMajor;
-	CARD8	clientMinor;
-	CARD16	unused B16;           
-} xPanoramiXQueryVersionReq;
+#ifndef _XINERAMA_PROTO_H_
+#define _XINERAMA_PROTO_H_
 
-#define sz_xPanoramiXQueryVersionReq	8
+#define XINERAMA_PROTOCOL_NAME "XINERAMA"
 
-typedef struct {
-	CARD8	type;			/* must be X_Reply */
-	CARD8	pad1;			/* unused	*/
-	CARD16	sequenceNumber  B16;	/* last sequence number */
-	CARD32	length  B32;		/* 0 */
-	CARD16	majorVersion  B16;	
-	CARD16	minorVersion  B16;	
-	CARD32	pad2	B32;		/* unused */
-	CARD32	pad3	B32;		/* unused */
-	CARD32	pad4	B32;		/* unused */
-	CARD32	pad5	B32;		/* unused */
-	CARD32	pad6	B32;		/* unused */
-} xPanoramiXQueryVersionReply;
+#define XINERAMA_MAJOR_VERSION 2
+#define XINERAMA_MINOR_VERSION 0
 
-#define sz_xPanoramiXQueryVersionReply	32
+#define X_XineramaQueryVersion     0
+#define X_XineramaActive           1
+#define X_XineramaGetData          2
 
+/* XineramaQueryVersion */
 
-typedef	struct	_PanoramiXGetState {
-        CARD8   reqType;	        /* always PanoramiXReqCode */
-        CARD8   panoramiXReqType;    	/* always X_PanoramiXGetState */
+typedef struct _XineramaQueryVersion {
+        CARD8   reqType;
+        CARD8   XineramaReqType; 
         CARD16  length B16;
-	CARD32  window B32;
-} xPanoramiXGetStateReq;
-#define sz_xPanoramiXGetStateReq	8	
+        CARD16  client_major_version;
+        CARD16  client_minor_version;
+} xXineramaQueryVersionReq;
+#define sz_xXineramaQueryVersionReq 8
 
 typedef struct {
-	BYTE	type;
-	BYTE	state;
-	CARD16	sequenceNumber B16;
-	CARD32	length	B32;
-	CARD32  window  B32;
-	CARD32	pad1	B32;		/* unused */
-	CARD32	pad2	B32;		/* unused */
-	CARD32	pad3	B32;		/* unused */
-	CARD32	pad4	B32;		/* unused */
-	CARD32	pad5	B32;		/* unused */
-} xPanoramiXGetStateReply;
-
-#define sz_panoramiXGetStateReply	32
-
-typedef	struct	_PanoramiXGetScreenCount {
-        CARD8   reqType;             /* always PanoramiXReqCode */
-        CARD8   panoramiXReqType;    /* always X_PanoramiXGetScreenCount */
-        CARD16  length B16;
-	CARD32  window B32;
-} xPanoramiXGetScreenCountReq;
-#define sz_xPanoramiXGetScreenCountReq	8
+        CARD8   type;                  
+        CARD8   pad1;                
+        CARD16  sequenceNumber B16;
+        CARD32  length B32;       
+        CARD16  server_major_version B16;      
+        CARD16  server_minor_version B16;      
+        CARD32  pad2 B32;    
+        CARD32  pad3 B32;   
+        CARD32  pad4 B32;
+        CARD32  pad5 B32;
+        CARD32  pad6 B32;
+} xXineramaQueryVersionReply;
+#define sz_xXineramaQueryVersionReply 32
 
-typedef struct {
-	BYTE	type;
-	BYTE	ScreenCount;
-	CARD16	sequenceNumber B16;
-	CARD32	length B32;
-	CARD32  window  B32;
-	CARD32	pad1	B32;		/* unused */
-	CARD32	pad2	B32;		/* unused */
-	CARD32	pad3	B32;		/* unused */
-	CARD32	pad4	B32;		/* unused */
-	CARD32	pad5	B32;		/* unused */
-} xPanoramiXGetScreenCountReply;
-#define sz_panoramiXGetScreenCountReply	32
+/* XineramaActive */
 
-typedef	struct	_PanoramiXGetScreenSize {
-        CARD8   reqType;                /* always PanoramiXReqCode */
-        CARD8   panoramiXReqType;	/* always X_PanoramiXGetState */
+typedef struct _XineramaActive {
+        CARD8   reqType;         
+        CARD8   XineramaReqType;
         CARD16  length B16;
-	CARD32  window B32;
-	CARD32	screen B32;
-} xPanoramiXGetScreenSizeReq;
-#define sz_xPanoramiXGetScreenSizeReq	12	
+        CARD32  window;
+} xXineramaActiveReq;
+#define sz_xXineramaActiveReq 8
 
 typedef struct {
-	BYTE	type;
-	CARD8	pad1;			
-	CARD16	sequenceNumber B16;
-	CARD32	length	B32;
-	CARD32	width	B32;
-	CARD32	height	B32;
-	CARD32  window  B32;
-	CARD32  screen  B32;
-	CARD32	pad2	B32;		/* unused */
-	CARD32	pad3	B32;		/* unused */
-} xPanoramiXGetScreenSizeReply;
-#define sz_panoramiXGetScreenSizeReply 32	
-
-/************  Alternate protocol  ******************/
+        CARD8   type;
+        CARD8   pad1;
+        CARD16  sequenceNumber B16;
+        CARD32  length B32;
+        CARD8   active;
+        CARD8   pad2;
+        CARD16  pad3 B16; 
+        CARD32  pad4 B32;
+        CARD32  pad5 B32;
+        CARD32  pad6 B32;
+        CARD32  pad7 B32;
+        CARD32  pad8 B32;
+} xXineramaActiveReply;
+#define sz_xXineramaActiveReply 32
 
-typedef struct {
-        CARD8   reqType;
-        CARD8   panoramiXReqType;
-        CARD16  length B16;
-} xXineramaIsActiveReq;
-#define sz_xXineramaIsActiveReq 4
+/* XineramaGetData */
 
 typedef struct {
-	BYTE	type;
-	CARD8	pad1;			
-	CARD16	sequenceNumber B16;
-	CARD32	length	B32;
-	CARD32	state	B32;
-	CARD32	pad2	B32;
-	CARD32  pad3  	B32;
-	CARD32  pad4  	B32;
-	CARD32	pad5	B32;
-	CARD32	pad6	B32;
-} xXineramaIsActiveReply;
-#define sz_XineramaIsActiveReply 32	
-
+  INT16  x;
+  INT16  y;
+  CARD16 width;
+  CARD16 height;
+} xXineramaRectangle;
+#define sz_xXineramaRectangle 8
 
-typedef struct {
+typedef struct _XineramaGetData {
         CARD8   reqType;
-        CARD8   panoramiXReqType;
+        CARD8   XineramaReqType;
         CARD16  length B16;
-} xXineramaQueryScreensReq;
-#define sz_xXineramaQueryScreensReq 4
-
-typedef struct {
-	BYTE	type;
-	CARD8	pad1;			
-	CARD16	sequenceNumber B16;
-	CARD32	length	B32;
-	CARD32	number	B32;
-	CARD32	pad2	B32;
-	CARD32  pad3  	B32;
-	CARD32  pad4  	B32;
-	CARD32	pad5	B32;
-	CARD32	pad6	B32;
-} xXineramaQueryScreensReply;
-#define sz_XineramaQueryScreensReply 32	
+        CARD32  window;
+} xXineramaGetDataReq;
+#define sz_xXineramaGetDataReq 8
 
 typedef struct {
-	INT16   x_org   B16;
-	INT16   y_org   B16;
-	CARD16  width   B16;
-	CARD16  height  B16;
-} xXineramaScreenInfo;
-#define sz_XineramaScreenInfo 8
+        CARD8   type;
+        CARD8   pad1;
+        CARD16  sequenceNumber B16;
+        CARD32  length B32;
+        CARD32  num_rects B32; 
+        CARD32  pad2 B32;
+        CARD32  pad3 B32;
+        CARD32  pad4 B32;
+        CARD32  pad5 B32;
+        CARD32  pad6 B32;
+} xXineramaGetDataReply;
+#define sz_xXineramaGetDataReply 32
 
-#endif 
+#endif /* _XINERAMA_PROTO_H_ */





More information about the xorg-commit mailing list