meego-w40:libxcb.git
6 years agoUpdated changelog (version 1.7-1-meego1081) meego/1.7-1-meego1081
Erkki Seppälä [Tue, 22 Feb 2011 13:01:33 +0000 (15:01 +0200)]
Updated changelog (version 1.7-1-meego1081)

6 years agoUpdated changelog (version 1.7-1-meego1071) meego/1.7-1-meego1071
Erkki Seppälä [Thu, 17 Feb 2011 10:40:52 +0000 (12:40 +0200)]
Updated changelog (version 1.7-1-meego1071)

6 years agoNOKIA: Updated changelog version to 1.7-1-meego1011. meego/1.7-1-meego1011
Rami Ylimäki [Mon, 3 Jan 2011 14:45:37 +0000 (16:45 +0200)]
NOKIA: Updated changelog version to 1.7-1-meego1011.

Signed-off-by: Rami Ylimäki <rami.ylimaki@vincit.fi>
6 years agoNOKIA: Prevent dpkg-gensymbols from failing.
Rami Ylimäki [Mon, 3 Jan 2011 16:13:25 +0000 (18:13 +0200)]
NOKIA: Prevent dpkg-gensymbols from failing.

* dpkg-gensymbols: warning: some symbols disappeared in the symbols
  file: see diff output below
* dpkg-gensymbols: warning: debian/libxcb-xprint0/DEBIAN/symbols
  doesn't match completely debian/libxcb-xprint0.symbols
* dh_makeshlibs: dpkg-gensymbols -plibxcb-xprint0
  -Idebian/libxcb-xprint0.symbols -Pdebian/libxcb-xprint0 -c1 returned
  exit code 1

Nobody should be using the symbols that disappeared so it's not a
problem if the symbols don't exist anymore.

Signed-off-by: Rami Ylimäki <rami.ylimaki@vincit.fi>
6 years agoNOKIA: Run configure with --without-xdmcp to ensure there is no Xdmcp dependency
Erkki Seppälä [Thu, 16 Dec 2010 10:12:42 +0000 (12:12 +0200)]
NOKIA: Run configure with --without-xdmcp to ensure there is no Xdmcp dependency

Reviewed-By: Rami Ylimäki <rami.ylimaki@vincit.fi>
6 years agoNOKIA: Added support for configure --without-xdmcp
Erkki Seppälä [Thu, 16 Dec 2010 10:11:57 +0000 (12:11 +0200)]
NOKIA: Added support for configure --without-xdmcp

Reviewed-By: Rami Ylimäki <rami.ylimaki@vincit.fi>
6 years agoMerge commit 'fdo/master' into debian/unstable
Rami Ylimäki [Mon, 3 Jan 2011 14:26:41 +0000 (16:26 +0200)]
Merge commit 'fdo/master' into debian/unstable

6 years agoMerge branch 'master' of git://anongit.freedesktop.org/~peterh/libxcb
Peter Harris [Thu, 23 Dec 2010 18:04:40 +0000 (13:04 -0500)]
Merge branch 'master' of git://anongit.freedesktop.org/~peterh/libxcb

7 years agoDon't validate FD_SETSIZE on Win32
Jeetu Golani [Sun, 12 Dec 2010 21:48:41 +0000 (16:48 -0500)]
Don't validate FD_SETSIZE on Win32

Windows' file handles have never been small or consecutive, so Windows'
select has always been implemented the same way as everyone else's poll.

On Windows, FD_SETSIZE is the size of the poll array, not the maximum
SOCKET number.

Signed-off-by: Peter Harris <git@peter.is-a-geek.org>
7 years agoxcb_take_socket: Document sequence wrap requirements
Uli Schlachter [Wed, 17 Nov 2010 19:26:11 +0000 (20:26 +0100)]
xcb_take_socket: Document sequence wrap requirements

If lots of requests are send without one causing a reply, xcb can get confused
about the current sequence number of a reply. Document the requirements of an
external socket owner to avoid this problem.

The return_socket callback for xcb_take_socket() originally was supposed to
return the last sequence number used, but the version committed to libxcb never
actually had this signature. This fixes the function's documentation not to
mention this non-existent return value.

Signed-off-by: Uli Schlachter <psychon@znc.in>
Signed-off-by: Julien Danjou <julien@danjou.info>
7 years agoxcb_auth: Fix memory leak in _xcb_get_auth_info.
Nick Bowler [Thu, 11 Nov 2010 01:49:41 +0000 (20:49 -0500)]
xcb_auth: Fix memory leak in _xcb_get_auth_info.

If the initial get_peer_sock_name(getpeername ...) succeeds, the
pointer to allocated memory is overwritten by the later call to
get_peer_sock_name(getsockname ...).  Fix that up by freeing
the allocated memory before overwriting the pointer.

Signed-off-by: Nick Bowler <nbowler@draconx.ca>
Signed-off-by: Julien Danjou <julien@danjou.info>
7 years agoNOKIA: Updated changelog version to 1.7-1-meego394. debian/unstable meego/1.7-1-meego394
Rami Ylimäki [Fri, 19 Nov 2010 14:42:36 +0000 (16:42 +0200)]
NOKIA: Updated changelog version to 1.7-1-meego394.

Signed-off-by: Rami Ylimäki <rami.ylimaki@vincit.fi>
7 years agoNOKIA: Removed build-time dependency on libxdmcp-dev.
Erkki Seppälä [Wed, 17 Nov 2010 14:49:36 +0000 (16:49 +0200)]
NOKIA: Removed build-time dependency on libxdmcp-dev.

Removed build-time dependency on libxdmcp-dev from libxcb resulting in
runtime dependency on libxdmcp6 being removed. The dependency was
introduced in version 0.9-3.

The dependency is still present if the package is compiled in an
environment that has libxdmcp-dev installed.

7 years agoNOKIA: Updated changelog version to 1.7-1-meego393. meego/1.7-1-meego393
Rami Ylimäki [Mon, 15 Nov 2010 09:25:34 +0000 (11:25 +0200)]
NOKIA: Updated changelog version to 1.7-1-meego393.

Signed-off-by: Rami Ylimäki <rami.ylimaki@vincit.fi>
7 years agoNOKIA: Introduce an optimized variant of xcb_poll_for_event.
Rami Ylimäki [Wed, 3 Nov 2010 11:19:35 +0000 (13:19 +0200)]
NOKIA: Introduce an optimized variant of xcb_poll_for_event.

Signed-off-by: Rami Ylimäki <rami.ylimaki@vincit.fi>
7 years agoAdd debian/api file for API management meego/1.7-1-meego392
Tapani Pälli [Wed, 6 Oct 2010 05:56:42 +0000 (08:56 +0300)]
Add debian/api file for API management

7 years agodebian: Nokia debianization meego/1.7-1-meego391
Oliver McFadden [Fri, 1 Oct 2010 11:52:00 +0000 (14:52 +0300)]
debian: Nokia debianization

Signed-off-by: Oliver McFadden <oliver.mcfadden@nokia.com>
7 years agoMerge remote branch 'fdo/master' into debian/unstable
Oliver McFadden [Fri, 1 Oct 2010 11:51:59 +0000 (14:51 +0300)]
Merge remote branch 'fdo/master' into debian/unstable

7 years agoFix _unserialize of reply headers
Peter Harris [Thu, 23 Sep 2010 03:15:38 +0000 (23:15 -0400)]
Fix _unserialize of reply headers

This cleans up a number of warnings, and passes the sequence number
through correctly.

Signed-off-by: Peter Harris <pharris@opentext.com>
7 years agoClean up a couple of warnings in xprint
Peter Harris [Thu, 23 Sep 2010 02:32:34 +0000 (22:32 -0400)]
Clean up a couple of warnings in xprint

Signed-off-by: Peter Harris <pharris@opentext.com>
7 years agoMake *_unserialize safe to use on buffers in-place
Peter Harris [Thu, 23 Sep 2010 01:16:51 +0000 (21:16 -0400)]
Make *_unserialize safe to use on buffers in-place

By calling memmove instead of memcpy, and walking the buffer backward
from the end, *_unserialize is safe to use in-place.

