summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2023-12-13gitlab CI: Use Xvfb to allow all tests to runHEADmasterAlan Coopersmith1-3/+8
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-12-08Fix testsUli Schlachter1-1/+2
The tests also use some non-existing events to check that these are handled correctly. Then came XI 2.4 and introduced several new events, which broke the test. Fix this by updating the test accordingly. This means tests will now fail when using an older version of xcb-proto. If you are affected by this, either do not run tests, or build against a newer version of xcb-proto. Signed-off-by: Uli Schlachter <psychon@znc.in>
2022-10-18Add README.mdAlan Coopersmith2-1/+24
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-18xcb-util-errors 1.0.1xcb-util-errors-1.0.1Alan Coopersmith1-1/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-24autogen: add default patch prefixMihail Konev1-0/+3
Signed-off-by: Mihail Konev <k.mvc@ya.ru> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-24autogen.sh: use quoted string variablesEmil Velikov1-4/+4
Place quotes around the $srcdir, $ORIGDIR and $0 variables to prevent fall-outs, when they contain space. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-24autogen.sh: use exec instead of waiting for configure to finishPeter Hutterer1-1/+1
Syncs the invocation of configure with the one from the server. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-24autogen.sh: Honor NOCONFIGURE=1Alan Coopersmith1-1/+3
See http://people.gnome.org/~walters/docs/build-api.txt Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-24configure: Drop AM_MAINTAINER_MODEAlan Coopersmith2-2/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-20gitlab CI: add a basic build testAlan Coopersmith1-0/+98
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-20Update m4 to xorg/util/xcb-util-m4@c617eee22ae5c285e79e81Alan Coopersmith1-0/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-06-18Use AC_CONFIG_FILES to replace the deprecated AC_OUTPUT with parametersAlan Coopersmith1-1/+2
configure.ac:33: warning: AC_OUTPUT should be used without arguments. configure.ac:33: You should run autoupdate. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-06-18Build xz tarballs instead of bzip2Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2015-05-06Do not distribute extensions.c and fix out-of-tree buildsUli Schlachter2-3/+6
It all started with src/extensions.c being distributed. Thanks to this, tarballs shipped with this generated file and actually building this file was skipped. Fix this by using the nodist_ variant of the SOURCES variable. Due to this oversight (sorry!), the out-of-tree build wasn't actually tested. The rule that generates src/extensions.c was missing $(srcdir) in front of the path to extensions.py. This rule is now fixed and, as suggested by Daphne Pfister, also changed to explicitly call the python interpreter. Configure is changed to look for it. Finally, extensions.c couldn't include errors.h. This worked before, because the C compiler automatically looks for headers in the same directory as the source file. However, for out-of-tree builds, the source directory and build directory are different. Paper over this problem by explicitly making it look in the right directory. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=90328 Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-04-26set version to 1.01.0Uli Schlachter2-1/+5
Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-04-26Add COPYING fileUli Schlachter1-0/+23
Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-04-06tests: Add some XFixes-based testsUli Schlachter1-0/+27
Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-04-06Add xcb-proto version to xcb-errors.pcUli Schlachter2-0/+5
Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-04-06Also add a test for maximum major codeUli Schlachter1-0/+1
Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-04-06Re-add a missing length checkUli Schlachter2-2/+6
This check was accidentally removed in commit 4ed12c46dec9a3055e009c5ecd6c. Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-04-06Ignore "event sent" flag in event codesUli Schlachter2-3/+17
The highest bit of an event code shows if the event was generated by the X11 server or via the SendEvent request. Ignore this bit in all places that handle event codes. Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-04-05Update doxygen commentsUli Schlachter2-5/+10
Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-04-05Rename *_get_name_for_event()Uli Schlachter3-8/+8
Now that there are three different functions for querying information about events, there shouldn't be one which monopolizes on the "_for_event" name. Instead, the preferred API is the "_for_xcb_event" function. Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-04-05Handle NULL as context argumentUli Schlachter2-10/+61
Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-04-05Use unchecked QueryExtension requestsUli Schlachter1-1/+1
If this ever causes an error, the underlying event loop at least gets the chance to print something useful. Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-04-05Update KNOWN_ISSUES (and turn it more into a TODO)Uli Schlachter1-8/+4
Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-04-05Add a function for figuring out information about an event structUli Schlachter3-15/+134
Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-04-05tests: Use attribute((format(printf,x,y))) if possibleUli Schlachter1-1/+11
Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-04-05API docs: Clarify when NULL is returnedUli Schlachter1-2/+2
Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-04-05Fix copy&paste errorUli Schlachter1-1/+1
Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-04-04Test: Factor out string-comparision helper functionUli Schlachter1-52/+49
This function compares strings, handles NULL (almost) correctly, prints an error if a mismatch occurs and returns a suitable int result. Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-04-04Test suite: Add tests for XGE event handlingUli Schlachter1-1/+77
Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-04-04Add a function for handling XGE eventsUli Schlachter2-0/+28
Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-04-04Code generator: Add support for XGE eventsUli Schlachter2-6/+22
This also pretends that XKB has XGE events since that extension has its own event multiplexing. Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-04-04Save static info as a pointer instead of copying itUli Schlachter3-11/+11
Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-04-04Move extension name into static infoUli Schlachter3-8/+8
Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-04-04Document failure scenarios for *_new()Uli Schlachter1-1/+2
Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-04-04Also return the extension name for events and errorsUli Schlachter3-22/+66
Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-04-04Correctly handle calloc() failureUli Schlachter1-4/+4
If an extension that we support is not present in the X11 server, this is not a fatal error. We can just skip this extension. However, the code implementing this accidentally also made calloc()-failures non-fatal which is wrong. Spotted by Ran Benita. Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-04-04Test: Skip tests if no X11 server is availableUli Schlachter1-2/+4
This was suggested by Ran Benita, thanks! Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-04-04Don't check codes to be in range, but find "best match"Uli Schlachter1-16/+40
If some new events are added to an extension, older implementations register a smaller portion of the event number space than this library possible knows. So we cannot just look for some extension that has some code "in range", but we need to find the best one (with the largest base). Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-04-04Fix test suite compilationUli Schlachter1-2/+2
This didn't find xcb_errors.h for out-of-tree builds. Fix this by using $(srcdir) correctly. Also, the test suite makes use of libxcb and thus should link against it. Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-03-25Add a KNOWN_ISSUES fileUli Schlachter1-0/+8
Signed-off-by: Uli Schlachter <uli.schlachter@informatik.uni-oldenburg.de>
2015-03-25test: Also test minor requests for some core requestsUli Schlachter1-0/+3
Signed-off-by: Uli Schlachter <uli.schlachter@informatik.uni-oldenburg.de>
2015-03-25Code generator: Print a warning for xge eventsUli Schlachter1-0/+2
These are currently not handled correctly. Signed-off-by: Uli Schlachter <uli.schlachter@informatik.uni-oldenburg.de>
2015-03-25Skip XKB events in the code generatorUli Schlachter1-0/+3
Signed-off-by: Uli Schlachter <uli.schlachter@informatik.uni-oldenburg.de>
2015-03-25tests: Add tests for RandRUli Schlachter1-1/+42
Signed-off-by: Uli Schlachter <uli.schlachter@informatik.uni-oldenburg.de>
2015-03-25Add an autotools-based build systemUli Schlachter10-30/+195
This is based on util-cursor's build system and libxcb/configure.ac for finding xcb-proto's XML files. Signed-off-by: Uli Schlachter <uli.schlachter@informatik.uni-oldenburg.de>
2015-03-24Correctly ignore extensions without events / errorsUli Schlachter1-2/+4
Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-03-24Fix get_strings_entry() to actually workUli Schlachter1-1/+1
Signed-off-by: Uli Schlachter <psychon@znc.in>