summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-08-16small fix to get rid of some compiler warningsHEADgsoc2010Christoph Reimann3-2/+91
also added very basic documentation for xkb
2010-08-16small fix in the xkb pkg fileChristoph Reimann1-1/+1
2010-08-16added accessors for special casesChristoph Reimann1-545/+653
major bugfixes include: rewrite of prefix related functions, merge of serialize/unserialize/... generators, extended field name resolution
2010-08-08special case 'intermixed variable and fixed size fields': fixed reply side, ↵Christoph Reimann1-84/+166
needs testing
2010-08-05renamed most _unserialize() functions to _sizeof() and fixed _unserialize() ↵Christoph Reimann1-80/+240
for the special case of intermixed variable and fixed size fields
2010-08-02attempt to fix special case: variable fields followed by fixed size fieldsChristoph Reimann1-100/+141
2010-08-01bug fixes for all kinds of 'special cases'Christoph Reimann1-154/+299
2010-07-22partial rewrite of serialize helper functions completed;chr_testChristoph Reimann1-317/+211
_serialize() & _unserialize() have been tested for switch derived from valueparam
2010-07-20preliminary handling of further special cases in unserializeChristoph Reimann1-162/+284
first attempts to unify serialize and unserialize
2010-07-15added generating code for _serialize() in case of variable sized structs ↵Christoph Reimann1-103/+166
(largely untested)
2010-07-13xkb: added pkg config fileChristoph Reimann1-0/+11
2010-07-13new and still preliminary functions for switch; feautures includeChristoph Reimann1-26/+668
- API compatibility with valueparam - request _aux() auxiliary functions - _serialize() and _unserialize() auxiliary functions - new data type that allows mixing of fixed and variable size members
2010-07-13xkb: updated configure.ac/Makefile.amChristoph Reimann3-0/+13
2010-07-13added xcb_sumof() with restriction to uint8_tChristoph Reimann2-0/+11
2010-05-14xcb_open: Improve protocol/host parsingmasterJeremy Huddleston1-12/+18
Support scenarios where host is not set and protocol is. eg: DISPLAY=tcp/:0 as well as the "inet" and "inet6" alias for "tcp" for compatability with Xlib Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Jamey Sharp <jamey@minilop.net>
2010-05-14Add ~ operator support in code generatorMarcin Kościelnicki1-1/+3
Reviewed-by: Julien Cristau <jcristau@debian.org> Signed-off-by: Julien Danjou <julien@danjou.info>
2010-04-30Fix GCC error on undeclared variable when not using abstract socketArnaud Fontaine1-2/+0
This is a regression found by tinderbox in previous commit: xcb_util.c: In function '_xcb_open': xcb_util.c:213: error: 'fd' undeclared (first use in this function)
2010-04-30Get rid of PATH_MAX and MAXPATHLENArnaud Fontaine2-16/+83
There could be no upper limit on the length of a path according to POSIX, therefore these macros may not be defined at all on some systems (such as GNU Hurd). Signed-off-by: Arnaud Fontaine <arnau@debian.org> Reviewed-by: Peter Harris <pharris@opentext.com>
2010-04-23Use limits.h instead of syslimits.hJeremy Huddleston1-1/+1
Regression found by tinderbox in 89b3485dadef47a30264a5bf150b96522183376b xcb_util.c:31:27: error: sys/syslimits.h: No such file or directory xcb_util.c: In function '_xcb_open': xcb_util.c:148: error: 'PATH_MAX' undeclared (first use in this function) Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2010-04-23Reworked launchd support to work better with _xcb_parse_displayJeremy Huddleston1-10/+26
Fixes: http://xquartz.macosforge.org/trac/ticket/390 Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2010-04-17Always wake up readers after writing.Jamey Sharp3-12/+15
Since writers must make sure they read as well, threads may have gone to sleep waiting for the opportunity to read. The writer must wake up one of those readers or the application can hang. Signed-off-by: Jamey Sharp <jamey@minilop.net> Reviewed-by: Josh Triplett <josh@freedesktop.org>
2010-04-17Fix strict-aliasing warning when getting generic event length.Jamey Sharp1-3/+1
xcb_ge_event_t has its length field in the same place that xcb_generic_reply_t does, so there's no need to cast the generic reply. Signed-off-by: Jamey Sharp <jamey@minilop.net> Cc: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Julien Danjou <julien@danjou.info>
2010-04-17Delete a useless level of indirection from _xcb_out_send's parameters.Jamey Sharp3-13/+9
_xcb_out_send needs _xcb_conn_wait to store back its progress so it can be reinvoked to pick up where it left off---but then _xcb_out_send guarantees that it leaves either an empty output vector or a shut-down connection, so *its* callers never care how much progress was made. Signed-off-by: Jamey Sharp <jamey@minilop.net> Reviewed-by: Josh Triplett <josh@freedesktop.org>
2010-04-09Release libxcb 1.61.6Julien Danjou2-1/+9
2010-04-08Fail if fd is too big and poll() is not availableRémi Denis-Courmont1-0/+8
Depending on the process file limit, a file descriptor can be larger than the capacity of fd_set. There is no portable way to create a large enough fd_set at run-time. So we just fail if the file descriptor number is too high and poll() is not available. Reviewed-by: Jamey Sharp <jamey@minilop.net> Signed-off-by: Julien Danjou <julien@danjou.info>
2010-03-13Fix authentication on hpux and HurdSamuel Thibault1-2/+2
libxcb's 010e5661 (Fix XDM-AUTHORIZATION-1 (bug #14202)) mistakenly inverted a few lines of code, making local socket authentication fail on hpux and Hurd: when getpeername fails, sockname needs to be initialized by getsockname before its address family can be checked. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Signed-off-by: Julien Danjou <julien@danjou.info>
2010-02-17Open the X11 socket with close-on-exec flagRémi Denis-Courmont1-4/+21
This saves the X11 connection from leaking into children processes. On Linux, this is fully thread-safe using SOCK_CLOEXEC. On other systems, there is a small race condition. Signed-off-by: Julien Danjou <julien@danjou.info>
2010-02-11Support xcb_discard_replyPeter Harris2-0/+126
This function is useful for dynamic language garbage collectors. Frequently a GC cycle may run before you want to block wainting for a reply. This function is also marginally useful for libxcb apps that issue speculative requests (eg. xlsclients). Reviewed-by: Jamey Sharp <jamey@minilop.net> Tested-by: Eamon Walsh <efw@eamonwalsh.com> Signed-off-by: Peter Harris <pharris@opentext.com>
2010-01-07xcb_connect_to_fd: fix descriptor leak on memory error pathRémi Denis-Courmont1-1/+3
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-12-11configure.ac: Fix a typo on the last commit.Jeremy Huddleston1-1/+1
Signed-off-by: Jeremy Huddleston <jeremyhu@freedesktop.org>
2009-12-11darwin: xnu doesn't support poll on ttys on the master side.Jeremy Huddleston1-3/+2
<rdar://problem/7360546> Signed-off-by: Jeremy Huddleston <jeremyhu@freedesktop.org>
2009-12-08Tutorial code fixJim Ingram1-2/+2
Accessed elements of names[] after freeing them in the first example. Signed-off-by: Julien Danjou <julien@danjou.info>
2009-12-05DRI2 extension requires xcb-proto 1.6 or newerRémi Cardona1-1/+1
Signed-off-by: Rémi Cardona <remi@gentoo.org> Signed-off-by: Julien Danjou <julien@danjou.info>
2009-12-03build: simplify extension buildingJulien Danjou1-67/+5
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-12-03Release libxcb 1.51.5Julien Danjou2-1/+8
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-12-02setsockopt(SO_KEEPALIVE) on TCP display connections.Adam Jackson1-0/+1
This matches xtrans behaviour in SocketINETConnect, and makes it so apps don't hang forever if their display dies. Signed-off-by: Adam Jackson <ajax@redhat.com>
2009-10-19Add DRI2 support. (v2)Eric Anholt5-0/+27
v2: Build fix from jcristau.
2009-10-15Fix typo in the tutorial.Eric Anholt1-1/+1
2009-09-18Don't build docs if 'dot' is not found Signed-off-by: Paulo R. Zanoni ↵Paulo R. Zanoni1-0/+5
<pzanoni@mandriva.com>
2009-08-31Fix check dependencyJulien Cristau1-1/+1
Bugzilla #21992 make -j check fails because the check-local rule gets executed before the tests actually ran, so CheckLog*.xml doesn't exist. Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-31Cygwin build fix: Add -no-undefined to libtool flagsYaakov Selkowitz1-23/+23
-no-undefined is needed to tell libtool a shared library can be built on platforms which require all references to be statisfied at link time. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Signed-off-by: Julien Danjou <julien@danjou.info>
2009-07-15Release libxcb 1.41.4Arnaud Fontaine2-1/+7
2009-07-15Add majorCode, minorCode and resourceID fields to X generic errorArnaud Fontaine1-1/+5
2009-07-06Fix precedence bug: wrong length for big-requests preceded by sync.Jamey Sharp1-1/+1
Also replace excessively clever use of bitwise OR with equivalent addition. Reported-by: Geoffrey Li <geoffrey@seitopos.com> Signed-off-by: Jamey Sharp <jamey@minilop.net> Signed-off-by: Josh Triplett <josh@joshtriplett.org>
2009-05-29Fix libxcb-randr version infoJulien Cristau1-1/+1
The SONAME shouldn't have been bumped in 1.3, only new symbols were added. Signed-off-by: Julien Danjou <julien@danjou.info>
2009-05-29Release libxcb 1.31.3Julien Danjou2-1/+10
2009-05-26Disable Nagle on TCP socketelupus1-0/+4
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-05-25Store xcbproto version libxcb was compiled withBob Ham2-0/+5
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-05-09depends on recent xcb-proto and bump version of randrJulien Danjou2-2/+2
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-21Fix XDM-AUTHORIZATION-1 (bug #14202)Bart Massey1-10/+28
With this patch, we know use correctly the socket address or peer address for authentication purpose. Signed-off-by: Julien Danjou <julien@danjou.info>