Signed-off-by: Peter Harris <pharris@opentext.com>
7 years agoFix memory leak in _sizeof implemented with _unserialize
Peter Harris [Fri, 10 Sep 2010 19:51:56 +0000 (15:51 -0400)]
Fix memory leak in _sizeof implemented with _unserialize

Signed-off-by: Peter Harris <pharris@opentext.com>
7 years agoDon't emit out-of-module sizeof definitions
Peter Harris [Wed, 8 Sep 2010 19:57:00 +0000 (15:57 -0400)]
Don't emit out-of-module sizeof definitions

Signed-off-by: Peter Harris <pharris@opentext.com>
7 years agoAllow disconnecting connections that are in error state.
Josh Triplett [Sun, 19 Sep 2010 18:38:06 +0000 (20:38 +0200)]
Allow disconnecting connections that are in error state.

In support of this, consolidate the two static error_connection
definitions into one so we don't try to free the static out-of-memory
error_connection.

Commit by Josh Triplett and Jamey Sharp.

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Jamey Sharp <jamey@minilop.net>
7 years agoAdd xkb.* to gitignore
Peter Harris [Fri, 10 Sep 2010 19:53:13 +0000 (15:53 -0400)]
Add xkb.* to gitignore

Signed-off-by: Peter Harris <pharris@opentext.com>
7 years agoMerge branch 'gsoc2010' of git://anongit.freedesktop.org/~chr/libxcb
Peter Harris [Wed, 8 Sep 2010 18:41:52 +0000 (14:41 -0400)]
Merge branch 'gsoc2010' of git://anongit.freedesktop.org/~chr/libxcb

7 years ago_xcb_conn_wait: Shut down the connection on unexpected poll() events.
Jamey Sharp [Sat, 4 Sep 2010 17:17:21 +0000 (10:17 -0700)]
_xcb_conn_wait: Shut down the connection on unexpected poll() events.

If a client calls close(2) on the connection's file descriptor and then
flushes writes, libxcb causes a hang in the client.

Any flush eventually calls _xcb_out_send() with has the following loop:
   while(ret && *count)
       ret = _xcb_conn_wait(c, &c->out.cond, vector, count);

_xcb_conn_wait(), if built with USE_POLL, gets the POLLNVAL error. It only
checks for POLLIN and POLLOUT though, ignoring the error. Return value is 1,
count is unmodified, leaving us with an endless loop and a client hang.

XTS testcase Xlib3/XConnectionNumber triggers this bug. It creates a display
connection, closes its file descriptor, tries to send a no-op, and then expects
an error.
http://cgit.freedesktop.org/xorg/test/xts/tree/xts5/Xlib3/XConnectionNumber.m

If poll returned POLLHUP or POLLERR, we might see the same result.

If poll returns any event we didn't ask for, this patch causes
_xcb_conn_shutdown() to be invoked and an error returned. This matches the
behaviour if select(2) is used instead of poll(2): select(2) returns -1 and
EBADF for an already closed file descriptor.

I believe this fix both is safe and will handle any similar error. POSIX says
that the only bits poll is permitted to set in revents are those bits that were
set in events, plus POLLHUP, POLLERR, and POLLNVAL. So if we see any flags we
didn't ask for then something has gone wrong.

Patch inspired by earlier proposals from Peter Hutterer and Aaron
Plattner--thanks!

Reported-by: Peter Hutterer <peter.hutterer@who-t.net>
Reported-by: Aaron Plattner <aplattner@nvidia.com>
Signed-off-by: Jamey Sharp <jamey@minilop.net>
Reviewed-by: Aaron Plattner <aplattner@nvidia.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Tested-by: Aaron Plattner <aplattner@nvidia.com>
Cc: Peter Hutterer <peter.hutterer@who-t.net>
Cc: Dan Nicholson <dbn.lists@gmail.com>
Signed-off-by: Peter Harris <pharris@opentext.com>
7 years agoMerge branch 'master' of git://github.com/topcat/xcb-win32
Peter Harris [Tue, 31 Aug 2010 22:33:36 +0000 (18:33 -0400)]
Merge branch 'master' of git://github.com/topcat/xcb-win32

Conflicts:
src/xcb_conn.c
src/xcb_util.c

