[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

libxext: Changes to 'upstream-experimental'



 .gitignore                         |   10 +
 COPYING                            |  168 ++++++++++++++++
 Makefile.am                        |   11 -
 README                             |   29 ++
 configure.ac                       |   21 +-
 include/X11/extensions/MITMisc.h   |   56 +++++
 include/X11/extensions/XEVI.h      |   63 ++++++
 include/X11/extensions/XLbx.h      |   52 +++++
 include/X11/extensions/XShm.h      |  136 +++++++++++++
 include/X11/extensions/Xag.h       |   92 +++++++++
 include/X11/extensions/Xcup.h      |   60 ++++++
 include/X11/extensions/Xdbe.h      |  140 ++++++++++++++
 include/X11/extensions/Xext.h      |   55 +++++
 include/X11/extensions/Xge.h       |   57 +++++
 include/X11/extensions/dpms.h      |   53 +++++
 include/X11/extensions/extutil.h   |  192 +++++++++++++++++++
 include/X11/extensions/lbxbuf.h    |   51 +++++
 include/X11/extensions/lbxbufstr.h |   45 ++++
 include/X11/extensions/lbximage.h  |  151 +++++++++++++++
 include/X11/extensions/multibuf.h  |  216 +++++++++++++++++++++
 include/X11/extensions/security.h  |   79 +++++++
 include/X11/extensions/shape.h     |  155 +++++++++++++++
 include/X11/extensions/sync.h      |  338 +++++++++++++++++++++++++++++++++
 include/X11/extensions/xtestext1.h |   85 ++++++++
 man/.gitignore                     |    3 
 man/XShape.man                     |   18 -
 man/XShm.man                       |   31 +--
 man/Xmbuf.man                      |   54 ++---
 src/.gitignore                     |    6 
 src/DPMS.c                         |    2 
 src/MITMisc.c                      |    2 
 src/Makefile.am                    |   43 ++++
 src/XAppgroup.c                    |    5 
 src/XEVI.c                         |    7 
 src/XLbx.c                         |    2 
 src/XMultibuf.c                    |    7 
 src/XSecurity.c                    |    5 
 src/XShape.c                       |    7 
 src/XShm.c                         |    2 
 src/XSync.c                        |   29 --
 src/XTestExt1.c                    |    9 
 src/Xcup.c                         |    5 
 src/Xdbe.c                         |    2 
 src/Xge.c                          |  368 +++++++++++++++++++++++++++++++++++++
 src/extutil.c                      |   21 +-
 src/globals.c                      |    3 
 xext.pc.in                         |    2 
 47 files changed, 2824 insertions(+), 124 deletions(-)

New commits:
commit e29cd70df7d5abdccb6b7ed973611044d02241d0
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date:   Tue Jul 21 13:38:01 2009 +1000

    Bump to 1.0.99.4
    
    Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>

diff --git a/configure.ac b/configure.ac
index 0234d53..38bdc93 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3,7 +3,7 @@
 
 AC_PREREQ(2.57)
 AC_INIT([libXext],
-        1.0.99.3,
+        1.0.99.4,
         [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
         libXext)
 

commit c3dc01ce05b26ec389eb2fbfc8633e3e0955572f
Author: Jon TURNEY <jon.turney@dronecode.org.uk>
Date:   Mon Jul 20 22:49:15 2009 +0100

    Rename mitmisc.h to mitmiscconst.h to avoid a collision with MITMisc.h on case-insensitive filesystems
    
    Requires xextproto 7.0.99.2
    
    Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>

diff --git a/configure.ac b/configure.ac
index bf7168c..0234d53 100644
--- a/configure.ac
+++ b/configure.ac
@@ -35,7 +35,7 @@ AC_PROG_CC
 XORG_CWARNFLAGS
 
 # Checks for pkg-config packages
-PKG_CHECK_MODULES(XEXT, [xproto >= 7.0.13] [x11 >= 1.1.99.1] [xextproto >= 7.0.99.1])
+PKG_CHECK_MODULES(XEXT, [xproto >= 7.0.13] [x11 >= 1.1.99.1] [xextproto >= 7.0.99.2])
 XEXT_CFLAGS="$CWARNFLAGS $XEXT_CFLAGS"
 AC_SUBST(XEXT_CFLAGS)
 AC_SUBST(XEXT_LIBS)
diff --git a/include/X11/extensions/MITMisc.h b/include/X11/extensions/MITMisc.h
index acb6850..5b9713e 100644
--- a/include/X11/extensions/MITMisc.h
+++ b/include/X11/extensions/MITMisc.h
@@ -32,7 +32,7 @@ in this Software without prior written authorization from The Open Group.
 #define _XMITMISC_H_
 
 #include <X11/Xfuncproto.h>
-#include <X11/extensions/mitmisc.h>
+#include <X11/extensions/mitmiscconst.h>
 
 _XFUNCPROTOBEGIN
 

commit dbc6ca9306f0f683419aca737e0d98243475bc0d
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date:   Mon Jul 20 13:19:04 2009 +1000

    Remove XTest header, belongs to libXtst.
    
    All prototypes declared in XTest.h are defined in libXtst/src/XTest.c, not
    here.
    
    This removes the circular dependency between libXi and libXext.
    
    Reported-by: Colin Guthrie
    Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>

diff --git a/include/X11/extensions/XTest.h b/include/X11/extensions/XTest.h
deleted file mode 100644
index f27407a..0000000
--- a/include/X11/extensions/XTest.h
+++ /dev/null
@@ -1,146 +0,0 @@
-/* $Xorg: XTest.h,v 1.5 2001/02/09 02:03:24 xorgcvs Exp $ */
-/*
-
-Copyright 1992, 1998  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 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.
-
-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.
-
-*/
-/* $XFree86: xc/include/extensions/XTest.h,v 3.3 2001/12/14 19:53:28 dawes Exp $ */
-
-#ifndef _XTEST_H_
-#define _XTEST_H_
-
-#include <X11/Xfuncproto.h>
-#include <X11/extensions/xtest.h>
-#include <X11/extensions/XInput.h>
-
-_XFUNCPROTOBEGIN
-
-Bool XTestQueryExtension(
-    Display*		/* dpy */,
-    int*		/* event_basep */,
-    int*		/* error_basep */,
-    int*		/* majorp */,
-    int*		/* minorp */
-);
-
-Bool XTestCompareCursorWithWindow(
-    Display*		/* dpy */,
-    Window		/* window */,
-    Cursor		/* cursor */
-);
-
-Bool XTestCompareCurrentCursorWithWindow(
-    Display*		/* dpy */,
-    Window		/* window */
-);
-
-extern int XTestFakeKeyEvent(
-    Display*		/* dpy */,
-    unsigned int	/* keycode */,
-    Bool		/* is_press */,
-    unsigned long	/* delay */
-);
-
-extern int XTestFakeButtonEvent(
-    Display*		/* dpy */,
-    unsigned int	/* button */,
-    Bool		/* is_press */,
-    unsigned long	/* delay */
-);
-
-extern int XTestFakeMotionEvent(
-    Display*		/* dpy */,
-    int			/* screen */,
-    int			/* x */,
-    int			/* y */,
-    unsigned long	/* delay */
-);
-
-extern int XTestFakeRelativeMotionEvent(
-    Display*		/* dpy */,
-    int			/* x */,
-    int			/* y */,
-    unsigned long	/* delay */
-);
-
-extern int XTestFakeDeviceKeyEvent(
-    Display*		/* dpy */,
-    XDevice*		/* dev */,
-    unsigned int	/* keycode */,
-    Bool		/* is_press */,
-    int*		/* axes */,
-    int			/* n_axes */,
-    unsigned long	/* delay */
-);
-
-extern int XTestFakeDeviceButtonEvent(
-    Display*		/* dpy */,
-    XDevice*		/* dev */,
-    unsigned int	/* button */,
-    Bool		/* is_press */,
-    int*		/* axes */,
-    int			/* n_axes */,
-    unsigned long	/* delay */
-);
-
-extern int XTestFakeProximityEvent(
-    Display*		/* dpy */,
-    XDevice*		/* dev */,
-    Bool		/* in_prox */,
-    int*		/* axes */,
-    int			/* n_axes */,
-    unsigned long	/* delay */
-);
-
-extern int XTestFakeDeviceMotionEvent(
-    Display*		/* dpy */,
-    XDevice*		/* dev */,
-    Bool		/* is_relative */,
-    int			/* first_axis */,
-    int*		/* axes */,
-    int			/* n_axes */,
-    unsigned long	/* delay */
-);
-
-extern int XTestGrabControl(
-    Display*		/* dpy */,
-    Bool		/* impervious */
-);
-
-void XTestSetGContextOfGC(
-    GC			/* gc */,
-    GContext		/* gid */
-);
-
-void XTestSetVisualIDOfVisual(
-    Visual*		/* visual */,
-    VisualID		/* visualid */
-);
-
-Status XTestDiscard(
-    Display*		/* dpy */
-);
-
-_XFUNCPROTOEND
-
-#endif
diff --git a/src/Makefile.am b/src/Makefile.am
index 27b29aa..6a7d379 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -46,7 +46,6 @@ libXextinclude_HEADERS = $(top_srcdir)/include/X11/extensions/dpms.h \
 			 $(top_srcdir)/include/X11/extensions/Xge.h \
 			 $(top_srcdir)/include/X11/extensions/XLbx.h \
 			 $(top_srcdir)/include/X11/extensions/XShm.h \
-			 $(top_srcdir)/include/X11/extensions/XTest.h \
 			 $(top_srcdir)/include/X11/extensions/xtestext1.h
 
 if LINT
diff --git a/src/XTestExt1.c b/src/XTestExt1.c
index 993837a..c9d48d7 100644
--- a/src/XTestExt1.c
+++ b/src/XTestExt1.c
@@ -68,7 +68,6 @@ University of California.
 #include <X11/Xlibint.h>
 #include <X11/extensions/xtestext1.h>
 #include <X11/extensions/xtestext1proto.h>
-#include <X11/extensions/XTest.h>
 
 /******************************************************************************
  * variables

commit 1d1860f31f673f9cf2efb6dc59fdcf8fe625736f
Author: Julien Cristau <jcristau@debian.org>
Date:   Thu Jul 16 11:13:02 2009 +0100

    Prevent shape.h being included in the server
    
    fixesproto includes shape.h, but doesn't want client side headers.  This
    needs to be fixed there, but work around this in shape.h anyway so we
    don't break older xfixesproto.h.
    
    Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>

diff --git a/include/X11/extensions/shape.h b/include/X11/extensions/shape.h
index 6fa83d9..7992f7a 100644
--- a/include/X11/extensions/shape.h
+++ b/include/X11/extensions/shape.h
@@ -33,6 +33,7 @@ in this Software without prior written authorization from The Open Group.
 #include <X11/Xfuncproto.h>
 #include <X11/extensions/shapeconst.h>
 
+#ifndef _SHAPE_SERVER_
 #include <X11/Xutil.h>
 
 typedef struct {
@@ -149,4 +150,6 @@ extern XRectangle *XShapeGetRectangles (
 
 _XFUNCPROTOEND
 
+#endif /* !_SHAPE_SERVER_ */
+
 #endif /* _SHAPE_H_ */

commit dae2e0478eef5aa8a80288b417e1f8282dc0329c
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date:   Fri Jul 17 08:40:42 2009 +1000

    Bump to 1.0.99.3

diff --git a/configure.ac b/configure.ac
index 243096e..bf7168c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3,7 +3,7 @@
 
 AC_PREREQ(2.57)
 AC_INIT([libXext],
-        1.0.99.2,
+        1.0.99.3,
         [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
         libXext)
 

commit 391b5844b13f5bc0f030a2ef8dd415f41f92f84c
Author: Adam Jackson <ajax@redhat.com>
Date:   Thu Jul 16 17:25:51 2009 -0400

    Fix DPMS/MBUF/SECURITY for new header names

diff --git a/src/DPMS.c b/src/DPMS.c
index 35b21b4..92a7f61 100644
--- a/src/DPMS.c
+++ b/src/DPMS.c
@@ -38,7 +38,7 @@ Equipment Corporation.
 #endif
 #include <X11/Xlibint.h>
 #include <X11/extensions/dpms.h>
-#include <X11/extensions/dpmsstr.h>
+#include <X11/extensions/dpmsproto.h>
 #include <X11/extensions/Xext.h>
 #include <X11/extensions/extutil.h>
 #include <stdio.h>
diff --git a/src/XMultibuf.c b/src/XMultibuf.c
index d6f34b7..edb5fa7 100644
--- a/src/XMultibuf.c
+++ b/src/XMultibuf.c
@@ -36,7 +36,7 @@ in this Software without prior written authorization from The Open Group.
 #include <stdio.h>
 #include <X11/extensions/Xext.h>
 #include <X11/extensions/extutil.h>
-#include <X11/extensions/multibufst.h>
+#include <X11/extensions/multibufproto.h>
 #include <X11/extensions/multibuf.h>
 
 static XExtensionInfo _multibuf_info_data;
diff --git a/src/XSecurity.c b/src/XSecurity.c
index 9f81ece..478b062 100644
--- a/src/XSecurity.c
+++ b/src/XSecurity.c
@@ -33,7 +33,7 @@ in this Software without prior written authorization from The Open Group.
 #include <stdio.h>
 #include <X11/extensions/Xext.h>
 #include <X11/extensions/extutil.h>
-#include <X11/extensions/securstr.h>
+#include <X11/extensions/securproto.h>
 #include <X11/extensions/security.h>
 
 static XExtensionInfo _Security_info_data;

commit 02efa0486b7272e9e395d36774ee782f48bcb4ec
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date:   Thu Jul 16 13:33:08 2009 +1000

    Bump to 1.0.99.2

diff --git a/configure.ac b/configure.ac
index 5ebf523..243096e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3,7 +3,7 @@
 
 AC_PREREQ(2.57)
 AC_INIT([libXext],
-        1.0.99.1,
+        1.0.99.2,
         [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
         libXext)
 

commit 1772c991ec6370fcf1bad79b00a87a02c5b484cc
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date:   Thu Jun 25 15:36:39 2009 +1000

    Move libXext library headers from xextproto to libXext.
    
    All library headers (or parts thereof) from xextproto are moved to
    include/X11/extensions/. Including build fixes to include and build with the
    new header locations and names.
    
    Requires xextproto 7.0.99.1
    
    Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>

diff --git a/configure.ac b/configure.ac
index e663848..5ebf523 100644
--- a/configure.ac
+++ b/configure.ac
@@ -35,7 +35,7 @@ AC_PROG_CC
 XORG_CWARNFLAGS
 
 # Checks for pkg-config packages
-PKG_CHECK_MODULES(XEXT, [xproto >= 7.0.13] [x11 >= 1.1.99.1] [xextproto >= 7.0.5])
+PKG_CHECK_MODULES(XEXT, [xproto >= 7.0.13] [x11 >= 1.1.99.1] [xextproto >= 7.0.99.1])
 XEXT_CFLAGS="$CWARNFLAGS $XEXT_CFLAGS"
 AC_SUBST(XEXT_CFLAGS)
 AC_SUBST(XEXT_LIBS)
diff --git a/include/X11/extensions/MITMisc.h b/include/X11/extensions/MITMisc.h
new file mode 100644
index 0000000..acb6850
--- /dev/null
+++ b/include/X11/extensions/MITMisc.h
@@ -0,0 +1,56 @@
+/************************************************************
+
+Copyright 1989, 1998  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 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.
+
+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.
+
+********************************************************/
+
+/* RANDOM CRUFT! THIS HAS NO OFFICIAL X CONSORTIUM OR X PROJECT TEAM BLESSING */
+
+/* $Xorg: MITMisc.h,v 1.4 2001/02/09 02:03:23 xorgcvs Exp $ */
+
+#ifndef _XMITMISC_H_
+#define _XMITMISC_H_
+
+#include <X11/Xfuncproto.h>
+#include <X11/extensions/mitmisc.h>
+
+_XFUNCPROTOBEGIN
+
+Bool XMITMiscQueryExtension(
+    Display*		/* dpy */,
+    int*		/* event_basep */,
+    int*		/* error_basep */
+);
+
+Status XMITMiscSetBugMode(
+    Display*		/* dpy */,
+    Bool		/* onOff */
+);
+
+Bool XMITMiscGetBugMode(
+    Display*		/* dpy */
+);
+
+_XFUNCPROTOEND
+
+#endif
diff --git a/include/X11/extensions/XEVI.h b/include/X11/extensions/XEVI.h
new file mode 100644
index 0000000..5fb53c4
--- /dev/null
+++ b/include/X11/extensions/XEVI.h
@@ -0,0 +1,63 @@
+/* $Xorg: XEVI.h,v 1.3 2000/08/18 04:05:44 coskrey Exp $ */
+/************************************************************
+Copyright (c) 1997 by Silicon Graphics Computer Systems, Inc.
+Permission to use, copy, modify, and distribute this
+software and its documentation for any purpose and without
+fee is hereby granted, provided that the above copyright
+notice appear in all copies and that both that copyright
+notice and this permission notice appear in supporting
+documentation, and that the name of Silicon Graphics not be
+used in advertising or publicity pertaining to distribution
+of the software without specific prior written permission.
+Silicon Graphics makes no representation about the suitability
+of this software for any purpose. It is provided "as is"
+without any express or implied warranty.
+SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
+SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
+GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
+DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION  WITH
+THE USE OR PERFORMANCE OF THIS SOFTWARE.
+********************************************************/
+/* $XFree86$ */
+
+#ifndef _XEVI_H_
+#define _XEVI_H_
+#include <X11/Xfuncproto.h>
+#include <X11/extensions/EVI.h>
+
+typedef struct {
+    VisualID		core_visual_id;
+    int			screen;
+    int			level;
+    unsigned int	transparency_type;
+    unsigned int	transparency_value;
+    unsigned int	min_hw_colormaps;
+    unsigned int	max_hw_colormaps;
+    unsigned int	num_colormap_conflicts;
+    VisualID*		colormap_conflicts;
+} ExtendedVisualInfo;
+
+_XFUNCPROTOBEGIN
+
+Bool XeviQueryExtension(
+    Display*            /* dpy */
+);
+Status XeviQueryVersion(
+    Display*		/* dpy */,
+    int*		/* majorVersion */,
+    int*		/* minorVersion */
+);
+Status XeviGetVisualInfo(
+    Display*		 	/* dpy */,
+    VisualID*			/* visual_query */,
+    int				/* nVisual_query */,
+    ExtendedVisualInfo**	/* extendedVisualInfo_return */,
+    int*			/* nInfo_return */
+);
+
+_XFUNCPROTOEND
+
+#endif
diff --git a/include/X11/extensions/XLbx.h b/include/X11/extensions/XLbx.h
new file mode 100644
index 0000000..54d9dd9
--- /dev/null
+++ b/include/X11/extensions/XLbx.h
@@ -0,0 +1,52 @@
+/* $Xorg: XLbx.h,v 1.3 2000/08/18 04:05:45 coskrey Exp $ */
+/*
+ * Copyright 1992 Network Computing Devices
+ *
+ * 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, and that the name of NCD. not be used in advertising or
+ * publicity pertaining to distribution of the software without specific,
+ * written prior permission.  NCD. makes no representations about the
+ * suitability of this software for any purpose.  It is provided "as is"
+ * without express or implied warranty.
+ *
+ * NCD. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL NCD.
+ * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
+ * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 
+ * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ *
+ */
+/* $XFree86: xc/include/extensions/XLbx.h,v 1.3 2002/10/16 01:59:55 dawes Exp $ */
+ 
+#ifndef _XLBX_H_
+#define _XLBX_H_
+
+#include <X11/Xfuncproto.h>
+#include <X11/Xdefs.h>
+#include <X11/Xlib.h>
+#include <X11/extensions/lbx.h>
+
+_XFUNCPROTOBEGIN
+
+Bool XLbxQueryExtension(
+    Display*		/* dpy */,
+    int*		/* requestp */,
+    int*		/* event_basep */,
+    int*		/* error_basep */
+);
+
+Bool XLbxQueryVersion(
+    Display*		/* dpy */,
+    int*		/* majorVersion */,
+    int*		/* minorVersion */
+);
+
+int XLbxGetEventBase(Display *dpy);
+
+_XFUNCPROTOEND
+
+#endif
diff --git a/include/X11/extensions/XShm.h b/include/X11/extensions/XShm.h
new file mode 100644
index 0000000..b58ca63
--- /dev/null
+++ b/include/X11/extensions/XShm.h
@@ -0,0 +1,136 @@
+/* $XFree86: xc/include/extensions/XShm.h,v 1.11 2003/04/03 15:11:07 dawes Exp $ */
+/************************************************************
+
+Copyright 1989, 1998  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 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.
+
+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.
+
+********************************************************/
+
+/* THIS IS NOT AN X CONSORTIUM STANDARD OR AN X PROJECT TEAM SPECIFICATION */
+
+/* $Xorg: XShm.h,v 1.4 2001/02/09 02:03:24 xorgcvs Exp $ */
+
+#ifndef _XSHM_H_
+#define _XSHM_H_
+
+#include <X11/Xfuncproto.h>
+#include <X11/extensions/shm.h>
+
+typedef unsigned long ShmSeg;
+
+typedef struct {
+    int	type;		    /* of event */
+    unsigned long serial;   /* # of last request processed by server */
+    Bool send_event;	    /* true if this came frome a SendEvent request */
+    Display *display;	    /* Display the event was read from */
+    Drawable drawable;	    /* drawable of request */
+    int major_code;	    /* ShmReqCode */
+    int minor_code;	    /* X_ShmPutImage */
+    ShmSeg shmseg;	    /* the ShmSeg used in the request */
+    unsigned long offset;   /* the offset into ShmSeg used in the request */
+} XShmCompletionEvent;
+
+typedef struct {
+    ShmSeg shmseg;	/* resource id */
+    int shmid;		/* kernel id */
+    char *shmaddr;	/* address in client */
+    Bool readOnly;	/* how the server should attach it */
+} XShmSegmentInfo;
+
+_XFUNCPROTOBEGIN
+
+Bool XShmQueryExtension(
+    Display*		/* dpy */
+);
+
+int XShmGetEventBase(
+    Display* 		/* dpy */
+);
+
+Bool XShmQueryVersion(
+    Display*		/* dpy */,
+    int*		/* majorVersion */,
+    int*		/* minorVersion */,
+    Bool*		/* sharedPixmaps */
+);
+
+int XShmPixmapFormat(
+    Display*		/* dpy */
+);
+
+Status XShmAttach(
+    Display*		/* dpy */,
+    XShmSegmentInfo*	/* shminfo */
+);
+
+Status XShmDetach(
+    Display*		/* dpy */,
+    XShmSegmentInfo*	/* shminfo */
+);
+
+Status XShmPutImage(
+    Display*		/* dpy */,
+    Drawable		/* d */,
+    GC			/* gc */,
+    XImage*		/* image */,
+    int			/* src_x */,
+    int			/* src_y */,
+    int			/* dst_x */,
+    int			/* dst_y */,
+    unsigned int	/* src_width */,
+    unsigned int	/* src_height */,
+    Bool		/* send_event */
+);
+
+Status XShmGetImage(
+    Display*		/* dpy */,
+    Drawable		/* d */,
+    XImage*		/* image */,
+    int			/* x */,
+    int			/* y */,
+    unsigned long	/* plane_mask */
+);
+
+XImage *XShmCreateImage(
+    Display*		/* dpy */,
+    Visual*		/* visual */,
+    unsigned int	/* depth */,
+    int			/* format */,
+    char*		/* data */,
+    XShmSegmentInfo*	/* shminfo */,
+    unsigned int	/* width */,
+    unsigned int	/* height */
+);
+
+Pixmap XShmCreatePixmap(
+    Display*		/* dpy */,
+    Drawable		/* d */,
+    char*		/* data */,
+    XShmSegmentInfo*	/* shminfo */,
+    unsigned int	/* width */,
+    unsigned int	/* height */,
+    unsigned int	/* depth */
+);
+
+_XFUNCPROTOEND
+
+#endif
diff --git a/include/X11/extensions/XTest.h b/include/X11/extensions/XTest.h
new file mode 100644
index 0000000..f27407a
--- /dev/null
+++ b/include/X11/extensions/XTest.h
@@ -0,0 +1,146 @@
+/* $Xorg: XTest.h,v 1.5 2001/02/09 02:03:24 xorgcvs Exp $ */
+/*
+
+Copyright 1992, 1998  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 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.
+
+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.
+
+*/
+/* $XFree86: xc/include/extensions/XTest.h,v 3.3 2001/12/14 19:53:28 dawes Exp $ */
+
+#ifndef _XTEST_H_
+#define _XTEST_H_
+
+#include <X11/Xfuncproto.h>
+#include <X11/extensions/xtest.h>
+#include <X11/extensions/XInput.h>
+
+_XFUNCPROTOBEGIN
+
+Bool XTestQueryExtension(
+    Display*		/* dpy */,
+    int*		/* event_basep */,
+    int*		/* error_basep */,
+    int*		/* majorp */,
+    int*		/* minorp */
+);
+
+Bool XTestCompareCursorWithWindow(
+    Display*		/* dpy */,
+    Window		/* window */,
+    Cursor		/* cursor */
+);
+
+Bool XTestCompareCurrentCursorWithWindow(
+    Display*		/* dpy */,
+    Window		/* window */
+);
+
+extern int XTestFakeKeyEvent(
+    Display*		/* dpy */,
+    unsigned int	/* keycode */,
+    Bool		/* is_press */,
+    unsigned long	/* delay */
+);
+
+extern int XTestFakeButtonEvent(
+    Display*		/* dpy */,
+    unsigned int	/* button */,
+    Bool		/* is_press */,
+    unsigned long	/* delay */
+);
+
+extern int XTestFakeMotionEvent(
+    Display*		/* dpy */,
+    int			/* screen */,
+    int			/* x */,
+    int			/* y */,
+    unsigned long	/* delay */
+);
+
+extern int XTestFakeRelativeMotionEvent(
+    Display*		/* dpy */,
+    int			/* x */,
+    int			/* y */,
+    unsigned long	/* delay */
+);
+
+extern int XTestFakeDeviceKeyEvent(
+    Display*		/* dpy */,
+    XDevice*		/* dev */,
+    unsigned int	/* keycode */,
+    Bool		/* is_press */,
+    int*		/* axes */,
+    int			/* n_axes */,
+    unsigned long	/* delay */
+);
+
+extern int XTestFakeDeviceButtonEvent(
+    Display*		/* dpy */,
+    XDevice*		/* dev */,
+    unsigned int	/* button */,
+    Bool		/* is_press */,
+    int*		/* axes */,
+    int			/* n_axes */,
+    unsigned long	/* delay */
+);
+
+extern int XTestFakeProximityEvent(
+    Display*		/* dpy */,
+    XDevice*		/* dev */,
+    Bool		/* in_prox */,
+    int*		/* axes */,
+    int			/* n_axes */,
+    unsigned long	/* delay */
+);
+
+extern int XTestFakeDeviceMotionEvent(
+    Display*		/* dpy */,
+    XDevice*		/* dev */,
+    Bool		/* is_relative */,
+    int			/* first_axis */,
+    int*		/* axes */,
+    int			/* n_axes */,
+    unsigned long	/* delay */
+);
+
+extern int XTestGrabControl(
+    Display*		/* dpy */,
+    Bool		/* impervious */
+);
+
+void XTestSetGContextOfGC(
+    GC			/* gc */,
+    GContext		/* gid */
+);
+
+void XTestSetVisualIDOfVisual(
+    Visual*		/* visual */,
+    VisualID		/* visualid */
+);
+
+Status XTestDiscard(
+    Display*		/* dpy */
+);
+
+_XFUNCPROTOEND
+
+#endif
diff --git a/include/X11/extensions/Xag.h b/include/X11/extensions/Xag.h
new file mode 100644
index 0000000..eb2e2c4
--- /dev/null
+++ b/include/X11/extensions/Xag.h
@@ -0,0 +1,92 @@
+/* $XFree86: xc/include/extensions/Xag.h,v 1.5 2001/12/17 20:52:24 dawes Exp $ */
+/*
+Copyright 1996, 1998  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 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.
+
+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.
+*/
+/* $Xorg: Xag.h,v 1.5 2001/02/09 02:03:24 xorgcvs Exp $ */
+
+#ifndef _XAG_H_
+#define _XAG_H_
+
+#include <X11/extensions/ag.h>
+#include <X11/Xfuncproto.h>
+
+#include <stdarg.h>
+
+_XFUNCPROTOBEGIN
+
+typedef XID XAppGroup;
+
+Bool XagQueryVersion(
+    Display*			/* dpy */,
+    int*			/* major_version */,
+    int*			/* minor_version */
+);
+
+Status XagCreateEmbeddedApplicationGroup(
+    Display*			/* dpy */,
+    VisualID			/* root_visual */,
+    Colormap			/* default_colormap */,
+    unsigned long		/* black_pixel */,
+    unsigned long		/* white_pixel */,
+    XAppGroup*			/* app_group_return */
+);
+
+Status XagCreateNonembeddedApplicationGroup(
+    Display*			/* dpy */,
+    XAppGroup*			/* app_group_return */
+);
+
+Status XagDestroyApplicationGroup(
+    Display*			/* dpy */,
+    XAppGroup			/* app_group */
+);
+
+Status XagGetApplicationGroupAttributes(


Reply to: