free-sw/xcb/libxcb
16 years agoInputs to AC_CONFIG_FILES are automatically distributed.
Eamon Walsh [Tue, 15 Jan 2008 22:06:14 +0000 (17:06 -0500)]
Inputs to AC_CONFIG_FILES are automatically distributed.
Hence, it is not necessary to explicitly add them to EXTRA_DIST.

16 years agoGenerated the configure.ac and Makefile.am's in libxcb with the idea of
Eamon Walsh [Fri, 7 Dec 2007 21:22:04 +0000 (16:22 -0500)]
Generated the configure.ac and Makefile.am's in libxcb with the idea of
making each extension library individually selectable for build.

Signed-off-by: Eamon Walsh <ewalsh@tycho.nsa.gov>
16 years agoMerge branch 'master' of git+ssh://git.freedesktop.org/git/xcb/libxcb
Eamon Walsh [Fri, 7 Dec 2007 21:18:00 +0000 (16:18 -0500)]
Merge branch 'master' of git+ssh://git.freedesktop.org/git/xcb/libxcb

16 years agomake IPv6 optional
Bart Massey [Sat, 24 Nov 2007 22:53:54 +0000 (14:53 -0800)]
make IPv6 optional

16 years agoRemove file that wasn't meant to be committed.
Eamon Walsh [Sat, 17 Nov 2007 00:38:40 +0000 (19:38 -0500)]
Remove file that wasn't meant to be committed.

16 years agoMerge branch 'master' of git+ssh://git.freedesktop.org/git/xcb/libxcb
Eamon Walsh [Sat, 17 Nov 2007 00:36:08 +0000 (19:36 -0500)]
Merge branch 'master' of git+ssh://git.freedesktop.org/git/xcb/libxcb

16 years agoAdd comment noting the requirement to free replies when finished.
Eamon Walsh [Sat, 17 Nov 2007 00:34:42 +0000 (19:34 -0500)]
Add comment noting the requirement to free replies when finished.

16 years agoAdd generated comment noting requirement to free replies after use.
Eamon Walsh [Sat, 17 Nov 2007 00:33:20 +0000 (19:33 -0500)]
Add generated comment noting requirement to free replies after use.

16 years agoRelease libxcb 1.1
Jamey Sharp [Mon, 5 Nov 2007 01:29:13 +0000 (17:29 -0800)]
Release libxcb 1.1

16 years agoRevert "Generate error constants as XCB_BAD_*, similar to Xlib."
Jamey Sharp [Mon, 5 Nov 2007 01:26:21 +0000 (17:26 -0800)]
Revert "Generate error constants as XCB_BAD_*, similar to Xlib."

Since several extensions named their errors like "BadFoo", this patch
results in names like XCB_EXT_BAD_BAD_FOO, which is really awful. Those
extensions are already kind of awful, as they produce structure names
like xcb_ext_bad_foo_error_t, which is redundant.

A patch that removes "Bad" from the XML extension descriptions, while
maintaining API and ABI compatibility in XCB, is needed before this
patch can be released.

This reverts commit 158c9b6ba18b39f424bd524fceb66f3fec0d1616.

16 years agoDon't hold the xlib-xcb lock while sleeping: that allows deadlock.
Jamey Sharp [Sun, 28 Oct 2007 20:28:18 +0000 (13:28 -0700)]
Don't hold the xlib-xcb lock while sleeping: that allows deadlock.

With this patch, `ico -threads 2` runs without deadlock.

Many thanks to Christoph Pfister <christophpfister@gmail.com> for
pointing out the problem, providing detailed analyses, explaining it to
me repeatedly until I understood what was going on, and proposing and
reviewing possible solutions.

Signed-off-by: Jamey Sharp <jamey@minilop.net>
Acked-by: Christoph Pfister <christophpfister@gmail.com>
16 years agoFactor pthread_cond_wait(iolock) to _xcb_wait_io.
Jamey Sharp [Sun, 28 Oct 2007 18:56:08 +0000 (11:56 -0700)]
Factor pthread_cond_wait(iolock) to _xcb_wait_io.

This parallels the _xcb_lock_io and _xcb_unlock_io factoring.

16 years agoDon't abort() on locking assertions if LIBXCB_ALLOW_SLOPPY_LOCK is set.
Jamey Sharp [Tue, 23 Oct 2007 18:03:33 +0000 (11:03 -0700)]
Don't abort() on locking assertions if LIBXCB_ALLOW_SLOPPY_LOCK is set.

But do still print a full backtrace, on platforms where that's
supported.

This commit follows the spirit of Novell's libxcb-sloppy-lock.diff.

I strongly opposed proposals like this one for a long time. Originally I
had a very good reason: libX11, when compiled to use XCB, would crash
soon after a locking correctness violation, so it was better to have an
informative assert failure than a mystifying crash soon after.

It took some time for me to realize that I'd changed the libX11
implementation (for unrelated reasons) so that it could survive most
invalid locking situations, as long as it wasn't actually being used
from multiple threads concurrently.

The other thing that has changed is that most of the code with incorrect
locking has now been fixed. The value of the assert is accordingly
lower.

However, remaining broken callers do need to be fixed. That's why libXCB
will still noisily print a stacktrace (if possible) on each assertion
failure, even when assert isn't actually invoked to abort() the program;
and that's why aborting is still default. This environment variable is
provided only for use as a temporary workaround for broken applications.

Signed-off-by: Jamey Sharp <jamey@minilop.net>
Acked-by: Josh Triplett <josh@freedesktop.org>
16 years agoAllow unix:<screen> style display names again.
Egbert Eich [Thu, 19 Jul 2007 15:00:18 +0000 (17:00 +0200)]
Allow unix:<screen> style display names again.

https://bugzilla.novell.com/show_bug.cgi?id=289007
This notion is used in a lot of scripts.

17 years agoSend locking assertion backtraces to stderr. Improve the heading on the backtrace.
Josh Triplett [Thu, 14 Jun 2007 06:46:37 +0000 (23:46 -0700)]
Send locking assertion backtraces to stderr.  Improve the heading on the backtrace.

17 years agoPrint backtraces in case an assert fails inside xlib/xcb.
Christoph Pfister [Wed, 6 Jun 2007 15:17:49 +0000 (17:17 +0200)]
Print backtraces in case an assert fails inside xlib/xcb.

As you know there are some nasty libs / apps doing locking
incorrectly. In order to improve the information given to the user
when he encounters such a situation (people don't run apps in gdb
normally) I created the patch attached.
It's very non-intrusive (and affects only xlib/xcb, Josh told me on
irc that it could be useful for other areas too, personally I don't
think that it's really needed at other places ...).

Some same outputs and the discussion of them:

    lxuser@pdln:/tmp$ ./main
    Got a backtrace:
    #0 /tmp/usr/lib/libxcb-xlib.so.0 [0xb7f9d728]
    #1 /tmp/usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0xb7f9d861]
    #2 ./test.so(function_a+0x11) [0xb7f9f3fd]
    #3 ./test.so(function_b+0x11) [0xb7f9f410]
    #4 ./main [0x80484a7]
    #5 /lib/libc.so.6(__libc_start_main+0xdc) [0xb7e60ebc]
    #6 ./main [0x80483f1]
    main: xcb_xlib.c:82: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.
    Aborted

That's kinda the normal situation.

    lxuser@pdln:/tmp$ ./main
    Got a backtrace:
    #0 /tmp/usr/lib/libxcb-xlib.so.0 [0xb7f90728]
    #1 /tmp/usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0xb7f90861]
    #2 /tmp/test.so [0xb7f923cd]
    #3 /tmp/test.so(function_b+0x11) [0xb7f923e0]
    #4 ./main [0x80484ab]
    #5 /lib/libc.so.6(__libc_start_main+0xdc) [0xb7e53ebc]
    #6 ./main [0x80483f1]
    main: xcb_xlib.c:82: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.
    Aborted

There are two possible reasons that the name doesn't appear in #2:
a) a hidden symbol or a symbol with statical linkage in a library
b) a symbol in an app not compiled with -rdynamic.
But in both cases you still know _where_ the caller is.

Note that in this example test.so was compiled with
-fomit-frame-pointer; this isn't an issue as _one_ (= the caller)
stack trace is still valid (as long as you don't have the insane idea
to compile xcb with -fo-f-p).

Another issue that may appear is "tail call elimination" (some entries
are mysteriously missing; this is quite ugly, but you still get enough
information so that you can do something useful with the issue e.g. by
disassembling the relevant parts with gdb).

Signed-off-by: Jamey Sharp <jamey@minilop.net>
17 years agoxcb_poll_for_event: Return already-read events before read(2)ing again.
Jamey Sharp [Sun, 3 Jun 2007 01:29:37 +0000 (18:29 -0700)]
xcb_poll_for_event: Return already-read events before read(2)ing again.