Signed-off-by: Peter Harris <pharris@opentext.com>
7 years agoxcb_disconnect: call shutdown() to force a disconnect
Aaron Plattner [Tue, 17 Aug 2010 15:04:41 +0000 (08:04 -0700)]
xcb_disconnect: call shutdown() to force a disconnect

Fixes the X Test Suite's XCloseDisplay-6 test, which has this (admittedly
ridiculous) behavior:

 1. Create a window w.
 2. Open two display connections, dpy1, and dpy2.
 3. Grab the server using dpy1.
 4. Fork.
 5 (child). XSetProperty on w using dpy2.
 5 (parent). Verify that no event was recieved on dpy1.
 6 (parent). XCloseDisplay(dpy1).
 6 (child). Verify that an event was received on dpy2.

It was failing because at step 6 (child), the server had not actually ungrabbed
yet because the file descriptor for dpy1 was still open in the child process.

Shutting down the socket during XCloseDisplay matches the behavior of non-XCB
Xlib, which calls shutdown() from _X11TransSocketDisconnect.

Thanks to Julien Cristau for noticing this.

Signed-off-by: Aaron Plattner <aplattner at nvidia.com>
Reviewed-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Peter Harris <pharris@opentext.com>
7 years agoxcb_request_check: Sync even if an event was read for this sequence.
Jamey Sharp [Tue, 24 Aug 2010 16:17:38 +0000 (09:17 -0700)]
xcb_request_check: Sync even if an event was read for this sequence.

This fixes the test case I have so far for Havoc's report that
xcb_request_check hangs.

Rationale: Since we have a void cookie, request_expected can't have been
set equal to this sequence number when the request was sent; it can only
have become equal due to the arrival of an event or error. If it became
equal due to an event then we still need to sync. If it became equal due
to an error, then request_completed will have been updated, which means
we correctly won't sync.

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=29599

However, Havoc reports that he can still reproduce the problem, so we
may be revisiting this later.

Reported-by: Havoc Pennington <hp@pobox.com>
Signed-off-by: Jamey Sharp <jamey@minilop.net>
7 years agosmall fix to get rid of some compiler warnings
Christoph Reimann [Mon, 16 Aug 2010 18:24:40 +0000 (20:24 +0200)]
small fix to get rid of some compiler warnings
also added very basic documentation for xkb

7 years agosmall fix in the xkb pkg file
Christoph Reimann [Mon, 16 Aug 2010 16:22:42 +0000 (18:22 +0200)]
small fix in the xkb pkg file

7 years agoadded accessors for special cases
Christoph Reimann [Mon, 16 Aug 2010 16:19:16 +0000 (18:19 +0200)]
added accessors for special cases
major bugfixes include: rewrite of prefix related functions, merge of serialize/unserialize/... generators, extended field name resolution

7 years agoRelease libxcb 1.7 1.7
Julien Danjou [Fri, 13 Aug 2010 11:46:37 +0000 (13:46 +0200)]
Release libxcb 1.7

Signed-off-by: Julien Danjou <julien@danjou.info>
7 years agospecial case 'intermixed variable and fixed size fields': fixed reply side, needs...
Christoph Reimann [Sun, 8 Aug 2010 19:25:13 +0000 (21:25 +0200)]
special case 'intermixed variable and fixed size fields': fixed reply side, needs testing

7 years agorenamed most _unserialize() functions to _sizeof() and fixed _unserialize() for the...
Christoph Reimann [Thu, 5 Aug 2010 13:55:28 +0000 (15:55 +0200)]
renamed most _unserialize() functions to _sizeof() and fixed _unserialize() for the special case of intermixed variable and fixed size fields

7 years agoTutorial uses wrong function.
Eamon Walsh [Thu, 5 Aug 2010 04:48:08 +0000 (00:48 -0400)]
Tutorial uses wrong function.

https://bugs.freedesktop.org/show_bug.cgi?id=29392

Signed-off-by: Eamon Walsh <efw@eamonwalsh.com>
7 years agoattempt to fix special case: variable fields followed by fixed size fields
Christoph Reimann [Mon, 2 Aug 2010 21:30:42 +0000 (23:30 +0200)]
attempt to fix special case: variable fields followed by fixed size fields

