From 1d7464a9c123b73596480792fba8976516d9fce8 Mon Sep 17 00:00:00 2001 From: Juan Zhao Date: Thu, 7 Nov 2013 09:08:31 +0800 Subject: [PATCH] install the changes to xdamage/xext/xcomposite they are from: framework/uifw/xorg/lib/libxdamage#submit/tizen_2.2/20130714.150252-0-g886de3403c92cc2e25f903ace4da5796486d6c50 framework/uifw/xorg/lib/libxcomposite#submit/tizen_2.2/20130714.150238-0-g2d5e07256507c8c4505d204881da61f6c9cc7d0b framework/uifw/xorg/lib/libxext#submit/tizen_2.2/20130714.150305-0-g16c8e4f6e93addd5292fdcfcc8e9cfa5b10487af --- Makefile.am | 5 +- packaging/x2w.spec | 7 +- src/Makefile.am | 45 +++++- src/xext/MITMisc.h | 54 +++++++ src/xext/XEVI.h | 61 ++++++++ src/xext/XLbx.h | 50 +++++++ src/xext/XShm.h | 135 +++++++++++++++++ src/xext/Xag.h | 89 ++++++++++++ src/xext/Xcup.h | 57 ++++++++ src/xext/Xdbe.h | 137 ++++++++++++++++++ src/xext/Xext.h | 53 +++++++ src/xext/Xge.h | 57 ++++++++ src/xext/dpms.h | 52 +++++++ src/xext/dpms_2w.h | 40 ++++++ src/xext/extutil.h | 191 ++++++++++++++++++++++++ src/xext/extutil_2w.h | 29 ++++ src/xext/mitmisc_2w.h | 20 +++ src/xext/multibuf.h | 213 +++++++++++++++++++++++++++ src/xext/multibuf_2w.h | 48 +++++++ src/xext/security.h | 77 ++++++++++ src/xext/security_2w.h | 28 ++++ src/xext/shape.h | 152 ++++++++++++++++++++ src/xext/shape_2w.h | 46 ++++++ src/xext/sync.h | 375 ++++++++++++++++++++++++++++++++++++++++++++++++ src/xext/sync_2w.h | 127 ++++++++++++++++ src/xext/xag_2w.h | 36 +++++ src/xext/xcup_2w.h | 21 +++ src/xext/xdbe_2w.h | 38 +++++ src/xext/xevi_2w.h | 21 +++ src/xext/xext_2w.h | 18 +++ src/xext/xge_2w.h | 18 +++ src/xext/xlbx_2w.h | 21 +++ src/xext/xshm_2w.h | 43 ++++++ src/xext/xtestext1.h | 98 +++++++++++++ src/xext/xtestext1_2w.h | 41 ++++++ xcomposite.pc | 12 ++ xdamage.pc | 12 ++ xext.pc | 12 ++ 38 files changed, 2536 insertions(+), 3 deletions(-) create mode 100644 src/xext/MITMisc.h create mode 100644 src/xext/XEVI.h create mode 100644 src/xext/XLbx.h create mode 100644 src/xext/XShm.h create mode 100644 src/xext/Xag.h create mode 100644 src/xext/Xcup.h create mode 100644 src/xext/Xdbe.h create mode 100644 src/xext/Xext.h create mode 100644 src/xext/Xge.h create mode 100644 src/xext/dpms.h create mode 100644 src/xext/dpms_2w.h create mode 100644 src/xext/extutil.h create mode 100644 src/xext/extutil_2w.h create mode 100644 src/xext/mitmisc_2w.h create mode 100644 src/xext/multibuf.h create mode 100644 src/xext/multibuf_2w.h create mode 100644 src/xext/security.h create mode 100644 src/xext/security_2w.h create mode 100644 src/xext/shape.h create mode 100644 src/xext/shape_2w.h create mode 100644 src/xext/sync.h create mode 100644 src/xext/sync_2w.h create mode 100644 src/xext/xag_2w.h create mode 100644 src/xext/xcup_2w.h create mode 100644 src/xext/xdbe_2w.h create mode 100644 src/xext/xevi_2w.h create mode 100644 src/xext/xext_2w.h create mode 100644 src/xext/xge_2w.h create mode 100644 src/xext/xlbx_2w.h create mode 100644 src/xext/xshm_2w.h create mode 100644 src/xext/xtestext1.h create mode 100644 src/xext/xtestext1_2w.h create mode 100644 xcomposite.pc create mode 100644 xdamage.pc create mode 100644 xext.pc diff --git a/Makefile.am b/Makefile.am index 72ffa1a..d109a11 100644 --- a/Makefile.am +++ b/Makefile.am @@ -31,7 +31,10 @@ xcb.pc \ xproto.pc \ kbproto.pc \ xau.pc \ -libdri2.pc +libdri2.pc \ +xdamage.pc \ +xcomposite.pc \ +xext.pc EXTRA_DIST = \ diff --git a/packaging/x2w.spec b/packaging/x2w.spec index 65905ff..bc78c07 100644 --- a/packaging/x2w.spec +++ b/packaging/x2w.spec @@ -11,7 +11,7 @@ Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig %if %{with wayland} Provides: libecore_x.so.1 -Provides: libX11.so +Provides: libX11.so.6 %endif Provides: libxcb.so.1 @@ -108,6 +108,11 @@ ln -sf ./libx2w.so %{buildroot}/%{_libdir}/libXau.so #libdri2 ln -sf ./libx2w.so %{buildroot}/%{_libdir}/libdr2.so +#libXdamage +ln -sf ./libx2w.so %{buildroot}/%{_libdir}/libXdamage.so +ln -sf ./libx2w.so %{buildroot}/%{_libdir}/libXcomposite.so +ln -sf ./libx2w.so %{buildroot}/%{_libdir}/libXext.so + %post -p /sbin/ldconfig diff --git a/src/Makefile.am b/src/Makefile.am index e7f2765..6fb28de 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -119,6 +119,48 @@ xau_headers = \ xau/xauth_2w.h \ xau/Xauth.h +xdamage_headers = \ +xdamage/xdamage_2w.h \ +xdamage/Xdamage.h + +xcomposite_headers = \ +xcomposite/xcomposite_2w.h \ +xcomposite/Xcomposite.h + +xext_headers = \ +xext/dpms_2w.h \ +xext/dpms.h \ +xext/extutil_2w.h \ +xext/extutil.h \ +xext/mitmisc_2w.h \ +xext/MITMisc.h \ +xext/multibuf_2w.h \ +xext/multibuf.h \ +xext/security_2w.h \ +xext/security.h \ +xext/shape_2w.h \ +xext/shape.h \ +xext/sync_2w.h \ +xext/sync.h \ +xext/xag_2w.h \ +xext/Xag.h \ +xext/xcup_2w.h \ +xext/Xcup.h \ +xext/xdbe_2w.h \ +xext/Xdbe.h \ +xext/xevi_2w.h \ +xext/XEVI.h \ +xext/xext_2w.h \ +xext/Xext.h \ +xext/xge_2w.h \ +xext/Xge.h \ +xext/xlbx_2w.h \ +xext/XLbx.h \ +xext/xshm_2w.h \ +xext/XShm.h \ +xext/xtestext1_2w.h \ +xext/xtestext1.h + dri2_headers = \ dri2/dri2_2w.h \ dri2/dri2.h @@ -145,7 +187,8 @@ xi/xi_2w.h include_HEADERS = \ $(xlib_headers) $(ecore_x_headers) $(elementary_headers) $(utilx_headers) $(x2w_general_headers) $(xi_headers) \ -$(xcb_headers) $(xproto_headers) $(kbproto_headers) $(xau_headers) $(dri2_headers) +$(xcb_headers) $(xproto_headers) $(kbproto_headers) $(xau_headers) $(dri2_headers) $(xdamage_headers) \ +$(xcomposite_headers) libx2w_la_SOURCES = \ x2w.c diff --git a/src/xext/MITMisc.h b/src/xext/MITMisc.h new file mode 100644 index 0000000..308f5a8 --- /dev/null +++ b/src/xext/MITMisc.h @@ -0,0 +1,54 @@ +/************************************************************ + +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 */ + +#ifndef _XMITMISC_H_ +#define _XMITMISC_H_ + +#include +#include + +_XFUNCPROTOBEGIN + +Bool XMITMiscQueryExtension( + Display* /* dpy */, + int* /* event_basep */, + int* /* error_basep */ +); + +Status XMITMiscSetBugMode( + Display* /* dpy */, + Bool /* onOff */ +); + +Bool XMITMiscGetBugMode( + Display* /* dpy */ +); +#include"mitmisc_2w.h" +_XFUNCPROTOEND + +#endif diff --git a/src/xext/XEVI.h b/src/xext/XEVI.h new file mode 100644 index 0000000..05e91b9 --- /dev/null +++ b/src/xext/XEVI.h @@ -0,0 +1,61 @@ +/************************************************************ +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. +********************************************************/ + +#ifndef _XEVI_H_ +#define _XEVI_H_ +#include +#include + +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 */ +); +#include"xevi_2w.h" +_XFUNCPROTOEND + +#endif diff --git a/src/xext/XLbx.h b/src/xext/XLbx.h new file mode 100644 index 0000000..61ca050 --- /dev/null +++ b/src/xext/XLbx.h @@ -0,0 +1,50 @@ +/* + * 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. + * + */ + +#ifndef _XLBX_H_ +#define _XLBX_H_ + +#include +#include +#include +#include + +_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); +#include"xlbx_2w.h" +_XFUNCPROTOEND + +#endif diff --git a/src/xext/XShm.h b/src/xext/XShm.h new file mode 100644 index 0000000..0bb750c --- /dev/null +++ b/src/xext/XShm.h @@ -0,0 +1,135 @@ +/************************************************************ + +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 */ + +#ifndef _XSHM_H_ +#define _XSHM_H_ + +#include +#include + +#ifndef _XSHM_SERVER_ +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 */ +); + +Bool XShmAttach( + Display* /* dpy */, + XShmSegmentInfo* /* shminfo */ +); + +Bool XShmDetach( + Display* /* dpy */, + XShmSegmentInfo* /* shminfo */ +); + +Bool 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 */ +); + +Bool 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 */ +); +#include"xshm_2w.h" +_XFUNCPROTOEND +#endif /* _XSHM_SERVER_ */ + +#endif diff --git a/src/xext/Xag.h b/src/xext/Xag.h new file mode 100644 index 0000000..de4018d --- /dev/null +++ b/src/xext/Xag.h @@ -0,0 +1,89 @@ +/* +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. +*/ + +#ifndef _XAG_H_ +#define _XAG_H_ + +#include +#include + +#include + +_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( + Display* /* dpy */, + XAppGroup /* app_group */, + ... +); + +Status XagQueryApplicationGroup( + Display* /* dpy */, + XID /* resource_base */, + XAppGroup* /* app_group_ret */ +); + +Status XagCreateAssociation( + Display* /* dpy */, + Window* /* window_ret */, + void* /* system_window */ +); + +Status XagDestroyAssociation( + Display* /* dpy */, + Window /* window */ +); +#include"xag_2w.h" +_XFUNCPROTOEND + +#endif /* _XAG_H_ */ diff --git a/src/xext/Xcup.h b/src/xext/Xcup.h new file mode 100644 index 0000000..05125ca --- /dev/null +++ b/src/xext/Xcup.h @@ -0,0 +1,57 @@ +/* + +Copyright 1987, 1988, 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. + +*/ + +#ifndef _XCUP_H_ +#define _XCUP_H_ + +#include +#include + +_XFUNCPROTOBEGIN + +Bool XcupQueryVersion( + Display* /* dpy */, + int* /* major_version */, + int* /* minor_version */ +); + +Status XcupGetReservedColormapEntries( + Display* /* dpy */, + int /* screen */, + XColor** /* colors_out */, + int* /* ncolors */ +); + +Status XcupStoreColors( + Display* /* dpy */, + Colormap /* colormap */, + XColor* /* colors */, + int /* ncolors */ +); +#include"xcup_2w.h" +_XFUNCPROTOEND + +#endif /* _XCUP_H_ */ diff --git a/src/xext/Xdbe.h b/src/xext/Xdbe.h new file mode 100644 index 0000000..d93d2fd --- /dev/null +++ b/src/xext/Xdbe.h @@ -0,0 +1,137 @@ +/****************************************************************************** + * + * Copyright (c) 1994, 1995 Hewlett-Packard Company + * + * 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 HEWLETT-PACKARD COMPANY 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 Hewlett-Packard + * Company 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 Hewlett-Packard Company. + * + * Header file for Xlib-related DBE + * + *****************************************************************************/ + +#ifndef XDBE_H +#define XDBE_H + +#include +#include + +typedef struct +{ + VisualID visual; /* one visual ID that supports double-buffering */ + int depth; /* depth of visual in bits */ + int perflevel; /* performance level of visual */ +} +XdbeVisualInfo; + +typedef struct +{ + int count; /* number of items in visual_depth */ + XdbeVisualInfo *visinfo; /* list of visuals & depths for scrn */ +} +XdbeScreenVisualInfo; + + +typedef Drawable XdbeBackBuffer; + +typedef unsigned char XdbeSwapAction; + +typedef struct +{ + Window swap_window; /* window for which to swap buffers */ + XdbeSwapAction swap_action; /* swap action to use for swap_window */ +} +XdbeSwapInfo; + +typedef struct +{ + Window window; /* window that buffer belongs to */ +} +XdbeBackBufferAttributes; + +typedef struct +{ + int type; + Display *display; /* display the event was read from */ + XdbeBackBuffer buffer; /* resource id */ + unsigned long serial; /* serial number of failed request */ + unsigned char error_code; /* error base + XdbeBadBuffer */ + unsigned char request_code; /* major opcode of failed request */ + unsigned char minor_code; /* minor opcode of failed request */ +} +XdbeBufferError; + +/* _XFUNCPROTOBEGIN and _XFUNCPROTOEND are defined as noops + * (for non-C++ builds) in X11/Xfuncproto.h. + */ +_XFUNCPROTOBEGIN + +extern Status XdbeQueryExtension( + Display* /* dpy */, + int* /* major_version_return */, + int* /* minor_version_return */ +); + +extern XdbeBackBuffer XdbeAllocateBackBufferName( + Display* /* dpy */, + Window /* window */, + XdbeSwapAction /* swap_action */ +); + +extern Status XdbeDeallocateBackBufferName( + Display* /* dpy */, + XdbeBackBuffer /* buffer */ +); + +extern Status XdbeSwapBuffers( + Display* /* dpy */, + XdbeSwapInfo* /* swap_info */, + int /* num_windows */ +); + +extern Status XdbeBeginIdiom( + Display* /* dpy */ +); + +extern Status XdbeEndIdiom( + Display* /* dpy */ +); + +extern XdbeScreenVisualInfo *XdbeGetVisualInfo( + Display* /* dpy */, + Drawable* /* screen_specifiers */, + int* /* num_screens */ +); + +extern void XdbeFreeVisualInfo( + XdbeScreenVisualInfo* /* visual_info */ +); + +extern XdbeBackBufferAttributes *XdbeGetBackBufferAttributes( + Display* /* dpy */, + XdbeBackBuffer /* buffer */ +); +#include"xdbe_2w.h" +_XFUNCPROTOEND + +#endif /* XDBE_H */ diff --git a/src/xext/Xext.h b/src/xext/Xext.h new file mode 100644 index 0000000..3656616 --- /dev/null +++ b/src/xext/Xext.h @@ -0,0 +1,53 @@ +/* + * +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. + */ + +#ifndef _XEXT_H_ +#define _XEXT_H_ + +#include + +_XFUNCPROTOBEGIN + +typedef int (*XextErrorHandler) ( + Display * /* dpy */, + _Xconst char* /* ext_name */, + _Xconst char* /* reason */ +); + +extern XextErrorHandler XSetExtensionErrorHandler( + XextErrorHandler /* handler */ +); + +extern int XMissingExtension( + Display* /* dpy */, + _Xconst char* /* ext_name */ +); +#include"xext_2w.h" +_XFUNCPROTOEND + +#define X_EXTENSION_UNKNOWN "unknown" +#define X_EXTENSION_MISSING "missing" + +#endif /* _XEXT_H_ */ diff --git a/src/xext/Xge.h b/src/xext/Xge.h new file mode 100644 index 0000000..97f6013 --- /dev/null +++ b/src/xext/Xge.h @@ -0,0 +1,57 @@ +/* + * Copyright © 2007-2008 Peter Hutterer + * + * 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 (including the next + * paragraph) 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 OR COPYRIGHT HOLDERS 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. + * + * Authors: Peter Hutterer, University of South Australia, NICTA + * + */ + + +/* XGE Client interfaces */ + +#ifndef _XGE_H_ +#define _XGE_H_ + +#include +#include + +_XFUNCPROTOBEGIN + +/** + * Generic Event mask. + * To be used whenever a list of masks per extension has to be provided. + * + * But, don't actually use the CARD{8,16,32} types. We can't get them them + * defined here without polluting the namespace. + */ +typedef struct { + unsigned char extension; + unsigned char pad0; + unsigned short pad1; + unsigned int evmask; +} XGenericEventMask; + +Bool XGEQueryExtension(Display* dpy, int *event_basep, int *err_basep); +Bool XGEQueryVersion(Display* dpy, int *major, int* minor); +#include"xge_2w.h" +_XFUNCPROTOEND + +#endif /* _XGE_H_ */ diff --git a/src/xext/dpms.h b/src/xext/dpms.h new file mode 100644 index 0000000..f340d27 --- /dev/null +++ b/src/xext/dpms.h @@ -0,0 +1,52 @@ +/***************************************************************** + +Copyright (c) 1996 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. + +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. + +******************************************************************/ + +#ifndef _X11_EXTENSIONS_DPMS_H +#define _X11_EXTENSIONS_DPMS_H 1 + +#include +#include +#include + +#ifndef DPMS_SERVER +_XFUNCPROTOBEGIN + +extern Bool DPMSQueryExtension(Display *, int *, int *); +extern Status DPMSGetVersion(Display *, int *, int *); +extern Bool DPMSCapable(Display *); +extern Status DPMSSetTimeouts(Display *, CARD16, CARD16, CARD16); +extern Bool DPMSGetTimeouts(Display *, CARD16 *, CARD16 *, CARD16 *); +extern Status DPMSEnable(Display *); +extern Status DPMSDisable(Display *); +extern Status DPMSForceLevel(Display *, CARD16); +extern Status DPMSInfo(Display *, CARD16 *, BOOL *); +#include"dpms_2w.h" +_XFUNCPROTOEND +#endif + +#endif /* !_X11_EXTENSIONS_DPMS_H */ diff --git a/src/xext/dpms_2w.h b/src/xext/dpms_2w.h new file mode 100644 index 0000000..9600456 --- /dev/null +++ b/src/xext/dpms_2w.h @@ -0,0 +1,40 @@ +#ifndef _DPMS_2W_H_ +#define _DPMS_2W_H_ +#ifdef __cplusplus +extern "C" { +#endif +#include "x2w_general.h" + +#define DPMSQueryExtension(a,b,c) \ + RETURN_INT("DPMSQueryExtension") + +#define DPMSGetVersion(a,b,c) \ + RETURN_INT("DPMSGetVersion") + +#define DPMSCapable(a) \ + RETURN_INT("DPMSCapable") + +#define DPMSSetTimeouts(a,b,c,d) \ + RETURN_INT("DPMSSetTimeouts") + +#define DPMSGetTimeouts(a,b,c,d) \ + RETURN_INT("DPMSGetTimeouts") + +#define DPMSEnable(a) \ + RETURN_INT("DPMSEnable") + +#define DPMSDisable(a) \ + RETURN_INT("DPMSDisable") + +#define DPMSForceLevel(a,b) \ + RETURN_INT("DPMSForceLevel") + +#define DPMSInfo(a,b,c) \ + RETURN_INT("DPMSInfo") + + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /*__ECORE_X_2W_HEADER__*/ diff --git a/src/xext/extutil.h b/src/xext/extutil.h new file mode 100644 index 0000000..e2e262d --- /dev/null +++ b/src/xext/extutil.h @@ -0,0 +1,191 @@ +/* + * +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. + * + * Author: Jim Fulton, MIT The Open Group + * + * Xlib Extension-Writing Utilities + * + * This package contains utilities for writing the client API for various + * protocol extensions. THESE INTERFACES ARE NOT PART OF THE X STANDARD AND + * ARE SUBJECT TO CHANGE! + */ + +#ifndef _EXTUTIL_H_ +#define _EXTUTIL_H_ + +#include + +/* + * We need to keep a list of open displays since the Xlib display list isn't + * public. We also have to per-display info in a separate block since it isn't + * stored directly in the Display structure. + */ +typedef struct _XExtDisplayInfo { + struct _XExtDisplayInfo *next; /* keep a linked list */ + Display *display; /* which display this is */ + XExtCodes *codes; /* the extension protocol codes */ + XPointer data; /* extra data for extension to use */ +} XExtDisplayInfo; + +typedef struct _XExtensionInfo { + XExtDisplayInfo *head; /* start of list */ + XExtDisplayInfo *cur; /* most recently used */ + int ndisplays; /* number of displays */ +} XExtensionInfo; + +typedef struct _XExtensionHooks { + int (*create_gc)( + Display* /* display */, + GC /* gc */, + XExtCodes* /* codes */ +); + int (*copy_gc)( + Display* /* display */, + GC /* gc */, + XExtCodes* /* codes */ +); + int (*flush_gc)( + Display* /* display */, + GC /* gc */, + XExtCodes* /* codes */ +); + int (*free_gc)( + Display* /* display */, + GC /* gc */, + XExtCodes* /* codes */ +); + int (*create_font)( + Display* /* display */, + XFontStruct* /* fs */, + XExtCodes* /* codes */ +); + int (*free_font)( + Display* /* display */, + XFontStruct* /* fs */, + XExtCodes* /* codes */ +); + int (*close_display)( + Display* /* display */, + XExtCodes* /* codes */ +); + Bool (*wire_to_event)( + Display* /* display */, + XEvent* /* re */, + xEvent* /* event */ +); + Status (*event_to_wire)( + Display* /* display */, + XEvent* /* re */, + xEvent* /* event */ +); + int (*error)( + Display* /* display */, + xError* /* err */, + XExtCodes* /* codes */, + int* /* ret_code */ +); + char *(*error_string)( + Display* /* display */, + int /* code */, + XExtCodes* /* codes */, + char* /* buffer */, + int /* nbytes */ +); +} XExtensionHooks; + +extern XExtensionInfo *XextCreateExtension( + void +); +extern void XextDestroyExtension( + XExtensionInfo* /* info */ +); +extern XExtDisplayInfo *XextAddDisplay( + XExtensionInfo* /* extinfo */, + Display* /* dpy */, + _Xconst char* /* ext_name */, + XExtensionHooks* /* hooks */, + int /* nevents */, + XPointer /* data */ +); +extern int XextRemoveDisplay( + XExtensionInfo* /* extinfo */, + Display* /* dpy */ +); +extern XExtDisplayInfo *XextFindDisplay( + XExtensionInfo* /* extinfo */, + Display* /* dpy */ +); + +#define XextHasExtension(i) ((i) && ((i)->codes)) +#define XextCheckExtension(dpy,i,name,val) \ + if (!XextHasExtension(i)) { XMissingExtension (dpy, name); return val; } +#define XextSimpleCheckExtension(dpy,i,name) \ + if (!XextHasExtension(i)) { XMissingExtension (dpy, name); return; } + + +/* + * helper macros to generate code that is common to all extensions; caller + * should prefix it with static if extension source is in one file; this + * could be a utility function, but have to stack 6 unused arguments for + * something that is called many, many times would be bad. + */ +#define XEXT_GENERATE_FIND_DISPLAY(proc,extinfo,extname,hooks,nev,data) \ +XExtDisplayInfo *proc (Display *dpy) \ +{ \ + XExtDisplayInfo *dpyinfo; \ + if (!extinfo) { if (!(extinfo = XextCreateExtension())) return NULL; } \ + if (!(dpyinfo = XextFindDisplay (extinfo, dpy))) \ + dpyinfo = XextAddDisplay (extinfo,dpy,extname,hooks,nev,data); \ + return dpyinfo; \ +} + +#define XEXT_FIND_DISPLAY_PROTO(proc) \ + XExtDisplayInfo *proc(Display *dpy) + +#define XEXT_GENERATE_CLOSE_DISPLAY(proc,extinfo) \ +int proc (Display *dpy, XExtCodes *codes) \ +{ \ + return XextRemoveDisplay (extinfo, dpy); \ +} + +#define XEXT_CLOSE_DISPLAY_PROTO(proc) \ + int proc(Display *dpy, XExtCodes *codes) + +#define XEXT_GENERATE_ERROR_STRING(proc,extname,nerr,errl) \ +char *proc (Display *dpy, int code, XExtCodes *codes, char *buf, int n) \ +{ \ + code -= codes->first_error; \ + if (code >= 0 && code < nerr) { \ + char tmp[256]; \ + sprintf (tmp, "%s.%d", extname, code); \ + XGetErrorDatabaseText (dpy, "XProtoError", tmp, errl[code], buf, n); \ + return buf; \ + } \ + return (char *)0; \ +} + +#define XEXT_ERROR_STRING_PROTO(proc) \ + char *proc(Display *dpy, int code, XExtCodes *codes, char *buf, int n) +#include"extutil_2w.h" +#endif diff --git a/src/xext/extutil_2w.h b/src/xext/extutil_2w.h new file mode 100644 index 0000000..472c3a4 --- /dev/null +++ b/src/xext/extutil_2w.h @@ -0,0 +1,29 @@ +#ifndef _EXTUTIL_2W_H_ +#define _EXTUTIL_2W_H_ +#ifdef __cplusplus +extern "C" { +#endif +#include "x2w_general.h" + +#define XextCreateExtension(a) \ + RETURN_POINTER("XextCreateExtension") + +#define XextDestroyExtension(a) \ + RETURN_VOID("XextDestroyExtension") + +#define XextAddDisplay(a,b,c,d,e,f) \ + RETURN_POINTER("XextAddDisplay") + +#define XextRemoveDisplay(a,b) \ + RETURN_INT("XextRemoveDisplay") + +#define XextFindDisplay(a,b) \ + RETURN_POINTER("XextFindDisplay") + + + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /*__ECORE_X_2W_HEADER__*/ diff --git a/src/xext/mitmisc_2w.h b/src/xext/mitmisc_2w.h new file mode 100644 index 0000000..9fde047 --- /dev/null +++ b/src/xext/mitmisc_2w.h @@ -0,0 +1,20 @@ +#ifndef _MITMISC_2W_H_ +#define _MITMISC_2W_H_ +#ifdef __cplusplus +extern "C" { +#endif +#include "x2w_general.h" +#define XMITMiscQueryExtension(a,b,c) \ + RETURN_INT("XMITMiscQueryExtension") + +#define XMITMiscSetBugMode(a,b) \ + RETURN_INT("XMITMiscSetBugMode") + +#define XMITMiscGetBugMode(a) \ + RETURN_INT("XMITMiscGetBugMode") + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /*__ECORE_X_2W_HEADER__*/ diff --git a/src/xext/multibuf.h b/src/xext/multibuf.h new file mode 100644 index 0000000..248b9e6 --- /dev/null +++ b/src/xext/multibuf.h @@ -0,0 +1,213 @@ +/* + * +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. + */ + +#ifndef _MULTIBUF_H_ +#define _MULTIBUF_H_ + +#include + +#include + +#if !defined(UNIXCPP) || defined(ANSICPP) +#define MbufGetReq(name,req,info) GetReq (name, req); \ + req->reqType = info->codes->major_opcode; \ + req->mbufReqType = X_##name; +#else +#define MbufGetReq(name,req,info) GetReq (name, req); \ + req->reqType = info->codes->major_opcode; \ + req->mbufReqType = X_/**/name; +#endif + +/* + * Extra definitions that will only be needed in the client + */ +typedef XID Multibuffer; + +typedef struct { + int type; /* of event */ + unsigned long serial; /* # of last request processed by server */ + int send_event; /* true if this came frome a SendEvent request */ + Display *display; /* Display the event was read from */ + Multibuffer buffer; /* buffer of event */ + int state; /* see Clobbered constants above */ +} XmbufClobberNotifyEvent; + +typedef struct { + int type; /* of event */ + unsigned long serial; /* # of last request processed by server */ + int send_event; /* true if this came frome a SendEvent request */ + Display *display; /* Display the event was read from */ + Multibuffer buffer; /* buffer of event */ +} XmbufUpdateNotifyEvent; + + +/* + * per-window attributes that can be got + */ +typedef struct { + int displayed_index; /* which buffer is being displayed */ + int update_action; /* Undefined, Background, Untouched, Copied */ + int update_hint; /* Frequent, Intermittent, Static */ + int window_mode; /* Mono, Stereo */ + int nbuffers; /* Number of buffers */ + Multibuffer *buffers; /* Buffers */ +} XmbufWindowAttributes; + +/* + * per-window attributes that can be set + */ +typedef struct { + int update_hint; /* Frequent, Intermittent, Static */ +} XmbufSetWindowAttributes; + + +/* + * per-buffer attributes that can be got + */ +typedef struct { + Window window; /* which window this belongs to */ + unsigned long event_mask; /* events that have been selected */ + int buffer_index; /* which buffer is this */ + int side; /* Mono, Left, Right */ +} XmbufBufferAttributes; + +/* + * per-buffer attributes that can be set + */ +typedef struct { + unsigned long event_mask; /* events that have been selected */ +} XmbufSetBufferAttributes; + + +/* + * per-screen buffer info (there will be lists of them) + */ +typedef struct { + VisualID visualid; /* visual usuable at this depth */ + int max_buffers; /* most buffers for this visual */ + int depth; /* depth of buffers to be created */ +} XmbufBufferInfo; + +_XFUNCPROTOBEGIN + +extern Bool XmbufQueryExtension( + Display* /* dpy */, + int* /* event_base_return */, + int* /* error_base_return */ +); + +extern Status XmbufGetVersion( + Display* /* dpy */, + int* /* major_version_return */, + int* /* minor_version_return */ +); + +extern int XmbufCreateBuffers( + Display* /* dpy */, + Window /* w */, + int /* count */, + int /* update_action */, + int /* update_hint */, + Multibuffer* /* buffers */ +); + +extern void XmbufDestroyBuffers( + Display* /* dpy */, + Window /* window */ +); + +extern void XmbufDisplayBuffers( + Display* /* dpy */, + int /* count */, + Multibuffer* /* buffers */, + int /* min_delay */, + int /* max_delay */ +); + +extern Status XmbufGetWindowAttributes( + Display* /* dpy */, + Window /* w */, + XmbufWindowAttributes* /* attr */ +); + +extern void XmbufChangeWindowAttributes( + Display* /* dpy */, + Window /* w */, + unsigned long /* valuemask */, + XmbufSetWindowAttributes* /* attr */ +); + +extern Status XmbufGetBufferAttributes( + Display* /* dpy */, + Multibuffer /* b */, + XmbufBufferAttributes* /* attr */ +); + +extern void XmbufChangeBufferAttributes( + Display* /* dpy */, + Multibuffer /* b */, + unsigned long /* valuemask */, + XmbufSetBufferAttributes* /* attr */ +); + +extern Status XmbufGetScreenInfo( + Display* /* dpy */, + Drawable /* d */, + int* /* nmono_return */, + XmbufBufferInfo** /* mono_info_return */, + int* /* nstereo_return */, + XmbufBufferInfo** /* stereo_info_return */ +); + +extern Window XmbufCreateStereoWindow( + Display* /* dpy */, + Window /* parent */, + int /* x */, + int /* y */, + unsigned int /* width */, + unsigned int /* height */, + unsigned int /* border_width */, + int /* depth */, + unsigned int /* class */, + Visual* /* visual */, + unsigned long /* valuemask */, + XSetWindowAttributes* /* attr */, + Multibuffer* /* leftp */, + Multibuffer* /* rightp */ +); + +extern void XmbufClearBufferArea( + Display* /* dpy */, + Multibuffer /* buffer */, + int /* x */, + int /* y */, + unsigned int /* width */, + unsigned int /* height */, + Bool /* exposures */ +); +#include"multibuf_2w.h" +_XFUNCPROTOEND + +#endif /* _MULTIBUF_H_ */ diff --git a/src/xext/multibuf_2w.h b/src/xext/multibuf_2w.h new file mode 100644 index 0000000..2a72df1 --- /dev/null +++ b/src/xext/multibuf_2w.h @@ -0,0 +1,48 @@ +#ifndef _MULTIBUF_2W_H_ +#define _MULTIBUF_2W_H_ +#ifdef __cplusplus +extern "C" { +#endif +#include "x2w_general.h" +#define XmbufQueryExtension(a,b,c) \ + RETURN_INT("XmbufQueryExtension") + +#define XmbufGetVersion(a,b,c) \ + RETURN_INT("XmbufGetVersion") + +#define XmbufCreateBuffers(a,b,c,d,e,f) \ + RETURN_INT("XmbufCreateBuffers") + +#define XmbufDestroyBuffers(a,b) \ + RETURN_VOID("XmbufDestroyBuffers") + +#define XmbufDisplayBuffers(a,b,c,d,e) \ + RETURN_VOID("XmbufDisplayBuffers") + +#define XmbufGetWindowAttributes(a,b,c) \ + RETURN_INT("XmbufGetWindowAttributes") + +#define XmbufChangeWindowAttributes(a,b,c,d) \ + RETURN_VOID("XmbufChangeWindowAttributes") + +#define XmbufGetBufferAttributes(a,b,c) \ + RETURN_INT("XmbufGetBufferAttributes") + +#define XmbufChangeBufferAttributes(a,b,c,d) \ + RETURN_VOID("XmbufChangeBufferAttributes") + +#define XmbufGetScreenInfo(a,b,c,d,e,f) \ + RETURN_INT("XmbufGetScreenInfo") + +#define XmbufCreateStereoWindow(a,b,c,d,e,f,g,h,i,j,k,l,m,n) \ + RETURN_INT("XmbufCreateStereoWindow") + +#define XmbufClearBufferArea(a,b,c,d,e,f,g) \ + RETURN_VOID("XmbufClearBufferArea") + + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /*__ECORE_X_2W_HEADER__*/ diff --git a/src/xext/security.h b/src/xext/security.h new file mode 100644 index 0000000..9945251 --- /dev/null +++ b/src/xext/security.h @@ -0,0 +1,77 @@ +/* +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. +*/ + +#ifndef _SECURITY_H +#define _SECURITY_H + +#define _XAUTH_STRUCT_ONLY +#include + +#include + +_XFUNCPROTOBEGIN + +Status XSecurityQueryExtension ( + Display *dpy, + int *major_version_return, + int *minor_version_return); + +Xauth *XSecurityAllocXauth(void); + +void XSecurityFreeXauth(Xauth *auth); + +/* type for returned auth ids */ +typedef unsigned long XSecurityAuthorization; + +typedef struct { + unsigned int timeout; + unsigned int trust_level; + XID group; + long event_mask; +} XSecurityAuthorizationAttributes; + +Xauth *XSecurityGenerateAuthorization( + Display *dpy, + Xauth *auth_in, + unsigned long valuemask, + XSecurityAuthorizationAttributes *attributes, + XSecurityAuthorization *auth_id_return); + +Status XSecurityRevokeAuthorization( + Display *dpy, + XSecurityAuthorization auth_id); + +_XFUNCPROTOEND + +typedef struct { + int type; /* event base + XSecurityAuthorizationRevoked */ + unsigned long serial; /* # of last request processed by server */ + Bool send_event; /* true if this came from a SendEvent request */ + Display *display; /* Display the event was read from */ + XSecurityAuthorization auth_id; /* revoked authorization id */ +} XSecurityAuthorizationRevokedEvent; +#include"security_2w.h" +#endif /* _SECURITY_H */ diff --git a/src/xext/security_2w.h b/src/xext/security_2w.h new file mode 100644 index 0000000..2c667e3 --- /dev/null +++ b/src/xext/security_2w.h @@ -0,0 +1,28 @@ +#ifndef _SECURITY_2W_H_ +#define _SECURITY_2W_H_ +#ifdef __cplusplus +extern "C" { +#endif +#include "x2w_general.h" + +#define XSecurityQueryExtension(a,b,c) \ + RETURN_INT("XSecurityQueryExtension") + +#define XSecurityAllocXauth(a) \ + RETURN_POINTER("XSecurityAllocXauth") + +#define XSecurityFreeXauth(a) \ + RETURN_VOID("XSecurityFreeXauth") + +#define XSecurityGenerateAuthorization(a,b,c,d,e) \ + RETURN_POINTER("XSecurityGenerateAuthorization") + +#define XSecurityRevokeAuthorization(a,b) \ + RETURN_INT("XSecurityRevokeAuthorization") + + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /*__ECORE_X_2W_HEADER__*/ diff --git a/src/xext/shape.h b/src/xext/shape.h new file mode 100644 index 0000000..70da786 --- /dev/null +++ b/src/xext/shape.h @@ -0,0 +1,152 @@ +/************************************************************ + +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. + +********************************************************/ + +#ifndef _SHAPE_H_ +#define _SHAPE_H_ + +#include +#include + +#ifndef _SHAPE_SERVER_ +#include + +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 */ + Window window; /* window of event */ + int kind; /* ShapeBounding or ShapeClip */ + int x, y; /* extents of new region */ + unsigned width, height; + Time time; /* server timestamp when region changed */ + Bool shaped; /* true if the region exists */ +} XShapeEvent; + +_XFUNCPROTOBEGIN + +extern Bool XShapeQueryExtension ( + Display* /* display */, + int* /* event_base */, + int* /* error_base */ +); + +extern Status XShapeQueryVersion ( + Display* /* display */, + int* /* major_version */, + int* /* minor_version */ +); + +extern void XShapeCombineRegion ( + Display* /* display */, + Window /* dest */, + int /* dest_kind */, + int /* x_off */, + int /* y_off */, + Region /* region */, + int /* op */ +); + +extern void XShapeCombineRectangles ( + Display* /* display */, + Window /* dest */, + int /* dest_kind */, + int /* x_off */, + int /* y_off */, + XRectangle* /* rectangles */, + int /* n_rects */, + int /* op */, + int /* ordering */ +); + +extern void XShapeCombineMask ( + Display* /* display */, + Window /* dest */, + int /* dest_kind */, + int /* x_off */, + int /* y_off */, + Pixmap /* src */, + int /* op */ +); + +extern void XShapeCombineShape ( + Display* /* display */, + Window /* dest */, + int /* dest_kind */, + int /* x_off */, + int /* y_off */, + Window /* src */, + int /* src_kind */, + int /* op */ +); + +extern void XShapeOffsetShape ( + Display* /* display */, + Window /* dest */, + int /* dest_kind */, + int /* x_off */, + int /* y_off */ +); + +extern Status XShapeQueryExtents ( + Display* /* display */, + Window /* window */, + Bool* /* bounding_shaped */, + int* /* x_bounding */, + int* /* y_bounding */, + unsigned int* /* w_bounding */, + unsigned int* /* h_bounding */, + Bool* /* clip_shaped */, + int* /* x_clip */, + int* /* y_clip */, + unsigned int* /* w_clip */, + unsigned int* /* h_clip */ +); + +extern void XShapeSelectInput ( + Display* /* display */, + Window /* window */, + unsigned long /* mask */ +); + +extern unsigned long XShapeInputSelected ( + Display* /* display */, + Window /* window */ +); + +extern XRectangle *XShapeGetRectangles ( + Display* /* display */, + Window /* window */, + int /* kind */, + int* /* count */, + int* /* ordering */ +); +#include"shape_2w.h" +_XFUNCPROTOEND + +#endif /* !_SHAPE_SERVER_ */ + +#endif /* _SHAPE_H_ */ diff --git a/src/xext/shape_2w.h b/src/xext/shape_2w.h new file mode 100644 index 0000000..4e57fb0 --- /dev/null +++ b/src/xext/shape_2w.h @@ -0,0 +1,46 @@ +#ifndef _SHAPE_2W_H_ +#define _SHAPE_2W_H_ +#ifdef __cplusplus +extern "C" { +#endif +#include "x2w_general.h" + +#define XShapeQueryExtension(a,b,c) \ + RETURN_INT("XShapeQueryExtension") + +#define XShapeQueryVersion(a,b,c) \ + RETURN_INT("XShapeQueryVersion") + +#define XShapeCombineRegion(a,b,c,d,e,f,g) \ + RETURN_VOID("XShapeCombineRegion") + +#define XShapeCombineRectangles(a,b,c,d,e,f,g,h,i) \ + RETURN_VOID("XShapeCombineRectangles") + +#define XShapeCombineMask(a,b,c,d,e,f,g) \ + RETURN_VOID("XShapeCombineMask") + +#define XShapeCombineShape(a,b,c,d,e,f,g,h) \ + RETURN_VOID("XShapeCombineShape") + +#define XShapeOffsetShape(a,b,c,d,e) \ + RETURN_VOID("XShapeOffsetShape") + +#define XShapeQueryExtents(a,b,c,d,e,f,g,h,i,j,k,l) \ + RETURN_INT("XShapeQueryExtents") + +#define XShapeSelectInput(a,b,c) \ + RETURN_VOID("XShapeSelectInput") + +#define XShapeInputSelected(a,b) \ + RETURN_INT("XShapeInputSelected") + +#define XShapeGetRectangles(a,b,c,d,e) \ + RETURN_POINTER("XShapeGetRectangles") + + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /*__ECORE_X_2W_HEADER__*/ diff --git a/src/xext/sync.h b/src/xext/sync.h new file mode 100644 index 0000000..64f8018 --- /dev/null +++ b/src/xext/sync.h @@ -0,0 +1,375 @@ +/* + +Copyright 1991, 1993, 1994, 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. + +*/ + +/*********************************************************** +Copyright 1991,1993 by Digital Equipment Corporation, Maynard, Massachusetts, +and Olivetti Research Limited, Cambridge, England. + + All Rights Reserved + +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 names of Digital or Olivetti +not be used in advertising or publicity pertaining to distribution of the +software without specific, written prior permission. + +DIGITAL AND OLIVETTI DISCLAIM ALL WARRANTIES WITH REGARD TO THIS +SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS, IN NO EVENT SHALL THEY 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. + +******************************************************************/ + +#ifndef _SYNC_H_ +#define _SYNC_H_ + +#include +#include + +#ifdef _SYNC_SERVER +#include +#else + +_XFUNCPROTOBEGIN +/* get rid of macros so we can define corresponding functions */ +#undef XSyncIntToValue +#undef XSyncIntsToValue +#undef XSyncValueGreaterThan +#undef XSyncValueLessThan +#undef XSyncValueGreaterOrEqual +#undef XSyncValueLessOrEqual +#undef XSyncValueEqual +#undef XSyncValueIsNegative +#undef XSyncValueIsZero +#undef XSyncValueIsPositive +#undef XSyncValueLow32 +#undef XSyncValueHigh32 +#undef XSyncValueAdd +#undef XSyncValueSubtract +#undef XSyncMaxValue +#undef XSyncMinValue + +extern void XSyncIntToValue( + XSyncValue* /*pv*/, + int /*i*/ +); + +extern void XSyncIntsToValue( + XSyncValue* /*pv*/, + unsigned int /*l*/, + int /*h*/ +); + +extern Bool XSyncValueGreaterThan( + XSyncValue /*a*/, + XSyncValue /*b*/ +); + +extern Bool XSyncValueLessThan( + XSyncValue /*a*/, + XSyncValue /*b*/ +); + +extern Bool XSyncValueGreaterOrEqual( + XSyncValue /*a*/, + XSyncValue /*b*/ +); + +extern Bool XSyncValueLessOrEqual( + XSyncValue /*a*/, + XSyncValue /*b*/ +); + +extern Bool XSyncValueEqual( + XSyncValue /*a*/, + XSyncValue /*b*/ +); + +extern Bool XSyncValueIsNegative( + XSyncValue /*v*/ +); + +extern Bool XSyncValueIsZero( + XSyncValue /*a*/ +); + +extern Bool XSyncValueIsPositive( + XSyncValue /*v*/ +); + +extern unsigned int XSyncValueLow32( + XSyncValue /*v*/ +); + +extern int XSyncValueHigh32( + XSyncValue /*v*/ +); + +extern void XSyncValueAdd( + XSyncValue* /*presult*/, + XSyncValue /*a*/, + XSyncValue /*b*/, + int* /*poverflow*/ +); + +extern void XSyncValueSubtract( + XSyncValue* /*presult*/, + XSyncValue /*a*/, + XSyncValue /*b*/, + int* /*poverflow*/ +); + +extern void XSyncMaxValue( + XSyncValue* /*pv*/ +); + +extern void XSyncMinValue( + XSyncValue* /*pv*/ +); + +_XFUNCPROTOEND + + +typedef struct _XSyncSystemCounter { + char *name; /* null-terminated name of system counter */ + XSyncCounter counter; /* counter id of this system counter */ + XSyncValue resolution; /* resolution of this system counter */ +} XSyncSystemCounter; + + +typedef struct { + XSyncCounter counter; /* counter to trigger on */ + XSyncValueType value_type; /* absolute/relative */ + XSyncValue wait_value; /* value to compare counter to */ + XSyncTestType test_type; /* pos/neg comparison/transtion */ +} XSyncTrigger; + +typedef struct { + XSyncTrigger trigger; /* trigger for await */ + XSyncValue event_threshold; /* send event if past threshold */ +} XSyncWaitCondition; + + +typedef struct { + XSyncTrigger trigger; + XSyncValue delta; + Bool events; + XSyncAlarmState state; +} XSyncAlarmAttributes; + +/* + * Events + */ + +typedef struct { + int type; /* event base + XSyncCounterNotify */ + unsigned long serial; /* # of last request processed by server */ + Bool send_event; /* true if this came from a SendEvent request */ + Display *display; /* Display the event was read from */ + XSyncCounter counter; /* counter involved in await */ + XSyncValue wait_value; /* value being waited for */ + XSyncValue counter_value; /* counter value when this event was sent */ + Time time; /* milliseconds */ + int count; /* how many more events to come */ + Bool destroyed; /* True if counter was destroyed */ +} XSyncCounterNotifyEvent; + +typedef struct { + int type; /* event base + XSyncCounterNotify */ + unsigned long serial; /* # of last request processed by server */ + Bool send_event; /* true if this came from a SendEvent request */ + Display *display; /* Display the event was read from */ + XSyncAlarm alarm; /* alarm that triggered */ + XSyncValue counter_value; /* value that triggered the alarm */ + XSyncValue alarm_value; /* test value of trigger in alarm */ + Time time; /* milliseconds */ + XSyncAlarmState state; /* new state of alarm */ +} XSyncAlarmNotifyEvent; + +/* + * Errors + */ + +typedef struct { + int type; + Display *display; /* Display the event was read from */ + XSyncAlarm alarm; /* resource id */ + unsigned long serial; /* serial number of failed request */ + unsigned char error_code; /* error base + XSyncBadAlarm */ + unsigned char request_code; /* Major op-code of failed request */ + unsigned char minor_code; /* Minor op-code of failed request */ +} XSyncAlarmError; + +typedef struct { + int type; + Display *display; /* Display the event was read from */ + XSyncCounter counter; /* resource id */ + unsigned long serial; /* serial number of failed request */ + unsigned char error_code; /* error base + XSyncBadCounter */ + unsigned char request_code; /* Major op-code of failed request */ + unsigned char minor_code; /* Minor op-code of failed request */ +} XSyncCounterError; + +/* + * Prototypes + */ + +_XFUNCPROTOBEGIN + +extern Status XSyncQueryExtension( + Display* /*dpy*/, + int* /*event_base_return*/, + int* /*error_base_return*/ +); + +extern Status XSyncInitialize( + Display* /*dpy*/, + int* /*major_version_return*/, + int* /*minor_version_return*/ +); + +extern XSyncSystemCounter *XSyncListSystemCounters( + Display* /*dpy*/, + int* /*n_counters_return*/ +); + +extern void XSyncFreeSystemCounterList( + XSyncSystemCounter* /*list*/ +); + +extern XSyncCounter XSyncCreateCounter( + Display* /*dpy*/, + XSyncValue /*initial_value*/ +); + +extern Status XSyncSetCounter( + Display* /*dpy*/, + XSyncCounter /*counter*/, + XSyncValue /*value*/ +); + +extern Status XSyncChangeCounter( + Display* /*dpy*/, + XSyncCounter /*counter*/, + XSyncValue /*value*/ +); + +extern Status XSyncDestroyCounter( + Display* /*dpy*/, + XSyncCounter /*counter*/ +); + +extern Status XSyncQueryCounter( + Display* /*dpy*/, + XSyncCounter /*counter*/, + XSyncValue* /*value_return*/ +); + +extern Status XSyncAwait( + Display* /*dpy*/, + XSyncWaitCondition* /*wait_list*/, + int /*n_conditions*/ +); + +extern XSyncAlarm XSyncCreateAlarm( + Display* /*dpy*/, + unsigned long /*values_mask*/, + XSyncAlarmAttributes* /*values*/ +); + +extern Status XSyncDestroyAlarm( + Display* /*dpy*/, + XSyncAlarm /*alarm*/ +); + +extern Status XSyncQueryAlarm( + Display* /*dpy*/, + XSyncAlarm /*alarm*/, + XSyncAlarmAttributes* /*values_return*/ +); + +extern Status XSyncChangeAlarm( + Display* /*dpy*/, + XSyncAlarm /*alarm*/, + unsigned long /*values_mask*/, + XSyncAlarmAttributes* /*values*/ +); + +extern Status XSyncSetPriority( + Display* /*dpy*/, + XID /*client_resource_id*/, + int /*priority*/ +); + +extern Status XSyncGetPriority( + Display* /*dpy*/, + XID /*client_resource_id*/, + int* /*return_priority*/ +); + +extern XSyncFence XSyncCreateFence( + Display* /*dpy*/, + Drawable /*d*/, + Bool /*initially_triggered*/ +); + +extern Bool XSyncTriggerFence( + Display* /*dpy*/, + XSyncFence /*fence*/ +); + +extern Bool XSyncResetFence( + Display* /*dpy*/, + XSyncFence /*fence*/ +); + +extern Bool XSyncDestroyFence( + Display* /*dpy*/, + XSyncFence /*fence*/ +); + +extern Bool XSyncQueryFence( + Display* /*dpy*/, + XSyncFence /*fence*/, + Bool* /*triggered*/ +); + +extern Bool XSyncAwaitFence( + Display* /*dpy*/, + const XSyncFence* /*fence_list*/, + int /*n_fences*/ +); +#include"sync_2w.h" +_XFUNCPROTOEND + +#endif /* _SYNC_SERVER */ + +#endif /* _SYNC_H_ */ diff --git a/src/xext/sync_2w.h b/src/xext/sync_2w.h new file mode 100644 index 0000000..a90992a --- /dev/null +++ b/src/xext/sync_2w.h @@ -0,0 +1,127 @@ +#ifndef _SYNC_2W_H_ +#define _SYNC_2W_H_ +#ifdef __cplusplus +extern "C" { +#endif +#include "x2w_general.h" + + +#define XSyncIntToValue(a,b) \ + RETURN_VOID("XSyncIntToValue") + +#define XSyncIntsToValue(a,b,c) \ + RETURN_VOID("XSyncIntsToValue") + +#define XSyncValueGreaterThan(a,b) \ + RETURN_INT("XSyncValueGreaterThan") + +#define XSyncValueLessThan(a,b) \ + RETURN_INT("XSyncValueLessThan") + +#define XSyncValueGreaterOrEqual(a,b) \ + RETURN_INT("XSyncValueGreaterOrEqual") + +#define XSyncValueLessOrEqual(a,b) \ + RETURN_INT("XSyncValueLessOrEqual") + +#define XSyncValueEqual(a,b) \ + RETURN_INT("XSyncValueEqual") + +#define XSyncValueIsNegative(a) \ + RETURN_INT("XSyncValueIsNegative") + +#define XSyncValueIsZero(a) \ + RETURN_INT("XSyncValueIsZero") + +#define XSyncValueIsPositive(a) \ + RETURN_INT("XSyncValueIsPositive") + +#define XSyncValueLow32(a) \ + RETURN_INT("XSyncValueLow32") + +#define XSyncValueHigh32(a) \ + RETURN_INT("XSyncValueHigh32") + +#define XSyncValueAdd(a,b,c,d) \ + RETURN_VOID("XSyncValueAdd") + +#define XSyncValueSubtract(a,b,c,d) \ + RETURN_VOID("XSyncValueSubtract") + +#define XSyncMaxValue(a) \ + RETURN_VOID("XSyncMaxValue") + +#define XSyncMinValue(a) \ + RETURN_VOID("XSyncMinValue") + +#define XSyncQueryExtension(a,b,c) \ + RETURN_INT("XSyncQueryExtension") + +#define XSyncInitialize(a,b,c) \ + RETURN_INT("XSyncInitialize") + +#define XSyncListSystemCounters(a,b) \ + RETURN_POINTER("XSyncListSystemCounters") + +#define XSyncFreeSystemCounterList(a) \ + RETURN_VOID("XSyncFreeSystemCounterList") + +#define XSyncCreateCounter(a,b) \ + RETURN_INT("XSyncCreateCounter") + +#define XSyncSetCounter(a,b,c) \ + RETURN_INT("XSyncSetCounter") + +#define XSyncChangeCounter(a,b,c) \ + RETURN_INT("XSyncChangeCounter") + +#define XSyncDestroyCounter(a,b) \ + RETURN_INT("XSyncDestroyCounter") + +#define XSyncQueryCounter(a,b,c) \ + RETURN_INT("XSyncQueryCounter") + +#define XSyncAwait(a,b,c) \ + RETURN_INT("XSyncAwait") + +#define XSyncCreateAlarm(a,b,c) \ + RETURN_INT("XSyncCreateAlarm") + +#define XSyncDestroyAlarm(a,b) \ + RETURN_INT("XSyncDestroyAlarm") + +#define XSyncQueryAlarm(a,b,c) \ + RETURN_INT("XSyncQueryAlarm") + +#define XSyncChangeAlarm(a,b,c,d) \ + RETURN_INT("XSyncChangeAlarm") + +#define XSyncSetPriority(a,b,c) \ + RETURN_INT("XSyncSetPriority") + +#define XSyncGetPriority(a,b,c) \ + RETURN_INT("XSyncGetPriority") + +#define XSyncCreateFence(a,b,c) \ + RETURN_INT("XSyncCreateFence") + +#define XSyncTriggerFence(a,b) \ + RETURN_INT("XSyncTriggerFence") + +#define XSyncResetFence(a,b) \ + RETURN_INT("XSyncResetFence") + +#define XSyncDestroyFence(a,b) \ + RETURN_INT("XSyncDestroyFence") + +#define XSyncQueryFence(a,b,c) \ + RETURN_INT("XSyncQueryFence") + +#define XSyncAwaitFence(a,b,c) \ + RETURN_INT("XSyncAwaitFence") + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /*__ECORE_X_2W_HEADER__*/ diff --git a/src/xext/xag_2w.h b/src/xext/xag_2w.h new file mode 100644 index 0000000..a739e3f --- /dev/null +++ b/src/xext/xag_2w.h @@ -0,0 +1,36 @@ +#ifndef _XAG_2W_H_ +#define _XAG_2W_H_ +#ifdef __cplusplus +extern "C" { +#endif +#include "x2w_general.h" +#define XagQueryVersion(a,b,c) \ + RETURN_INT("XagQueryVersion") + +#define XagCreateEmbeddedApplicationGroup(a,b,c,d,e,f) \ + RETURN_INT("XagCreateEmbeddedApplicationGroup") + +#define XagCreateNonembeddedApplicationGroup(a,b) \ + RETURN_INT("XagCreateNonembeddedApplicationGroup") + +#define XagDestroyApplicationGroup(a,b) \ + RETURN_INT("XagDestroyApplicationGroup") + +#define XagGetApplicationGroupAttributes(a,b,c) \ + RETURN_INT("XagGetApplicationGroupAttributes") + +#define XagQueryApplicationGroup(a,b,c) \ + RETURN_INT("XagQueryApplicationGroup") + +#define XagCreateAssociation(a,b,c) \ + RETURN_INT("XagCreateAssociation") + +#define XagDestroyAssociation(a,b) \ + RETURN_INT("XagDestroyAssociation") + + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /*__ECORE_X_2W_HEADER__*/ diff --git a/src/xext/xcup_2w.h b/src/xext/xcup_2w.h new file mode 100644 index 0000000..b191674 --- /dev/null +++ b/src/xext/xcup_2w.h @@ -0,0 +1,21 @@ +#ifndef _XCUP_2W_H_ +#define _XCUP_2W_H_ +#ifdef __cplusplus +extern "C" { +#endif +#include "x2w_general.h" + +#define XcupQueryVersion(a,b,c) \ + RETURN_INT("XcupQueryVersion") + +#define XcupGetReservedColormapEntries(a,b,c,d) \ + RETURN_INT("XcupGetReservedColormapEntries") + +#define XcupStoreColors(a,b,c,d) \ + RETURN_INT("XcupStoreColors") + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /*__ECORE_X_2W_HEADER__*/ diff --git a/src/xext/xdbe_2w.h b/src/xext/xdbe_2w.h new file mode 100644 index 0000000..842bde4 --- /dev/null +++ b/src/xext/xdbe_2w.h @@ -0,0 +1,38 @@ +#ifndef _XDBE_2W_H_ +#define _XDBE_2W_H_ +#ifdef __cplusplus +extern "C" { +#endif +#include "x2w_general.h" + +#define XdbeQueryExtension(a,b,c) \ + RETURN_INT("XdbeQueryExtension") + +#define XdbeAllocateBackBufferName(a,b,c) \ + RETURN_INT("XdbeAllocateBackBufferName") + +#define XdbeDeallocateBackBufferName(a,b) \ + RETURN_INT("XdbeDeallocateBackBufferName") + +#define XdbeSwapBuffers(a,b,c) \ + RETURN_INT("XdbeSwapBuffers") + +#define XdbeBeginIdiom(a) \ + RETURN_INT("XdbeBeginIdiom") + +#define XdbeEndIdiom(a) \ + RETURN_INT("XdbeEndIdiom") + +#define XdbeGetVisualInfo(a,b,c) \ + RETURN_POINTER("XdbeGetVisualInfo") + +#define XdbeFreeVisualInfo(a) \ + RETURN_VOID("XdbeFreeVisualInfo") + +#define XdbeGetBackBufferAttributes(a,b) \ + RETURN_POINTER("XdbeGetBackBufferAttributes") +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /*__ECORE_X_2W_HEADER__*/ diff --git a/src/xext/xevi_2w.h b/src/xext/xevi_2w.h new file mode 100644 index 0000000..790052f --- /dev/null +++ b/src/xext/xevi_2w.h @@ -0,0 +1,21 @@ +#ifndef _XEVI_2W_H_ +#define _XEVI_2W_H_ +#ifdef __cplusplus +extern "C" { +#endif +#include "x2w_general.h" + + +#define XeviQueryExtension(a) \ + RETURN_INT("XeviQueryExtension") + +#define XeviQueryVersion(a,b,c) \ + RETURN_INT("XeviQueryVersion") + +#define XeviGetVisualInfo(a,b,c,d,e) \ + RETURN_INT("XeviGetVisualInfo") +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /*__ECORE_X_2W_HEADER__*/ diff --git a/src/xext/xext_2w.h b/src/xext/xext_2w.h new file mode 100644 index 0000000..5fc8dad --- /dev/null +++ b/src/xext/xext_2w.h @@ -0,0 +1,18 @@ +#ifndef _XEXT_2W_H_ +#define _XEXT_2W_H_ +#ifdef __cplusplus +extern "C" { +#endif +#include "x2w_general.h" + +#define XSetExtensionErrorHandler(a) \ + RETURN_INT("XSetExtensionErrorHandler") + +#define XMissingExtension(a,b) \ + RETURN_INT("XMissingExtension") + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /*__ECORE_X_2W_HEADER__*/ diff --git a/src/xext/xge_2w.h b/src/xext/xge_2w.h new file mode 100644 index 0000000..f221eff --- /dev/null +++ b/src/xext/xge_2w.h @@ -0,0 +1,18 @@ +#ifndef _XGE_2W_H_ +#define _XGE_2W_H_ +#ifdef __cplusplus +extern "C" { +#endif +#include "x2w_general.h" + +#define XGEQueryExtension(a,b,c) \ + RETURN_INT("XGEQueryExtension") + +#define XGEQueryVersion(a,b,c) \ + RETURN_INT("XGEQueryVersion") + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /*__ECORE_X_2W_HEADER__*/ diff --git a/src/xext/xlbx_2w.h b/src/xext/xlbx_2w.h new file mode 100644 index 0000000..1e79552 --- /dev/null +++ b/src/xext/xlbx_2w.h @@ -0,0 +1,21 @@ +#ifndef _XLBX_2W_H_ +#define _XLBX_2W_H_ +#ifdef __cplusplus +extern "C" { +#endif +#include "x2w_general.h" + +#define XLbxQueryExtension(a,b,c,d) \ + RETURN_INT("XLbxQueryExtension") + +#define XLbxQueryVersion(a,b,c) \ + RETURN_INT("XLbxQueryVersion") + +#define XLbxGetEventBase(a) \ + RETURN_INT("XLbxGetEventBase") + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /*__ECORE_X_2W_HEADER__*/ diff --git a/src/xext/xshm_2w.h b/src/xext/xshm_2w.h new file mode 100644 index 0000000..9c12226 --- /dev/null +++ b/src/xext/xshm_2w.h @@ -0,0 +1,43 @@ +#ifndef _XSHM_2W_H_ +#define _XSHM_2W_H_ +#ifdef __cplusplus +extern "C" { +#endif +#include "x2w_general.h" + +#define XShmQueryExtension(a) \ + RETURN_INT("XShmQueryExtension") + +#define XShmGetEventBase(a) \ + RETURN_INT("XShmGetEventBase") + +#define XShmQueryVersion(a,b,c,d) \ + RETURN_INT("XShmQueryVersion") + +#define XShmPixmapFormat(a) \ + RETURN_INT("XShmPixmapFormat") + +#define XShmAttach(a,b) \ + RETURN_INT("XShmAttach") + +#define XShmDetach(a,b) \ + RETURN_INT("XShmDetach") + +#define XShmPutImage(a,b,c,d,e,f,g,h,i,j,k) \ + RETURN_INT("XShmPutImage") + +#define XShmGetImage(a,b,c,d,e,f) \ + RETURN_INT("XShmGetImage") + +#define XShmCreateImage(a,b,c,d,e,f,g,h) \ + RETURN_POINTER("XShmCreateImage") + +#define XShmCreatePixmap(a,b,c,d,e,f,g) \ + RETURN_INT("XShmCreatePixmap") + + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /*__ECORE_X_2W_HEADER__*/ diff --git a/src/xext/xtestext1.h b/src/xext/xtestext1.h new file mode 100644 index 0000000..25d54a8 --- /dev/null +++ b/src/xext/xtestext1.h @@ -0,0 +1,98 @@ +/* + * xtestext1.h + * + * X11 Input Synthesis Extension include file + */ + +/* + + +Copyright 1986, 1987, 1988, 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. + + +Copyright 1986, 1987, 1988 by Hewlett-Packard Corporation + +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 Hewlett-Packard not be used in +advertising or publicity pertaining to distribution of the +software without specific, written prior permission. + +Hewlett-Packard makes no representations about the +suitability of this software for any purpose. It is provided +"as is" without express or implied warranty. + +This software is not subject to any license of the American +Telephone and Telegraph Company or of the Regents of the +University of California. + +*/ + +#ifndef _XTESTEXT1_H +#define _XTESTEXT1_H +/* + * the typedefs for CARD8, CARD16, and CARD32 are defined in Xmd.h + */ + +#include +/* + * This is the definition for the input action host format event structure. + * This is the form that a client using this extension will see when + * it receives an input action event. + */ +typedef struct { + int type; /* always XTestInputActionType */ + Display *display; + Window window; + CARD8 actions[XTestACTIONS_SIZE]; +} XTestInputActionEvent; + +/* + * This is the definition for the xTestFakeAck host format event structure. + * This is the form that a client using this extension will see when + * it receives an XTestFakeAck event. + */ +typedef struct { + int type; /* always XTestFakeAckType */ + Display *display; + Window window; +} XTestFakeAckEvent; + +_XFUNCPROTOBEGIN + +int XTestFakeInput(register Display *dpy, char *action_list_addr, int action_list_size, int ack_flag); +int XTestGetInput(register Display *dpy, int action_handling); +int XTestQueryInputSize(register Display *dpy, unsigned long *size_return); +int XTestPressKey(Display *display, int device_id, unsigned long delay, unsigned int keycode, unsigned int key_action); +int XTestPressButton(Display * display, int device_id, unsigned long delay, unsigned int button_number, unsigned int button_action); +int XTestMovePointer(Display *display, int device_id, unsigned long delay[], int x[], int y[], unsigned int count); +int XTestFlush(Display *display); +int XTestStopInput(register Display *dpy); +int XTestReset(register Display *dpy); +#include"xtestext1_2w.h" +_XFUNCPROTOEND + +#endif /* _XTESTEXT1_H */ diff --git a/src/xext/xtestext1_2w.h b/src/xext/xtestext1_2w.h new file mode 100644 index 0000000..5e868b7 --- /dev/null +++ b/src/xext/xtestext1_2w.h @@ -0,0 +1,41 @@ +#ifndef _XSHM_2W_H_ +#define _XSHM_2W_H_ +#ifdef __cplusplus +extern "C" { +#endif +#include "x2w_general.h" + +#define XTestFakeInput(a,b,c,d) \ + RETURN_INT("XTestFakeInput") + +#define XTestGetInput(a,b) \ + RETURN_INT("XTestGetInput") + +#define XTestQueryInputSize(a,b) \ + RETURN_INT("XTestQueryInputSize") + +#define XTestPressKey(a,b,c,d,e) \ + RETURN_INT("XTestPressKey") + +#define XTestPressButton(a,b,c,d,e) \ + RETURN_INT("XTestPressButton") + +#define XTestMovePointer(a,b,c,d,e,f) \ + RETURN_INT("XTestMovePointer") + +#define XTestFlush(a) \ + RETURN_INT("XTestFlush") + +#define XTestStopInput(a) \ + RETURN_INT("XTestStopInput") + +#define XTestReset(a) \ + RETURN_INT("XTestReset") + + + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /*__ECORE_X_2W_HEADER__*/ diff --git a/xcomposite.pc b/xcomposite.pc new file mode 100644 index 0000000..f0c854a --- /dev/null +++ b/xcomposite.pc @@ -0,0 +1,12 @@ +prefix=/usr +exec_prefix=/usr +libdir=/usr/lib +includedir=/usr/include + +Name: Xcomposite +Description: X Composite Extension Library +Version: 0.4.3 +Requires: xproto compositeproto >= 0.4 +Requires.private: x11 xfixes +Cflags: -I${includedir} +Libs: -L${libdir} -lXcomposite diff --git a/xdamage.pc b/xdamage.pc new file mode 100644 index 0000000..9dd2c3d --- /dev/null +++ b/xdamage.pc @@ -0,0 +1,12 @@ +prefix=/usr +exec_prefix=/usr +libdir=/usr/lib +includedir=/usr/include + +Name: Xdamage +Description: X Damage Library +Version: 1.1.3 +Requires: xproto damageproto >= 1.1 xfixes +Requires.private: x11 xfixes +Cflags: -I${includedir} +Libs: -L${libdir} -lXdamage diff --git a/xext.pc b/xext.pc new file mode 100644 index 0000000..5b846b3 --- /dev/null +++ b/xext.pc @@ -0,0 +1,12 @@ +prefix=/usr +exec_prefix=/usr +libdir=/usr/lib +includedir=/usr/include + +Name: Xext +Description: Misc X Extension Library +Version: 1.3.1 +Requires: xextproto +Requires.private: x11 +Cflags: -I${includedir} +Libs: -L${libdir} -lXext -- 2.7.4