Commit Graph

272 Commits

Author SHA1 Message Date
Josh Triplett b8512bafee Commit changes from Julien Cristau's 1.0-1.1 NMU.
* Non-maintainer upload.
* libxcb1-dev needs a dependency on libpthread-stubs0-dev and versioned
  dependencies on libxau-dev and libxdmcp-dev, because they are needed by
  anything using xcb.pc (closes: #408409).
2007-05-21 18:50:30 -07:00
Jamey Sharp 7fdef0b363 Add version to Build-Depends on xsltproc, requiring 1.1.19-1 or newer, to get the fix for bug 398327. 2006-12-10 20:14:08 -08:00
Jamey Sharp e8b4dd86db Use a versioned Build-Depends on libpthread-stubs0-dev, to help buildds find it in experimental. 2006-12-10 20:09:10 -08:00
Jamey Sharp 78d16b3259 Install pkg-config files to /usr/lib/pkgconfig, not /usr/share/pkgconfig. 2006-12-10 16:33:41 -08:00
Josh Triplett 3c0727554e Add new library, -dev, and -dbg packages for libxcb-xinerama. 2006-11-26 00:12:15 -08:00
Josh Triplett a27bafa29a 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.
(cherry picked from commit 98e2a5617e)
2006-11-25 23:56:38 -08:00
Jamey Sharp 978e8839cb NetBSD doesn't have AI_ADDRCONFIG: use it only if it's available.
(cherry picked from commit 3360d0c79e)
2006-11-25 23:47:51 -08:00
Josh Triplett fe12aa7dbf XS-Vcs-Git, not XS-X-Vcs-Git. 2006-11-25 23:25:11 -08:00
Josh Triplett 9ead35f73b Remove debian/.gitignore; we don't build in a git tree, and it shouldn't ship. 2006-11-25 23:00:38 -08:00
Josh Triplett ca4d53a0c2 Update Debian packaging for 1.0 release. 2006-11-24 03:21:18 -08:00
Josh Triplett da5148ca5e Merge branch 'master' of git+ssh://git.freedesktop.org/git/xcb/libxcb into debian 2006-11-24 00:47:19 -08:00
Josh Triplett 27f98afc2f Release libxcb 1.0 2006-11-23 12:45:11 -08:00
Diego 'Flameeyes' Pettenò 11738b2af0 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.
2006-11-23 07:32:18 -08:00
Josh Triplett 30c768b322 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.
2006-11-23 02:11:56 -08:00
Josh Triplett af3a15838f 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.
2006-11-23 00:11:09 -08:00
Josh Triplett 608058ec80 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.
2006-11-22 22:47:15 -08:00
Josh Triplett 1aade6a15f 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.
2006-11-22 21:49:52 -08:00
Jamey Sharp 183c2ba4cc xcb-proto has no libraries or headers, so don't use XCBPROTO_CFLAGS or XCBPROTO_LIBS. 2006-11-22 21:27:41 -08:00
Jamey Sharp e54dfd73a9 Use pthread-stubs as needed, and list xdmcp in Requires.private when XCB is built to use it. 2006-11-22 20:29:04 -08:00
Josh Triplett 3de6ab7b78 Replace uses of "long" with uint32_t, and similar; fixes 64-bit bugs 2006-11-21 20:29:34 -08:00
Ian Osgood 7fbfebaa3f Fix IP6 work for FreeBSD/Mac. 2006-11-21 09:04:37 -08:00
Josh Triplett 684b8271a4 Support XDM-AUTHORIZATION-1 on IPv6
Commit by Jamey Sharp and Josh Triplett.
2006-11-21 00:57:49 -08:00
Josh Triplett d6abe93b06 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.
2006-11-20 23:28:03 -08:00
Josh Triplett 4a928de402 Only use AI_NUMERICSERV if defined. 2006-11-20 22:26:40 -08:00
Josh Triplett 907f8c8c49 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.
2006-11-20 22:16:24 -08:00
Josh Triplett 48776ce233 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.
2006-11-20 17:54:34 -08:00
Josh Triplett 6c3a8db3f6 Add new xcb_parse_display test cases, most related to IPv6 addresses 2006-11-20 17:48:49 -08:00
Jamey Sharp 3d9bb02012 Bug #5958: Also zero out the implicit pad byte in empty requests. 2006-11-19 23:59:25 -08:00
Jamey Sharp 3fa50020d2 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.
2006-11-19 20:59:10 -08:00
Jamey Sharp 16e7328b4a Bug #5958: zero out padding bytes in requests. 2006-11-19 17:56:32 -08:00
Jamey Sharp 6eee1707ea htmldir was introduced in autoconf 2.59c: set a reasonable value for earlier versions. 2006-11-19 00:34:06 -08:00
Jamey Sharp da4d56ef5a Provide xcb_prefetch_maximum_request_length counterpart to xcb_get_maximum_request_length. 2006-11-18 22:38:42 -08:00
Jamey Sharp aedfa1fe1d 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.
2006-11-18 22:35:53 -08:00
Jamey Sharp 44a2160c95 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.
2006-11-18 22:35:39 -08:00
Jamey Sharp 142fe9a6f2 Turn off Doxygen warnings for undocumented API, for now.
But warn about absent parameter documentation for functions that are
otherwise documented.
2006-11-18 16:51:01 -08:00
Jamey Sharp 3634299ecc 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.
2006-11-16 17:02:17 -08:00
TORRI Vincent 82762555a1 add Makefile.am for building/installing doxygen doc 2006-11-05 18:24:30 +01:00
TORRI Vincent f32c7131cc add xcb.doxygen to EXTRA_DIST 2006-11-05 18:22:55 +01:00
TORRI Vincent e3b7009dc0 Merge branch 'master' of git+ssh://git.freedesktop.org/git/xcb/libxcb 2006-11-05 18:21:34 +01:00
TORRI Vincent 0262cd63a2 add AM_CHECK_DOXYGEN macro 2006-11-05 18:20:45 +01:00
Jamey Sharp 32cd2d2047 Release libxcb 1.0 RC3 (0.9.93). 2006-11-02 18:04:16 -08:00
Jeremy Kolb jkolb@brandeis.edu 9d15516054 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.
2006-10-29 19:31:09 -05:00
TORRI Vincent 8eba8690ad fix doxy doc 2006-10-20 07:00:15 +02:00
Jamey Sharp a5529a4f2f Add doxygen config file.
Thanks to Jeremy Kolb <jkolb@brandeis.edu> for the initial version.
2006-10-19 00:13:50 -07:00
Jamey Sharp 094248405f Quit treating xproto specially: handle it like all the extensions. 2006-10-19 00:12:31 -07:00
Jamey Sharp 6bc0b37303 Ignore generated xinerama files. 2006-10-19 00:12:31 -07:00
Josh Triplett 5abb10d63f Also test xcb_parse_display with NULL argument and display in $DISPLAY 2006-10-16 05:11:57 -07:00
Jamey Sharp 9d619d14e3 Match only XCB-namespaced XID generators when converting to xcb_generate_id.
Thanks to Vincent Torri for pointing out that I screwed up. :-)
2006-10-15 12:34:30 -07:00
Zephaniah E. Hull 5ec55dc9c0 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
2006-10-14 19:52:23 -07:00
Jeremy Kolb c1504691ec Add library support for xcb-xinerama.
This is version 1.1 of the Xinerama (PanoramiX) extension.
2006-10-12 23:52:59 -04:00