7 years agobug fixes for all kinds of 'special cases'
Christoph Reimann [Sun, 1 Aug 2010 21:40:20 +0000 (23:40 +0200)]
bug fixes for all kinds of 'special cases'

7 years agopartial rewrite of serialize helper functions completed;
Christoph Reimann [Thu, 22 Jul 2010 14:41:15 +0000 (16:41 +0200)]
partial rewrite of serialize helper functions completed;
_serialize() & _unserialize() have been tested for switch derived from valueparam

7 years agopreliminary handling of further special cases in unserialize
Christoph Reimann [Tue, 20 Jul 2010 20:46:37 +0000 (22:46 +0200)]
preliminary handling of further special cases in unserialize
first attempts to unify serialize and unserialize

7 years agoadded generating code for _serialize() in case of variable sized structs (largely...
Christoph Reimann [Thu, 15 Jul 2010 16:43:43 +0000 (18:43 +0200)]
added generating code for _serialize() in case of variable sized structs (largely untested)

7 years agoxkb: added pkg config file
Christoph Reimann [Tue, 13 Jul 2010 18:08:51 +0000 (20:08 +0200)]
xkb: added pkg config file

7 years agonew and still preliminary functions for switch; feautures include
Christoph Reimann [Tue, 13 Jul 2010 18:06:08 +0000 (20:06 +0200)]
new and still preliminary functions for switch; feautures include
- 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

7 years agoxkb: updated configure.ac/Makefile.am
Christoph Reimann [Tue, 13 Jul 2010 17:59:23 +0000 (19:59 +0200)]
xkb: updated configure.ac/Makefile.am

7 years agoadded xcb_sumof() with restriction to uint8_t
Christoph Reimann [Tue, 13 Jul 2010 17:56:44 +0000 (19:56 +0200)]
added xcb_sumof() with restriction to uint8_t

7 years ago_xcb_conn_wait: Fix whitespace.
Jamey Sharp [Tue, 13 Jul 2010 14:01:06 +0000 (07:01 -0700)]
_xcb_conn_wait: Fix whitespace.

Signed-off-by: Jamey Sharp <jamey@minilop.net>
7 years agoAC_CHECK_PROG(LAUNCHD, [launchd], [yes], [no], [$PATH$PATH_SEPARATOR/sbin])
Jeremy Huddleston [Mon, 12 Jul 2010 23:53:53 +0000 (16:53 -0700)]
AC_CHECK_PROG(LAUNCHD, [launchd], [yes], [no], [$PATH$PATH_SEPARATOR/sbin])

launchd: Explicitly search /sbin

Previously, launchd wasn't found if /sbin wasn't in the user's PATH.
https://bugs.freedesktop.org/show_bug.cgi?id=29028

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
7 years agoconfigure.ac: Report which extensions are being built.
Vincent Torri [Mon, 21 Jun 2010 03:50:06 +0000 (20:50 -0700)]
configure.ac: Report which extensions are being built.

I was surprised to see that xinput was not installed. Looking at
configure.ac, it seems that it is disabled by default. Maybe configure
should output the status of the different extensions.

7 years agoxcb_connect_to_display_with_auth_info: Fix memory leak
Pauli Nieminen [Fri, 11 Jun 2010 13:30:47 +0000 (16:30 +0300)]
xcb_connect_to_display_with_auth_info: Fix memory leak

protocol and host are allocated in _xcb_parse_display but ownership of
them is passed to the caller. They have to be freed in
xcb_connect_to_display_with_auth_info.

Signed-off-by: Pauli Nieminen <ext-pauli.nieminen@nokia.com>
Signed-off-by: Peter Harris <pharris@opentext.com>
7 years ago_xcb_parse_display: Fix error path
Pauli Nieminen [Fri, 11 Jun 2010 13:30:46 +0000 (16:30 +0300)]
_xcb_parse_display: Fix error path

xcb_parse_display claims that there is no side effects when failing.
That requires _xcb_parse_display to free the memory in failure case.

Signed-off-by: Pauli Nieminen <ext-pauli.nieminen@nokia.com>
Signed-off-by: Peter Harris <pharris@opentext.com>
7 years agoxcb_open: Improve protocol/host parsing
Jeremy Huddleston [Thu, 13 May 2010 02:53:45 +0000 (19:53 -0700)]
xcb_open: Improve protocol/host parsing

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>
7 years agoAdd ~ operator support in code generator
Marcin Kościelnicki [Thu, 13 May 2010 21:05:57 +0000 (21:05 +0000)]
Add ~ operator support in code generator

Reviewed-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Julien Danjou <julien@danjou.info>
7 years agoFix GCC error on undeclared variable when not using abstract socket
Arnaud Fontaine [Fri, 30 Apr 2010 17:49:18 +0000 (18:49 +0100)]
Fix GCC error on undeclared variable when not using abstract socket

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)

