summaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Wrap Xext*CheckExtension() in do { ... } while(0)Alan Coopersmith2022-11-201-4/+6
| | | | | | | Makes macro expansion safer and eliminates -Wextra-semi-stmt warnings from clang every time it is called due to semicolon after bracket. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Xge.c, Xge.h: convert from ISO-8859-1 to UTF-8Alan Coopersmith2022-06-101-1/+1
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Fix spelling/wording issuesAlan Coopersmith2022-06-104-6/+6
| | | | | | | Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Require ANSI C89 pre-processor, drop pre-C89 token pasting supportAlan Coopersmith2013-06-241-6/+0
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Replace sprintf with snprintf when looking up extension error stringsAlan Coopersmith2013-06-221-1/+1
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* sync: fix copy/paste error in commentPeter Hutterer2012-04-231-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Add const attributes to fix gcc -Wwrite-strings warningsAlan Coopersmith2011-10-141-1/+1
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Strip trailing whitespaceAlan Coopersmith2011-09-167-25/+25
| | | | | | | Performed with: find * -type f | xargs perl -i -p -e 's{[ \t]+$}{}' git diff -w & git diff -b show no diffs from this change Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Correct XShm return values.Peter Hutterer2011-04-121-4/+4
| | | | | | | | | | | | | XShmAttach, XShmDetach, XShmPutImage do not return a Status but 0 or 1. Though the man section for XShmAttach says "if all goes well, you will get a non-zero status, back" this is counter to the usage of Status in Xlib itself where 0 means Success and no-zero specifies the specific error. XShmPixmapFormat does not return a Status but the pixmap format or 0 on failure. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Adam Jackson <ajax@redhat.com>
* Add missing prototypes. #14723Alistair Leslie-Hughes2011-04-111-0/+14
| | | | | | | | | | This patch is based off the work by Paulo César Pereira de Andrade Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=14723 Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Add XSyncAwaitFence()James Jones2010-12-031-0/+6
| | | | | | | | | Add the XSynceFence version of XSyncAwait(). Waits for fence objects to reach the triggered state. Signed-off-by: James Jones <jajones@nvidia.com> Reviewed-by: Aaron Plattner <aplattner@nvidia.com> Acked-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Add XSyncQueryFence()James Jones2010-12-031-0/+6
| | | | | | | | | Allows callers to query whether or not a given fence sync object is currently triggered. Signed-off-by: James Jones <jajones@nvidia.com> Reviewed-by: Aaron Plattner <aplattner@nvidia.com> Acked-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Initial Fence Sync Object supportJames Jones2010-12-031-0/+21
| | | | | | | | | | | | | | | Allows creating and managing binary state sync objects. Currently they aren't useful because there is not yet a way to wait for them or query their state. X fence objects are owned by a screen. As Aaron Plattner pointed out, screens are identified by a drawable in X protocol, so XSyncCreateFence() takes a drawable to identify which screen to create the fence on. Signed-off-by: James Jones <jajones@nvidia.com> Reviewed-by: Aaron Plattner <aplattner@nvidia.com> Acked-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Purge cvs tags.Jesse Adkins2010-10-0615-32/+0
| | | | | Signed-off-by: Jesse Adkins <jesserayadkins@gmail.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Remove headers for functions found in liblbxutilAlan Coopersmith2010-06-113-247/+0
| | | | | | | | As reported in https://bugs.freedesktop.org/show_bug.cgi?id=25880 they were already added to liblbxutil, but I missed removing them from here, where they're not used. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Make library headers compatible with old server buildsKeith Packard2009-11-033-0/+10
| | | | | | | | | | Old servers (1.6 and before) included the extension library headers instead of using separate server header files. This patch makes the library headers compatibile with the server by hiding the library definitions from the server build. Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
* Rename mitmisc.h to mitmiscconst.h to avoid a collision with MITMisc.h on ↵Jon TURNEY2009-07-221-1/+1
| | | | | | | | case-insensitive filesystems Requires xextproto 7.0.99.2 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Remove XTest header, belongs to libXtst.Peter Hutterer2009-07-201-146/+0
| | | | | | | | | | 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>
* Prevent shape.h being included in the serverJulien Cristau2009-07-171-0/+3
| | | | | | | | 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>
* Move libXext library headers from xextproto to libXext.Peter Hutterer2009-07-1520-0/+2219
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>