17 years agoMerge branch 'master' of git://anongit.freedesktop.org/git/xcb/libxcb
Matthias Hopf [Wed, 18 Apr 2007 10:46:08 +0000 (12:46 +0200)]
Merge branch 'master' of git://anongit.freedesktop.org/git/xcb/libxcb

17 years agoGenerate error constants as XCB_BAD_*, similar to Xlib.
Ian Osgood [Fri, 13 Apr 2007 22:14:12 +0000 (15:14 -0700)]
Generate error constants as XCB_BAD_*, similar to Xlib.

The previous constants remain for compatibility, but should be deprecated.

17 years agoMerge branch 'master' of git+ssh://git.freedesktop.org/git/xcb/libxcb
TORRI Vincent [Thu, 12 Apr 2007 13:48:44 +0000 (15:48 +0200)]
Merge branch 'master' of git+ssh://git.freedesktop.org/git/xcb/libxcb

17 years agoremove the 7th bit of the response_type for the event loops
TORRI Vincent [Thu, 12 Apr 2007 13:46:05 +0000 (15:46 +0200)]
remove the 7th bit of the response_type for the event loops

17 years agoUpdate autogen.sh to one that does objdir != srcdir
Matthias Hopf [Wed, 11 Apr 2007 15:31:31 +0000 (17:31 +0200)]
Update autogen.sh to one that does objdir != srcdir

17 years agoModify new attribute from previous patch so that it is necessary only on
Eamon Walsh [Tue, 10 Apr 2007 15:56:06 +0000 (11:56 -0400)]
Modify new attribute from previous patch so that it is necessary only on
extensions with split names.  Tested with diff and found no difference with
previous stylesheet header-file output.

17 years agoReplaces special-casing in c-client stylesheet with support
Eamon Walsh [Thu, 29 Mar 2007 19:28:07 +0000 (12:28 -0700)]
Replaces special-casing in c-client stylesheet with support
for new attribute.  Tested with diff and found no difference with
previous stylesheet header-file output.

17 years agoadd the first step toward the documentation of the request/reply functions. The argum...
TORRI Vincent [Tue, 27 Feb 2007 12:35:02 +0000 (13:35 +0100)]
add the first step toward the documentation of the request/reply functions. The arguments of the requests are not found yet. Josh, can you look at it ?

17 years agoand make the html code valid...
TORRI Vincent [Wed, 7 Feb 2007 19:08:27 +0000 (20:08 +0100)]
and make the html code valid...

17 years agofont part
TORRI Vincent [Wed, 7 Feb 2007 19:04:10 +0000 (20:04 +0100)]
font part

17 years agono more xid or id fields
TORRI Vincent [Wed, 7 Feb 2007 17:57:46 +0000 (18:57 +0100)]
no more xid or id fields

17 years agoadd the complete cursor example. Make the html code valid
TORRI Vincent [Tue, 6 Feb 2007 08:31:54 +0000 (09:31 +0100)]
add the complete cursor example. Make the html code valid

17 years agoadd doxygen doc for the *_end functions
TORRI Vincent [Mon, 22 Jan 2007 10:40:15 +0000 (11:40 +0100)]
add doxygen doc for the *_end functions

17 years agofix all the occurence where a drawable where considered as a union
TORRI Vincent [Sat, 13 Jan 2007 10:20:55 +0000 (11:20 +0100)]
fix all the occurence where a drawable where considered as a union

17 years agoAdd autogen.sh to EXTRA_DIST.
Josh Triplett [Mon, 11 Dec 2006 05:10:06 +0000 (21:10 -0800)]
Add autogen.sh to EXTRA_DIST.

17 years agoAdd tools/* to EXTRA_DIST.
Josh Triplett [Mon, 11 Dec 2006 05:09:30 +0000 (21:09 -0800)]
Add tools/* to EXTRA_DIST.

17 years agoadd doc tag for the _next functions. It creates doxygen doc in the header files for...
TORRI Vincent [Tue, 28 Nov 2006 19:26:54 +0000 (20:26 +0100)]
add doc tag for the _next functions. It creates doxygen doc in the header files for these functions

17 years agoMerge branch 'master' of git+ssh://git.freedesktop.org/git/xcb/libxcb
TORRI Vincent [Tue, 28 Nov 2006 19:15:27 +0000 (20:15 +0100)]
Merge branch 'master' of git+ssh://git.freedesktop.org/git/xcb/libxcb

17 years agoadd some output informations to configure script
TORRI Vincent [Tue, 28 Nov 2006 19:14:16 +0000 (20:14 +0100)]
add some output informations to configure script

17 years agoIf enable_build_docs is "no", we don't even try to look for doxygen.
Tilman Sauerbeck [Fri, 24 Nov 2006 14:48:08 +0000 (15:48 +0100)]
If enable_build_docs is "no", we don't even try to look for doxygen.

Also set BUILD_DOCS in that branch. Now the disable-build-docs works
as expected.

17 years agoFixed evaluation of the disable-build-docs argument.
Tilman Sauerbeck [Fri, 24 Nov 2006 14:43:39 +0000 (15:43 +0100)]
Fixed evaluation of the disable-build-docs argument.

Now at least enable_build_docs is set correctly.

17 years agoFix unit tests for FreeBSD
Ian Osgood [Sun, 26 Nov 2006 17:26:32 +0000 (09:26 -0800)]
Fix unit tests for FreeBSD

putenv() string must contain '='
environment failure test is invalid if argument is NULL

17 years agoUse substitition variables in xcb-xinerama.pc.in, not instances of their values
Josh Triplett [Sun, 26 Nov 2006 06:27:33 +0000 (22:27 -0800)]
Use substitition variables in xcb-xinerama.pc.in, not instances of their values

xcb-xinerama.pc.in looked more like a generated .pc file; replace specific
instances of values provided by an invocation of configure with the general
substitution variables configure replaces.

17 years agoBug #9119: test xcb_popcount
Ian Osgood [Sat, 25 Nov 2006 19:00:14 +0000 (11:00 -0800)]
Bug #9119: test xcb_popcount

17 years agolibXau didn't have a correct pkg-config file until 0.99.2: fail if an older version...
Jamey Sharp [Sat, 25 Nov 2006 00:22:13 +0000 (16:22 -0800)]
libXau didn't have a correct pkg-config file until 0.99.2: fail if an older version is found.

17 years agoNetBSD doesn't have AI_ADDRCONFIG: use it only if it's available.
Jamey Sharp [Fri, 24 Nov 2006 21:24:05 +0000 (13:24 -0800)]
NetBSD doesn't have AI_ADDRCONFIG: use it only if it's available.

17 years agoreplace all the _new functions with xcb_generate_id. repalce X11/XCB with xcb. Fix...
TORRI Vincent [Fri, 24 Nov 2006 11:33:15 +0000 (12:33 +0100)]
replace all the _new functions with xcb_generate_id. repalce X11/XCB with xcb. Fix a description of the default background of a window

17 years agoRelease libxcb 1.0
Josh Triplett [Thu, 23 Nov 2006 15:30:51 +0000 (07:30 -0800)]
Release libxcb 1.0

17 years agoAvoid race condition when using multiple make jobs
Diego 'Flameeyes' Pettenò [Thu, 23 Nov 2006 14:15:30 +0000 (15:15 +0100)]
Avoid race condition when using multiple make jobs

Avoid race condition when symlinking XML files.
When declaring a rule with many files as target, the rule is called
when any of them is requested, resulting in multiple for loops happening
during a make process using more than one job.
Also, use '$(LN_S) -f' rather than removing and recreating a file,
that one should be as supported as 'rm -f' and requires one less command.

17 years agoRewrite automake's data installation rules, because they suck.
Josh Triplett [Thu, 23 Nov 2006 10:11:02 +0000 (02:11 -0800)]
Rewrite automake's data installation rules, because they suck.

Specifically, they didn't handle installing data from both srcdir and builddir.
We have the tutorial in the srcdir, and build the manual in the builddir.

Also, stop rebuilding the manual for each make target in the doc directory, and
every time any of those targets get called.  This change now makes the manual
never rebuild once built; we plan to fix that later, by rewriting the makefiles
to avoid recursive make, and then making the manual depend on the source files.

Commit by Jamey Sharp and Josh Triplett.

17 years agoRework doxygen build and install to work with srcdir != builddir
Josh Triplett [Thu, 23 Nov 2006 08:08:30 +0000 (00:08 -0800)]
Rework doxygen build and install to work with srcdir != builddir

The documentation generation with doxygen now works when built out of tree,
with srcdir != builddir.  xcb.doxygen now gets generated from xcb.doxygen.in,
so that it can use top_builddir and top_srcdir to find source and to output
documentation.  Also fill in PROJECT_NUMBER from @VERSION@, now that we have
it readily available via autoconf.

17 years agoRemove --with-opt and --with-debug options from configure.ac; use CFLAGS instead
Josh Triplett [Thu, 23 Nov 2006 06:47:15 +0000 (22:47 -0800)]
Remove --with-opt and --with-debug options from configure.ac; use CFLAGS instead

configure supports using custom CFLAGS, so remove the --with-opt and
--with-debug options from configure.ac, and the corresponding usage of
COPTFLAGS and CDEBUGFLAGS in src/Makefile.am.

17 years agoCheck for getaddrinfo rather than gethostbyname in configure.ac
Josh Triplett [Thu, 23 Nov 2006 05:49:52 +0000 (21:49 -0800)]
Check for getaddrinfo rather than gethostbyname in configure.ac

Since the addition of IPv6 support, we now use getaddrinfo rather than
gethostbyname; update configure.ac accordingly.

17 years agoxcb-proto has no libraries or headers, so don't use XCBPROTO_CFLAGS or XCBPROTO_LIBS.
Jamey Sharp [Thu, 23 Nov 2006 05:27:41 +0000 (21:27 -0800)]
xcb-proto has no libraries or headers, so don't use XCBPROTO_CFLAGS or XCBPROTO_LIBS.

17 years agoUse pthread-stubs as needed, and list xdmcp in Requires.private when XCB is built...
Jamey Sharp [Thu, 23 Nov 2006 04:29:04 +0000 (20:29 -0800)]
Use pthread-stubs as needed, and list xdmcp in Requires.private when XCB is built to use it.

17 years agoReplace uses of "long" with uint32_t, and similar; fixes 64-bit bugs
Josh Triplett [Wed, 22 Nov 2006 04:29:34 +0000 (20:29 -0800)]
Replace uses of "long" with uint32_t, and similar; fixes 64-bit bugs

17 years agoFix IP6 work for FreeBSD/Mac.
Ian Osgood [Tue, 21 Nov 2006 17:04:37 +0000 (09:04 -0800)]
Fix IP6 work for FreeBSD/Mac.

17 years agoSupport XDM-AUTHORIZATION-1 on IPv6
Josh Triplett [Tue, 21 Nov 2006 08:57:49 +0000 (00:57 -0800)]
Support XDM-AUTHORIZATION-1 on IPv6

Commit by Jamey Sharp and Josh Triplett.

17 years agoRefactor auth code to get display number from xcb_connect
Josh Triplett [Tue, 21 Nov 2006 07:25:41 +0000 (23:25 -0800)]
Refactor auth code to get display number from xcb_connect

Change xcb_connect to pass the display number to _xcb_get_auth_info, which
passes it to get_authptr.  This allows get_authptr to stop hacking the display
number out of the sockaddrs of various address families, such as
port - X_TCP_PORT, or the number after the last X in the UNIX socket path. This
also removes a portability bug introduced during the IPv6 changes: relying on
'\0'-termination of the UNIX socket path in a sockaddr_un.

Commit by Jamey Sharp and Josh Triplett.

17 years agoOnly use AI_NUMERICSERV if defined.
Josh Triplett [Tue, 21 Nov 2006 06:26:40 +0000 (22:26 -0800)]
Only use AI_NUMERICSERV if defined.

17 years agoSupport authentication for IPv6 connections
Josh Triplett [Tue, 21 Nov 2006 06:16:24 +0000 (22:16 -0800)]
Support authentication for IPv6 connections

Support AF_INET6 in get_authptr, and refactor to use common code for IPv4 and
v4-mapped IPv6 addresses.

Commit by Jamey Sharp and Josh Triplett.

17 years agoSupport displays with IPv6 addresses or hosts which resolve to IPv6 addresses
Josh Triplett [Tue, 21 Nov 2006 01:53:30 +0000 (17:53 -0800)]
Support displays with IPv6 addresses or hosts which resolve to IPv6 addresses

xcb_parse_display already correctly handled IPv6 displays.  Now, _xcb_open_tcp
uses getaddrinfo, and correctly connects to IPv6 displays.  Displays can use
bare IPv6 addresses, square-bracketed IPv6 addresses, or hostnames which
resolve to IPv6 addresses.

Since IPv6 addresses may include colons, including at the end, revise the
DECnet display parsing code to avoid triggering on IPv6 addresses.

Authorization may not work with IPv6 connections yet.

This commit brought to you by the (display) number ::1:1.1, the letter X,
the Gobby collaborative editor, Josh Triplett, and Jamey Sharp.

17 years agoAdd new xcb_parse_display test cases, most related to IPv6 addresses
Josh Triplett [Tue, 21 Nov 2006 01:48:49 +0000 (17:48 -0800)]
Add new xcb_parse_display test cases, most related to IPv6 addresses

17 years agoBug #5958: Also zero out the implicit pad byte in empty requests.
Jamey Sharp [Mon, 20 Nov 2006 05:48:27 +0000 (21:48 -0800)]
Bug #5958: Also zero out the implicit pad byte in empty requests.

17 years agoRemove support for the <localfield> tag: nothing needs it.
Jamey Sharp [Mon, 20 Nov 2006 02:31:48 +0000 (18:31 -0800)]
Remove support for the <localfield> tag: nothing needs it.

Only one use of <localfield> remained, for a list length expression in
xv.xml. List length parameters that don't actually appear in the
protocol should be left implicit: if no length expression is given, then
a localfield will be automatically created by c-client.xsl.

17 years agoBug #5958: zero out padding bytes in requests.
Jamey Sharp [Mon, 20 Nov 2006 01:56:32 +0000 (17:56 -0800)]
Bug #5958: zero out padding bytes in requests.

17 years agohtmldir was introduced in autoconf 2.59c: set a reasonable value for earlier versions.
Jamey Sharp [Sun, 19 Nov 2006 08:30:37 +0000 (00:30 -0800)]
htmldir was introduced in autoconf 2.59c: set a reasonable value for earlier versions.

17 years agoProvide xcb_prefetch_maximum_request_length counterpart to xcb_get_maximum_request_le...
Jamey Sharp [Sun, 12 Nov 2006 23:30:10 +0000 (15:30 -0800)]
Provide xcb_prefetch_maximum_request_length counterpart to xcb_get_maximum_request_length.

17 years agoFix Doxygen warnings.
Jamey Sharp [Sun, 19 Nov 2006 05:30:12 +0000 (21:30 -0800)]
Fix Doxygen warnings.

Specifically, fixes these two warnings which were emitted for every
generated source file:

* Warning: end of file while inside a group
* Warning: group XCB_BigRequests_API already documented. Skipping documentation.

17 years agoMake doc installation work and simplify doc/Makefile.am.
Jamey Sharp [Sun, 19 Nov 2006 03:36:48 +0000 (19:36 -0800)]
Make doc installation work and simplify doc/Makefile.am.

Don't override the default htmldir with an unquoted copy.

Don't suppress `make` echoing on Doxygen commands.

Ensure the tutorial is always installed even if Doxygen isn't
available.

Take better advantage of the automake installation infrastructure.

17 years agoTurn off Doxygen warnings for undocumented API, for now.
Jamey Sharp [Sun, 19 Nov 2006 00:51:01 +0000 (16:51 -0800)]
Turn off Doxygen warnings for undocumented API, for now.

But warn about absent parameter documentation for functions that are
otherwise documented.

17 years agoSwitch from the old AM_PATH_CHECK macro to pkg-config.
Jamey Sharp [Fri, 17 Nov 2006 01:02:17 +0000 (17:02 -0800)]
Switch from the old AM_PATH_CHECK macro to pkg-config.

check 0.9.4 is now required to build XCB's unit tests.

The version that we were requiring was not actually new enough to let
our unit tests compile, and the AM_PATH_CHECK macro is now considered
deprecated. We know that versions of check using pkg-config are new
enough to work, and the check dependency was optional anyway, so we've
dropped support for older versions.

17 years agoadd Makefile.am for building/installing doxygen doc
TORRI Vincent [Sun, 5 Nov 2006 17:24:30 +0000 (18:24 +0100)]
add Makefile.am for building/installing doxygen doc

17 years agoadd xcb.doxygen to EXTRA_DIST
TORRI Vincent [Sun, 5 Nov 2006 17:22:55 +0000 (18:22 +0100)]
add xcb.doxygen to EXTRA_DIST

17 years agoMerge branch 'master' of git+ssh://git.freedesktop.org/git/xcb/libxcb
TORRI Vincent [Sun, 5 Nov 2006 17:21:34 +0000 (18:21 +0100)]
Merge branch 'master' of git+ssh://git.freedesktop.org/git/xcb/libxcb

17 years agoadd AM_CHECK_DOXYGEN macro
TORRI Vincent [Sun, 5 Nov 2006 17:20:45 +0000 (18:20 +0100)]
add AM_CHECK_DOXYGEN macro

17 years agoRelease libxcb 1.0 RC3 (0.9.93).
Jamey Sharp [Fri, 3 Nov 2006 02:04:16 +0000 (18:04 -0800)]
Release libxcb 1.0 RC3 (0.9.93).

17 years agoAdded initial doxygen generation stuff. This should probably be cleaned up later.
Jeremy Kolb jkolb@brandeis.edu [Mon, 30 Oct 2006 00:31:09 +0000 (19:31 -0500)]
Added initial doxygen generation stuff.  This should probably be cleaned up later.

Added support for major/minor-version attributes in the xcb tag.  This is just to give some reference and help people when using *query_version.

17 years agofix doxy doc
TORRI Vincent [Fri, 20 Oct 2006 05:00:15 +0000 (07:00 +0200)]
fix doxy doc

17 years agoAdd doxygen config file.
Jamey Sharp [Thu, 19 Oct 2006 06:28:27 +0000 (23:28 -0700)]
Add doxygen config file.

Thanks to Jeremy Kolb <jkolb@brandeis.edu> for the initial version.

17 years agoQuit treating xproto specially: handle it like all the extensions.
Jamey Sharp [Thu, 19 Oct 2006 06:23:00 +0000 (23:23 -0700)]
Quit treating xproto specially: handle it like all the extensions.

17 years agoIgnore generated xinerama files.
Jamey Sharp [Thu, 19 Oct 2006 06:21:39 +0000 (23:21 -0700)]
Ignore generated xinerama files.

17 years agoAlso test xcb_parse_display with NULL argument and display in $DISPLAY
Josh Triplett [Mon, 16 Oct 2006 12:11:57 +0000 (05:11 -0700)]
Also test xcb_parse_display with NULL argument and display in $DISPLAY

17 years agoMatch only XCB-namespaced XID generators when converting to xcb_generate_id.
Jamey Sharp [Sun, 15 Oct 2006 19:34:30 +0000 (12:34 -0700)]
Match only XCB-namespaced XID generators when converting to xcb_generate_id.

Thanks to Vincent Torri for pointing out that I screwed up. :-)

17 years agoDefine and use constants for opcode numbers.
Zephaniah E. Hull [Sun, 15 Oct 2006 02:52:23 +0000 (19:52 -0700)]
Define and use constants for opcode numbers.

Hard coding the opcode numbers in the function just makes it harder to figure
out what's going on, but much more to the point, not defining the opcodes in
the header makes it impossible to use the generated headers instead of the
x11proto headers in the server.

The name I settled on is very simple, for an extension by the name of xconf,
and a request by the name of list_devices, we get XCB_XCONF_LIST_DEVICES.  If
this somehow causes problems, we can probably add a _OP somewhere in there,
but.

Acked-by: Jamey Sharp <jamey@minilop.net>
Closes: #8641

17 years agoAdd library support for xcb-xinerama.
Jeremy Kolb [Fri, 13 Oct 2006 03:52:59 +0000 (23:52 -0400)]
Add library support for xcb-xinerama.

This is version 1.1 of the Xinerama (PanoramiX) extension.

17 years agoAdd note to xcbxlib.h that nothing except Xlib/XCB should use it.
Josh Triplett [Mon, 9 Oct 2006 01:16:14 +0000 (18:16 -0700)]
Add note to xcbxlib.h that nothing except Xlib/XCB should use it.

17 years agoRelease libxcb 1.0 RC2 (0.9.92).
Jamey Sharp [Sun, 8 Oct 2006 02:50:55 +0000 (19:50 -0700)]
Release libxcb 1.0 RC2 (0.9.92).

17 years agoBugfix: make Plan 7 'checked' requests work correctly.
Jamey Sharp [Sun, 8 Oct 2006 01:35:53 +0000 (18:35 -0700)]
Bugfix: make Plan 7 'checked' requests work correctly.

The initial implementation of Plan 7 dumped all X errors into the event
queue, because the record of a pending reply was pruned too early if an
error occurred in place of the expected reply.

17 years agoDocument xcb_generate_id.
Ian Osgood [Sat, 7 Oct 2006 21:09:29 +0000 (14:09 -0700)]
Document xcb_generate_id.

17 years agoMove xcb_generate_id from xcbext.h to xcb.h
Josh Triplett [Sat, 7 Oct 2006 20:16:43 +0000 (13:16 -0700)]
Move xcb_generate_id from xcbext.h to xcb.h

Since extensions no longer provide type-specific XID-generation functions,
xcb_generate_id now forms part of the xcb client API, rather than the
extension API; move it from xcbext.h to xcb.h accordingly.

17 years agoStop implicitly importing xproto; goes with proto change to explicitly import it
Josh Triplett [Sat, 7 Oct 2006 08:27:26 +0000 (01:27 -0700)]
Stop implicitly importing xproto; goes with proto change to explicitly import it

17 years agoDeclare "struct foo" or "enum foo" as well as the typedef'd name "foo".
Jamey Sharp [Sat, 7 Oct 2006 08:27:03 +0000 (01:27 -0700)]
Declare "struct foo" or "enum foo" as well as the typedef'd name "foo".

17 years agoHandle "xidunion" instead of "union" for XID unions like DRAWABLE and FONTABLE
Josh Triplett [Sat, 7 Oct 2006 07:14:50 +0000 (00:14 -0700)]
Handle "xidunion" instead of "union" for XID unions like DRAWABLE and FONTABLE

17 years agoapi_conv.pl: replace xcb_*_new with calls directly to xcb_generate_id, now that we...
Jamey Sharp [Sat, 7 Oct 2006 06:32:18 +0000 (23:32 -0700)]
api_conv.pl: replace xcb_*_new with calls directly to xcb_generate_id, now that we have no type-safety XID wrappers.

17 years agoRefer to the "xlib lock" rather than the "IOLock" in xcbxlib.h
Josh Triplett [Sat, 7 Oct 2006 03:11:19 +0000 (20:11 -0700)]
Refer to the "xlib lock" rather than the "IOLock" in xcbxlib.h

17 years agoRemove XID wrapper structures and replace them with uint32_t typedefs
Josh Triplett [Sat, 7 Oct 2006 00:44:53 +0000 (17:44 -0700)]
Remove XID wrapper structures and replace them with uint32_t typedefs

After positive feedback from several people, we have decided to remove the XID
wrapper structures that attempted to provide C type safety, and replace them
with uint32_t typedefs.  Feedback has indicated that these type-safety hacks
generated more trouble than help.

We will bump the libxcb soname at the next release.

17 years agoRemove xcb_get_io_lock from the Xlib-specific API: it is no longer used.
Jamey Sharp [Fri, 6 Oct 2006 23:47:50 +0000 (16:47 -0700)]
Remove xcb_get_io_lock from the Xlib-specific API: it is no longer used.

17 years agoRemove the 'int *error' out-parameter for xcb_poll_for_event.
Jamey Sharp [Fri, 6 Oct 2006 23:12:04 +0000 (16:12 -0700)]
Remove the 'int *error' out-parameter for xcb_poll_for_event.

17 years agoAdd xcb_xlib_lock and xcb_xlib_unlock, a special-purpose two-level recursive lock...
Jamey Sharp [Wed, 4 Oct 2006 22:01:00 +0000 (15:01 -0700)]
Add xcb_xlib_lock and xcb_xlib_unlock, a special-purpose two-level recursive lock just for libX11.

17 years agoFactor out pthread_mutex_lock and unlock calls for the iolock.
Jamey Sharp [Wed, 4 Oct 2006 19:23:45 +0000 (12:23 -0700)]
Factor out pthread_mutex_lock and unlock calls for the iolock.

17 years agofix some indentation, remove args of the main function (not needed), xcb_sync ->...
TORRI Vincent [Sat, 30 Sep 2006 11:06:58 +0000 (13:06 +0200)]
fix some indentation, remove args of the main function (not needed), xcb_sync -> xcb_aux_sync. Jamey, it seems that your script transforms XCBGetSetup into a type, instead of a function. Same for XCBSetupVendor. Maybe there are other fuctions that have the same problem.

17 years agoupdate tutorial to the new api. Add some doc about cursors. Add some colors to sectio...
TORRI Vincent [Sat, 30 Sep 2006 10:45:12 +0000 (12:45 +0200)]
update tutorial to the new api. Add some doc about cursors. Add some colors to section 6 (Opening and closing the connection to an X server). Tell me if you want to keep colors or not (colors can be modified in xcb.css)