7 years agoGet rid of PATH_MAX and MAXPATHLEN
Arnaud Fontaine [Fri, 30 Apr 2010 12:47:16 +0000 (14:47 +0200)]
Get rid of PATH_MAX and MAXPATHLEN

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>
7 years agoUse limits.h instead of syslimits.h
Jeremy Huddleston [Sat, 24 Apr 2010 04:57:26 +0000 (21:57 -0700)]
Use limits.h instead of syslimits.h

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>
7 years agoReworked launchd support to work better with _xcb_parse_display
Jeremy Huddleston [Sat, 24 Apr 2010 00:29:25 +0000 (17:29 -0700)]
Reworked launchd support to work better with _xcb_parse_display

Fixes: http://xquartz.macosforge.org/trac/ticket/390

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
7 years agoReplaced read() in read_block and _xcb_in_read() with recv for all
Jeetu Golani [Thu, 22 Apr 2010 19:17:16 +0000 (00:47 +0530)]
Replaced read() in read_block and _xcb_in_read() with recv for all
platforms. MSG_WAITALL is undefined in MinGW so it's been explicitly
defined in xcb_in.c

7 years agoSet errno=0 in read_block. On Win32 there is no errno and this makes the
Jeetu Golani [Thu, 22 Apr 2010 17:53:27 +0000 (23:23 +0530)]
Set errno=0 in read_block. On Win32 there is no errno and this makes the
do..while loop execute only once. Also set the return value to -1 in
_xcb_open if control reaches the end - if all goes well it shouldn't
reach there.

7 years agoAlways wake up readers after writing.
Jamey Sharp [Sun, 18 Apr 2010 00:59:11 +0000 (17:59 -0700)]
Always wake up readers after writing.

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>
7 years agoFix strict-aliasing warning when getting generic event length.
Jamey Sharp [Sun, 28 Mar 2010 17:31:55 +0000 (10:31 -0700)]
Fix strict-aliasing warning when getting generic event length.

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>
7 years agoDelete a useless level of indirection from _xcb_out_send's parameters.
Jamey Sharp [Fri, 12 Feb 2010 20:25:05 +0000 (12:25 -0800)]
Delete a useless level of indirection from _xcb_out_send's parameters.

_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>
7 years agoUpload to unstable. debian/1.6-1
Cyril Brulebois [Tue, 13 Apr 2010 15:21:05 +0000 (17:21 +0200)]
Upload to unstable.

7 years agodebian/libxcb1.symbols: Add xcb_discard_reply@Base, new in this release.
Cyril Brulebois [Tue, 13 Apr 2010 15:14:54 +0000 (17:14 +0200)]
debian/libxcb1.symbols: Add xcb_discard_reply@Base, new in this release.

7 years agoBump Build-Depends on xcb-proto (from 1.5 to 1.6) accordingly.
Cyril Brulebois [Tue, 13 Apr 2010 14:57:56 +0000 (16:57 +0200)]
Bump Build-Depends on xcb-proto (from 1.5 to 1.6) accordingly.

7 years agoNew upstream release.
Cyril Brulebois [Tue, 13 Apr 2010 14:55:58 +0000 (16:55 +0200)]
New upstream release.

7 years agoMerge commit '1.6' into debian/unstable
Cyril Brulebois [Tue, 13 Apr 2010 14:54:54 +0000 (16:54 +0200)]
Merge commit '1.6' into debian/unstable

7 years agoRelease libxcb 1.6 1.6
Julien Danjou [Fri, 9 Apr 2010 14:57:51 +0000 (16:57 +0200)]
Release libxcb 1.6

7 years agoFail if fd is too big and poll() is not available
Rémi Denis-Courmont [Fri, 26 Mar 2010 21:12:47 +0000 (23:12 +0200)]
Fail if fd is too big and poll() is not available

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>
7 years agoxcb_in.c #ifndef _WIN32 inside of #if USE_POLL redundant and removed
Jeetu Golani [Wed, 31 Mar 2010 16:30:04 +0000 (22:00 +0530)]
xcb_in.c #ifndef _WIN32 inside of #if USE_POLL redundant and removed

7 years agorestablished inclusion of fcntl.h and netinet/tcp.h in xcb_util.c -- without these...
Jeetu Golani [Wed, 31 Mar 2010 04:20:51 +0000 (09:50 +0530)]
restablished inclusion of fcntl.h and netinet/tcp.h in xcb_util.c -- without these the code no longer compiled on *ix

7 years agochanges in xcb_windefs.h - the flag _XCB_WINDEFS_H replaces WINDEFS_H
Jeetu Golani [Mon, 29 Mar 2010 17:07:33 +0000 (22:37 +0530)]
changes in xcb_windefs.h - the flag  _XCB_WINDEFS_H replaces WINDEFS_H

7 years agowindefs.h is now called xcb_windefs.h - changed all includes to reflect that.Replaced...
Jeetu Golani [Mon, 29 Mar 2010 17:01:49 +0000 (22:31 +0530)]
windefs.h is now called xcb_windefs.h - changed all includes to reflect that.Replaced one instance ofWIN32 with _WIN32 in each xcb_in.c and xcb_conn.c

7 years agoWin32 code for xcb-1.5
Jeetu Golani [Fri, 26 Mar 2010 04:10:09 +0000 (09:40 +0530)]
Win32 code for xcb-1.5

7 years agoFix authentication on hpux and Hurd
Samuel Thibault [Fri, 12 Mar 2010 22:51:32 +0000 (23:51 +0100)]
Fix authentication on hpux and Hurd

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>
7 years agoUpload to unstable. debian/1.5-3
Cyril Brulebois [Wed, 10 Mar 2010 20:45:59 +0000 (21:45 +0100)]
Upload to unstable.

7 years agoAdd myself to Uploaders.
Cyril Brulebois [Wed, 10 Mar 2010 20:45:44 +0000 (21:45 +0100)]
Add myself to Uploaders.

7 years agoRemove Jamey Sharp from Uploaders, with many thanks for your work! (Closes: #568277)
Cyril Brulebois [Wed, 10 Mar 2010 20:43:35 +0000 (21:43 +0100)]
Remove Jamey Sharp from Uploaders, with many thanks for your work! (Closes: #568277)

7 years agoBump Standards-Version from 3.8.3 to 3.8.4 (no changes needed).
Cyril Brulebois [Wed, 10 Mar 2010 20:40:18 +0000 (21:40 +0100)]
Bump Standards-Version from 3.8.3 to 3.8.4 (no changes needed).

7 years agoUse XC-Package-Type to save some memory.
Cyril Brulebois [Wed, 10 Mar 2010 20:39:37 +0000 (21:39 +0100)]
Use XC-Package-Type to save some memory.

7 years agoOpen the X11 socket with close-on-exec flag
Rémi Denis-Courmont [Sat, 13 Feb 2010 10:23:51 +0000 (12:23 +0200)]
Open the X11 socket with close-on-exec flag

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>
7 years agoSupport xcb_discard_reply
Peter Harris [Tue, 9 Feb 2010 21:27:22 +0000 (16:27 -0500)]
Support xcb_discard_reply

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>
7 years agoVersion some B-D to ensure dependencies on udebs rather than on libs.
Cyril Brulebois [Sat, 6 Feb 2010 18:15:05 +0000 (18:15 +0000)]
Version some B-D to ensure dependencies on udebs rather than on libs.

7 years agoAdd udeb needed for the graphical installer: libxcb1-udeb.
Cyril Brulebois [Sat, 6 Feb 2010 17:59:31 +0000 (17:59 +0000)]
Add udeb needed for the graphical installer: libxcb1-udeb.

7 years agoxcb_connect_to_fd: fix descriptor leak on memory error path
Rémi Denis-Courmont [Thu, 7 Jan 2010 16:08:35 +0000 (18:08 +0200)]
xcb_connect_to_fd: fix descriptor leak on memory error path

Signed-off-by: Julien Danjou <julien@danjou.info>
8 years agoconfigure.ac: Fix a typo on the last commit.
Jeremy Huddleston [Sat, 12 Dec 2009 01:24:43 +0000 (17:24 -0800)]
configure.ac: Fix a typo on the last commit.

Signed-off-by: Jeremy Huddleston <jeremyhu@freedesktop.org>
8 years agodarwin: xnu doesn't support poll on ttys on the master side.
Jeremy Huddleston [Sat, 12 Dec 2009 01:15:16 +0000 (17:15 -0800)]
darwin: xnu doesn't support poll on ttys on the master side.

<rdar://problem/7360546>

Signed-off-by: Jeremy Huddleston <jeremyhu@freedesktop.org>
8 years agoTutorial code fix
Jim Ingram [Mon, 7 Dec 2009 20:41:18 +0000 (14:41 -0600)]
Tutorial code fix

Accessed elements of names[] after freeing them in the first example.

Signed-off-by: Julien Danjou <julien@danjou.info>
8 years agoDRI2 extension requires xcb-proto 1.6 or newer
Rémi Cardona [Fri, 4 Dec 2009 21:06:20 +0000 (22:06 +0100)]
DRI2 extension requires xcb-proto 1.6 or newer

Signed-off-by: Rémi Cardona <remi@gentoo.org>
Signed-off-by: Julien Danjou <julien@danjou.info>
8 years agoAdd libxcb-dri2-0 debian/1.5-2
Julien Danjou [Thu, 3 Dec 2009 10:27:03 +0000 (11:27 +0100)]
Add libxcb-dri2-0

Signed-off-by: Julien Danjou <julien@danjou.info>
8 years agobuild: simplify extension building
Julien Danjou [Thu, 3 Dec 2009 10:34:18 +0000 (11:34 +0100)]
build: simplify extension building

Signed-off-by: Julien Danjou <julien@danjou.info>
8 years agoBump standard version debian/1.5-1
Julien Danjou [Thu, 3 Dec 2009 09:23:56 +0000 (10:23 +0100)]
Bump standard version

8 years agoNew upstream release
Julien Danjou [Thu, 3 Dec 2009 09:18:02 +0000 (10:18 +0100)]
New upstream release

8 years agoMerge commit '1.5' into debian/unstable
Julien Danjou [Thu, 3 Dec 2009 09:17:49 +0000 (10:17 +0100)]
Merge commit '1.5' into debian/unstable

8 years agoRelease libxcb 1.5 1.5
Julien Danjou [Thu, 3 Dec 2009 09:08:59 +0000 (10:08 +0100)]
Release libxcb 1.5

Signed-off-by: Julien Danjou <julien@danjou.info>
8 years agosetsockopt(SO_KEEPALIVE) on TCP display connections.
Adam Jackson [Wed, 2 Dec 2009 19:31:56 +0000 (14:31 -0500)]
setsockopt(SO_KEEPALIVE) on TCP display connections.

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>
8 years agoAdd DRI2 support. (v2)
Eric Anholt [Thu, 15 Oct 2009 20:13:47 +0000 (13:13 -0700)]
Add DRI2 support. (v2)

v2: Build fix from jcristau.

8 years agoFix typo in the tutorial.
Eric Anholt [Thu, 15 Oct 2009 20:14:49 +0000 (13:14 -0700)]
Fix typo in the tutorial.

8 years agoDon't build docs if 'dot' is not found Signed-off-by: Paulo R. Zanoni <pzanoni@mandri...
Paulo R. Zanoni [Fri, 18 Sep 2009 18:05:46 +0000 (15:05 -0300)]
Don't build docs if 'dot' is not found Signed-off-by: Paulo R. Zanoni <pzanoni@mandriva.com>

8 years agoFix check dependency
Julien Cristau [Mon, 31 Aug 2009 15:51:36 +0000 (17:51 +0200)]
Fix check dependency

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>