Blame NEWS

Packit 071ada
Release 1.13.1 (2018-09-27)
Packit 071ada
===========================
Packit 071ada
* Don't flag extra reply in xcb_take_socket
Packit 071ada
Packit 071ada
Release 1.13 (2018-02-28)
Packit 071ada
=========================
Packit 071ada
* Add support for variable-sized lists of FDs
Packit 071ada
* Poll for events when blocking waiting for special events
Packit 071ada
* xinput: Enable XInput extension by default
Packit 071ada
* ge: Add explicit support for GenericEvent extension
Packit 071ada
* Fix documentation warnings from clang
Packit 071ada
* Cosmetic cleanups
Packit 071ada
Packit 071ada
Release 1.12 (2016-05-18)
Packit 071ada
=========================
Packit 071ada
* configure: Various fixes for dri3 and FD passing support
Packit 071ada
* configure: Don't report all the warning CFLAGS
Packit 071ada
* configure: Disable Xevie and Xprint by default
Packit 071ada
* Add support for various new constructs in the XML schema
Packit 071ada
* Make some functions also accept connections in an error state
Packit 071ada
* Never return NULL from xcb_get_setup()
Packit 071ada
* Use Requires.private in .pc files to avoid overlinking
Packit 071ada
* Fix align-pads for switches which start at unaligned positions
Packit 071ada
* Use anonymous structs for some nested structs
Packit 071ada
* Also generate accessors for variable-sized events and requests
Packit 071ada
* Improved python3 compatibility
Packit 071ada
* Generate C99 initializers instead of comments
Packit 071ada
* Various simplifications to the python code
Packit 071ada
* Fix line breaks in xcb-requests manual page
Packit 071ada
* Always close FDs in xcb_send_fd()
Packit 071ada
* Fix thread-safety issues with FD passing
Packit 071ada
* Add xcb_send_request_with_fds() and xcb_send_request_with_fds64()
Packit 071ada
* Fix endless loop with too many outstanding FDs to send
Packit 071ada
* Link with winsock library on MinGW
Packit 071ada
* Disable some unfinished API for some server-side code by default
Packit 071ada
* Use align-offsets computed by xcb-proto instead of low bits of pointers
Packit 071ada
* Fix iterator interaction with align padding
Packit 071ada
* Stop serializing padding by default
Packit 071ada
* Increase unix socket send buffer to at least 64KiB
Packit 071ada
Packit 071ada
Release 1.11.1 (2015-09-06)
Packit 071ada
===========================
Packit 071ada
* Expose 64-bit sequence numbers for XLib
Packit 071ada
* Fix some hangs related to xcb_wait_for_special_event()
Packit 071ada
Packit 071ada
Release 1.11 (2014-08-01)
Packit 071ada
=========================
Packit 071ada
* Force structures with 64-bit fields to be packed
Packit 071ada
* Add support for <pad align="n">
Packit 071ada
* Use X.org's build machinery from xorg-macros
Packit 071ada
* Fix leak with xcb_disconnect() and connections in an error state
Packit 071ada
* Make xcb_disconnect(NULL) safe
Packit 071ada
* Use less #include statements in generated code
Packit 071ada
* Automatically validate the Requires lines in our .pc.in files
Packit 071ada
* Fix a race that resulted in a failed assertion
Packit 071ada
* Improve launchd secure socket support
Packit 071ada
* Improve API documentation
Packit 071ada
* Remove trailing whitespaces
Packit 071ada
* c_client.py: prefix all monkey-patched fields with c_
Packit 071ada
* c_client.py: make the man page output deterministic
Packit 071ada
* c_client.py: remove useless generated comments
Packit 071ada
* xcb.h: add 'struct' before xcb_setup_t, xcb_query_extension_reply_t
Packit 071ada
Packit 071ada
Release 1.10 (2013-12-22)
Packit 071ada
=========================
Packit 071ada
* Bump libxcb-xkb SONAME due to ABI break introduced in 1.9.2
Packit 071ada
* Enable libxcb-xkb by default
Packit 071ada
* Bump libxcb-sync SONAME
Packit 071ada
* c_client.py: Fix _sizeof() functions
Packit 071ada
* c_client.py: Do not create pointers in unions
Packit 071ada
* c_client.py: Always initialize xcb_align_to
Packit 071ada
* Re-introduce xcb_ge_event_t (deprecated, xcb_ge_generic_event_t should be
Packit 071ada
  used instead)
Packit 071ada
* Fix alignment issues in FD passing code
Packit 071ada
* Fix poll() if POLLIN == ROLLRDNORM|POLLRDBAND
Packit 071ada
* Use /usr/spool/sockets/X11/ on HP-UX for UNIX sockets
Packit 071ada
* Make xsltproc optional
Packit 071ada
Packit 071ada
Release 1.9.3 (2013-11-07)
Packit 071ada
==========================
Packit 071ada
* Check if we need to define _XOPEN_SOURCE for struct msghdr.msg_control
Packit 071ada
* Add configure option to enable or disable fd passing with sendmsg
Packit 071ada
* Switch to using the CMSG_* macros for FD passing
Packit 071ada
* Initialize automake earlier (bugfix for #66413)
Packit 071ada
Packit 071ada
Release 1.9.2 (2013-11-07)
Packit 071ada
==========================
Packit 071ada
* Add Present extension
Packit 071ada
* Add DRI3 library
Packit 071ada
* Add event queue splitting
Packit 071ada
* Add support for receiving fds in replies
Packit 071ada
* Add xcb_send_fd API
Packit 071ada
* Remove xcb_ge_event_t from xcb.h
Packit 071ada
* c_client.py: Inject full_sequence into GE events
Packit 071ada
* c_client.py: Handle multiple expr. in a bitcase
Packit 071ada
Packit 071ada
Release 1.9.1 (2013-05-30)
Packit 071ada
==========================
Packit 071ada
* Fix python code to work with python-3
Packit 071ada
* Security fix for integer overflow in read_packet() [CVE-2013-2064]
Packit 071ada
Packit 071ada
Release 1.9 (2012-10-05)
Packit 071ada
========================
Packit 071ada
* Always include "config.h" at the start of all C source files.
Packit 071ada
* Add AC_USE_SYSTEM_EXTENSIONS to allow use of more system functionality
Packit 071ada
* Return connection failure if display string specifies non-existent screen
Packit 071ada
* c_client: Fix parallel-make issue creating 'man' directory
Packit 071ada
* xcb_connect: launchd: Don't fall back on tcp if $DISPLAY is a path to a launchd socket
Packit 071ada
* c_client.py: generate manpages
Packit 071ada
* Allow xcb_send_request with >MAX_IOV iovecs
Packit 071ada
* Add a .gitignore for src/man/
Packit 071ada
* Fix a multi-thread deadlock
Packit 071ada
Packit 071ada
Release 1.8.1 (2012-03-09)
Packit 071ada
==========================
Packit 071ada
- Fix a busy loop on BSD and Mac OS
Packit 071ada
- Bump xcb-proto requirement
Packit 071ada
- Fallback to TCP if no protocol is specified and the UNIX connection fails
Packit 071ada
- Update use of error_connection under WIN32 to _xcb_conn_ret_error()
Packit 071ada
- Fix build of xcb_auth.c with XDMCP on WIN32
Packit 071ada
- Revert "Fix include order with Xdmcp on WIN32"
Packit 071ada
- darwin: Use read(2) rather than recv(2)
Packit 071ada
- Add xkb_internals and xkb_issues to EXTRA_DIST.
Packit 071ada
Packit 071ada
Release 1.8 (2012-01-11)
Packit 071ada
========================
Packit 071ada
- xcb_disconnect: call shutdown() to force a disconnect
Packit 071ada
- Use special path to sockets when running under Solaris Trusted Extensions
Packit 071ada
- Remove unused DECnet code
Packit 071ada
- Add #include <sys/socket.h> to xcb_conn.c
Packit 071ada
- Make launchd code in xcb_util.c match surrounding code indent levels
Packit 071ada
- If protocol is "unix", use a Unix domain socket, not TCP
Packit 071ada
- Added more error states and removed global error_connection
Packit 071ada
- Handle XGE events with the "send event" flag
Packit 071ada
- added xcb_sumof() with restriction to uint8_t
Packit 071ada
- xkb: updated configure.ac/Makefile.am
Packit 071ada
- xkb: added pkg config file
Packit 071ada
- special case 'intermixed variable and fixed size fields': fixed reply side, needs testing
Packit 071ada
- added accessors for special cases
Packit 071ada
- Add support for building with Python 3
Packit 071ada
- Insert, not append explicit xcbgen dir python path
Packit 071ada
- xcb_request_check: Sync even if an event was read for this sequence.
Packit 071ada
- _xcb_conn_wait: Shut down the connection on unexpected poll() events.
Packit 071ada
- xcb_send_request: Send all requests using a common internal send_request.
Packit 071ada
- xcb_request_check: Hold the I/O lock while deciding to sync.
Packit 071ada
- xcb_discard_reply: Simplify by re-using poll_for_reply helper.
Packit 071ada
- xcb_in: Use 64-bit sequence numbers internally everywhere.
Packit 071ada
- Enable AM_SILENT_RULES on automake 1.11 or newer.
Packit 071ada
- Factor reader_list management out of wait_for_reply.
Packit 071ada
- Dequeue readers that can't receive any new responses.
Packit 071ada
- Delete the old c-client.xsl.
Packit 071ada
- Keep ALIGNOF definition out of the public namespace.
Packit 071ada
- darwin: Don't use poll() when expected to run on darwin10 and prior
Packit 071ada
- Add Win32
Packit 071ada
- Allow disconnecting connections that are in error state.
Packit 071ada
- Make xcb_take_socket keep flushing until idle
Packit 071ada
- Support pre-IPv6 systems (without getaddrinfo)
Packit 071ada
- Drop AI_ADDRCONFIG when resolving TCP addresses
Packit 071ada
- xcb_auth: Fix memory leak in _xcb_get_auth_info.
Packit 071ada
- Don't emit out-of-module sizeof definitions
Packit 071ada
- Clean up a couple of warnings in xprint
Packit 071ada
- Prevent reply waiters from being blocked.
Packit 071ada
- Prevent theoretical double free and leak on get_peer_sock_name.
Packit 071ada
- Introduce a variant of xcb_poll_for_event for examining event queue.
Packit 071ada
- xcb_take_socket: Document sequence wrap requirements
Packit 071ada
- Compute alignment correctly
Packit 071ada
- Fix a dead-lock due to xcb_poll_for_reply
Packit 071ada
Packit 071ada
Release 1.7 (2010-08-13)
Packit 071ada
========================
Packit 071ada
- Always wake up readers after writing
Packit 071ada
- Get rid of PATH_MAX and MAXPATHLEN
Packit 071ada
- Add ~ operator support in code generator
Packit 071ada
- xcb_open: Improve protocol/host parsing
Packit 071ada
- xcb_connect_to_display_with_auth_info: Fix memory leak
Packit 071ada
- Report which extensions are being built
Packit 071ada
Packit 071ada
Release 1.6 (2010-04-09)
Packit 071ada
========================
Packit 071ada
- darwin: xnu doesn't support poll on ttys on the master side
Packit 071ada
- Fix descriptor leak on memory error path
Packit 071ada
- Support xcb_discard_reply
Packit 071ada
- Open the X11 socket with close-on-exec flag
Packit 071ada
- Fix authentication on hpux and Hurd
Packit 071ada
Packit 071ada
Release 1.5 (2009-12-03)
Packit 071ada
========================
Packit 071ada
- setsockopt(SO_KEEPALIVE) on TCP display connections
Packit 071ada
- Add DRI2 support
Packit 071ada
- Fix check dependency
Packit 071ada
- Cygwin build fix: Add -no-undefined to libtool flags
Packit 071ada
Packit 071ada
Release 1.4 (2009-07-15)
Packit 071ada
========================
Packit 071ada
* Add majorCode, minorCode and resourceID fields to X generic error
Packit 071ada
* Fix precedence bug: wrong length for big-requests preceded by sync
Packit 071ada
* Fix libxcb-randr version info
Packit 071ada
Packit 071ada
Release 1.3 (2009-05-29)
Packit 071ada
========================
Packit 071ada
* Copy full IPv4 mapping (Bug #20665)
Packit 071ada
* Fix XID allocation
Packit 071ada
* Use poll() instead of select() when available
Packit 071ada
* Fix local socket connection on Hurd
Packit 071ada
* Fix XDM-AUTHORIZATION-1
Packit 071ada
* Disable Nagle on TCP socket
Packit 071ada
Packit 071ada
Release 1.2 (2009-02-17)
Packit 071ada
========================
Packit 071ada
* Stop packaging auto-generated C files into tarball.
Packit 071ada
Packit 071ada
Release 1.1.93 (2008-12-11)
Packit 071ada
===========================
Packit 071ada
Enhancements:
Packit 071ada
* Apple: Enable support for launchd DISPLAY socket
Packit 071ada
* Treat XIDs the same as other cardinal values.
Packit 071ada
Packit 071ada
Release 1.1.92 (2008-11-01)
Packit 071ada
===========================
Packit 071ada
Enhancements:
Packit 071ada
* Added small fix to support trailing fixed fields; also warning for non-pad fixed fields
Packit 071ada
* Fixed overly aggressive warning about fixed field following variable
Packit 071ada
* Added generation of extern "C" for compatibility with C++
Packit 071ada
* Remove libxcb-xlib and xcbxlib.h.
Packit 071ada
* Inline _xcb_lock_io, _xcb_unlock_io, and _xcb_wait_io.
Packit 071ada
* Track 64-bit sequence numbers internally.
Packit 071ada
* Use sequence number ranges in pending replies
Packit 071ada
* Remove duplicate XCB_EXTENSION calls for Composite extension
Packit 071ada
* Factorize m4 macros and add one to set X extensions
Packit 071ada
* Allow compile-time setting for XCB queue buffer size
Packit 071ada
* Support handing off socket write permission to external code.
Packit 071ada
* Add support for the abstract socket namespace under Linux
Packit 071ada
Packit 071ada
Bug fixes:
Packit 071ada
* Fix tiny memory leak in read_packet
Packit 071ada
* Fix some fd leaks in _xcb_open_*()
Packit 071ada
Packit 071ada
Release 1.1 (2007-11-04)
Packit 071ada
========================
Packit 071ada
Packit 071ada
This release requires xcb-proto 1.1, due to the addition of the
Packit 071ada
extension-multiword attribute to the XML schema.
Packit 071ada
Packit 071ada
This release contains several important bug fixes, summarized below. It
Packit 071ada
also contains a patch much like Novell's libxcb-sloppy-lock.diff.
Packit 071ada
Rationale from the commit message follows. The patch and this rationale
Packit 071ada
were authored by Jamey Sharp <jamey@minilop.net>, with agreement from
Packit 071ada
Josh Triplett <josh@freedesktop.org>.
Packit 071ada
Packit 071ada
    I strongly opposed proposals like this one for a long time.
Packit 071ada
    Originally I had a very good reason: libX11, when compiled to use
Packit 071ada
    XCB, would crash soon after a locking correctness violation, so it
Packit 071ada
    was better to have an informative assert failure than a mystifying
Packit 071ada
    crash soon after.
Packit 071ada
Packit 071ada
    It took some time for me to realize that I'd changed the libX11
Packit 071ada
    implementation (for unrelated reasons) so that it could survive most
Packit 071ada
    invalid locking situations, as long as it wasn't actually being used
Packit 071ada
    from multiple threads concurrently.
Packit 071ada
Packit 071ada
    The other thing that has changed is that most of the code with
Packit 071ada
    incorrect locking has now been fixed. The value of the assert is
Packit 071ada
    accordingly lower.
Packit 071ada
Packit 071ada
    However, remaining broken callers do need to be fixed. That's why
Packit 071ada
    libXCB will still noisily print a stacktrace (if possible) on each
Packit 071ada
    assertion failure, even when assert isn't actually invoked to
Packit 071ada
    abort() the program; and that's why aborting is still default. This
Packit 071ada
    environment variable is provided only for use as a temporary
Packit 071ada
    workaround for broken applications.
Packit 071ada
Packit 071ada
Enhancements:
Packit 071ada
* Print a backtrace, if possible, on locking assertion failures.
Packit 071ada
* Skip abort() on locking assertions if LIBXCB_ALLOW_SLOPPY_LOCK is set.
Packit 071ada
* xcb_poll_for_event: Return already-read events before reading again.
Packit 071ada
* Output a configuration summary at the end of ./configure.
Packit 071ada
Packit 071ada
Bug fixes:
Packit 071ada
* Don't hold the xlib-xcb lock while sleeping: that allows deadlock.
Packit 071ada
* Allow unix:<screen> style display names again.
Packit 071ada
* Bug #9119: test xcb_popcount
Packit 071ada
* Fix unit tests for FreeBSD
Packit 071ada
* NetBSD doesn't have AI_ADDRCONFIG: use it only if it's available.
Packit 071ada
* Require libXau >= 0.99.2; earlier versions have a broken .pc file
Packit 071ada
* Use substitition variables in xcb-xinerama.pc.in
Packit 071ada
* Update autogen.sh to one that does objdir != srcdir
Packit 071ada
* Add tools/* and autogen.sh to EXTRA_DIST.
Packit 071ada
* Doxygen can now be fully disabled if desired.
Packit 071ada
Packit 071ada
Documentation improvements:
Packit 071ada
* Many fixes and updates to the tutorial.
Packit 071ada
* Iterators, requests, and replies get partial Doxygen documentation.
Packit 071ada
Packit 071ada
Packit 071ada
Release 1.0 (2006-11-23)
Packit 071ada
========================
Packit 071ada
Packit 071ada
The "Thanksgiving" release: We feel thankful to have it released.  Five years
Packit 071ada
have passed since XCB's initial commit on September 3rd, 2001:
Packit 071ada
    <http://gitweb.freedesktop.org/?p=xcb.git;a=commit;h=09e54c4a3c>
Packit 071ada
Packit 071ada
* Support IPv6.  XCB now supports displays with IPv6 addresses, with or without
Packit 071ada
  enclosing square brackets, or with hosts which resolve to IPv6 addresses, by
Packit 071ada
  using getaddrinfo instead of gethostbyname, and by including support for
Packit 071ada
  authentication for such connections.  This allows such displays as "::1:1.1".
Packit 071ada
Packit 071ada
* XCB now uses the libpthread-stubs, to properly support optional use of
Packit 071ada
  pthreads even on platforms which do not have all the necessary pthread stubs
Packit 071ada
  in libc or otherwise available by default.
Packit 071ada
Packit 071ada
* Switch from the old AM_PATH_CHECK macro to pkg-config.  check 0.9.4 is now
Packit 071ada
  required to build XCB's unit tests.  The version that we were requiring was
Packit 071ada
  not actually new enough to let our unit tests compile, and the AM_PATH_CHECK
Packit 071ada
  macro is now considered deprecated.  We know that versions of check using
Packit 071ada
  pkg-config are new enough to work, and the check dependency was optional
Packit 071ada
  anyway, so we've dropped support for older versions.
Packit 071ada
Packit 071ada
* Provide a xcb_prefetch_maximum_request_length counterpart to
Packit 071ada
  xcb_get_maximum_request_length.
Packit 071ada
Packit 071ada
* Fix Bug #5958: zero out padding bytes in requests.
Packit 071ada
Packit 071ada
* Change xcb_connect to pass the display number to _xcb_get_auth_info, which
Packit 071ada
  passes it to get_authptr.  This allows get_authptr to stop hacking the
Packit 071ada
  display number out of the sockaddrs of various address families, such as
Packit 071ada
  port - X_TCP_PORT, or the number after the last X in the UNIX socket path.
Packit 071ada
Packit 071ada
* Remove --with-opt and --with-debug options from configure.ac; configure
Packit 071ada
  supports the use of custom CFLAGS, so please use that instead.
Packit 071ada
Packit 071ada
* Reove support for the <localfield> tag in protocol descriptions, since they
Packit 071ada
  no longer use it, and since new protocol descriptions should not need it
Packit 071ada
  either.
Packit 071ada
Packit 071ada
* xcb-proto has no libraries or headers, so don't use XCBPROTO_CFLAGS or
Packit 071ada
  XCBPROTO_LIBS.
Packit 071ada
Packit 071ada
* XCB builds which use xdmcp now include it in Requires.private, to support
Packit 071ada
  static linking.
Packit 071ada
Packit 071ada
* Replace "long" with uint32_t when used for a 32-bit quantity
Packit 071ada
Packit 071ada
* Various enhancements to the generation of documentation with Doxygen:
Packit 071ada
  * Check for doxygen in configure.ac
Packit 071ada
  * Fix some Doxygen warnings.
Packit 071ada
  * Install documentation.
Packit 071ada
  * Handle out-of-tree builds, with srcdir != builddir.  xcb.doxygen now gets
Packit 071ada
    generated from xcb.doxygen.in, so that it can use top_builddir and
Packit 071ada
    top_srcdir to find source and to output documentation.
Packit 071ada
  * Fill in PROJECT_NUMBER from @VERSION@, now that we have it readily
Packit 071ada
    available via autoconf.
Packit 071ada
Packit 071ada
Packit 071ada
Release 1.0 RC3 (2006-11-02)
Packit 071ada
============================
Packit 071ada
Packit 071ada
Note: Version 0.9.4 of the test suite tool "check" provides a broken
Packit 071ada
version of the AM_PATH_CHECK macro, which causes autoconf to fail due to
Packit 071ada
insufficient quoting on the macro names it prints in its deprecation
Packit 071ada
message. We have written a patch to fix this problem, available at:
Packit 071ada
<http://bugs.debian.org/cgi-bin/bugreport.cgi/check-m4-am-path-check-use-quadrigraphs-in-macro-names-to-unbreak-autoconf.patch?bug=395466;msg=20;att=1>
Packit 071ada
Version 0.9.4-2 of the Debian package for check includes this patch.
Packit 071ada
Users of other distributions who want to re-autotool libxcb will need to
Packit 071ada
apply this patch, use an older version of check, or wait for a fixed
Packit 071ada
upstream version. This bug does not affect users who use the distributed
Packit 071ada
tarballs and do not re-autotool.
Packit 071ada
Packit 071ada
* Add library support for xcb-xinerama, using new protocol description
Packit 071ada
  from xcb-proto.
Packit 071ada
* In the generated protocol code, define and use constants for opcode
Packit 071ada
  numbers rather than hard-coding them.
Packit 071ada
* In the API conversion script, match only XCB-namespaced XID generators
Packit 071ada
  when converting to xcb_generate_id.
Packit 071ada
* Quit treating xproto specially in Makefile.am: handle it like all the
Packit 071ada
  extensions.
Packit 071ada
* Generate Doxygen documentation comments in the protocol stubs, and
Packit 071ada
  provide a Doxygen config file for building HTML documentation for XCB.
Packit 071ada
* Add note to xcbxlib.h that nothing except Xlib/XCB should use it.
Packit 071ada
* Extend test suite to test xcb_parse_display with NULL argument and
Packit 071ada
  display in $DISPLAY.
Packit 071ada
Packit 071ada
Packit 071ada
Release 1.0 RC2 (2006-10-07)
Packit 071ada
============================
Packit 071ada
Packit 071ada
API changes
Packit 071ada
-----------
Packit 071ada
Packit 071ada
In our announcement of XCB 1.0 RC1, we proposed two API changes for
Packit 071ada
community feedback:
Packit 071ada
Packit 071ada
    We would greatly appreciate API review in this final release
Packit 071ada
    candidate period. We've had some limited feedback that our attempts
Packit 071ada
    to impose static type safety on XIDs in C pose more a hindrance than
Packit 071ada
    a help, so we would appreciate discussion over whether this
Packit 071ada
    constitutes a "serious issue with the API". Some question also
Packit 071ada
    remains of whether xcb_poll_for_event should have the out-parameter
Packit 071ada
    'error', now that XCB has a more uniform mechanism for reporting
Packit 071ada
    connection errors. Speak now on these points or leave us alone. ;-)
Packit 071ada
Packit 071ada
Since we've received feedback agreeing with our proposed changes, and no
Packit 071ada
objections or requests to keep the existing API, we made both changes
Packit 071ada
and bumped the soname to libxcb.so.1.0.0 in preparation for the release
Packit 071ada
of XCB 1.0.
Packit 071ada
Packit 071ada
* Remove XID wrapper structures and replace them with uint32_t typedefs.
Packit 071ada
  XID union types like xcb_drawable_t and xcb_fontable_t also become
Packit 071ada
  uint32_t typedefs. The API conversion script now replaces xcb_*_new
Packit 071ada
  with calls directly to xcb_generate_id.  This change makes
Packit 071ada
  xcb_generate_id part of the client API rather than the extension API,
Packit 071ada
  so move xcb_generate_id from xcbext.h to xcb.h.
Packit 071ada
Packit 071ada
* Remove the 'int *error' out-parameter for xcb_poll_for_event. 
Packit 071ada
  xcb_poll_for_event now shuts down the xcb_connection_t on fatal
Packit 071ada
  errors; use xcb_connection_has_error to check.
Packit 071ada
Packit 071ada
The Xlib-specific API in libxcb-xlib also changed:
Packit 071ada
Packit 071ada
* Stop exposing the XCB IO lock for Xlib's benefit, by removing
Packit 071ada
  xcb_get_io_lock from the Xlib-specific XCB API; instead, libxcb-xlib
Packit 071ada
  now provides xcb_xlib_lock and xcb_xlib_unlock.
Packit 071ada
Packit 071ada
Code generation changes
Packit 071ada
-----------------------
Packit 071ada
Packit 071ada
* The code generator no longer implicitly imports xproto for extensions.
Packit 071ada
  xcb-proto 1.0 RC2 includes the corresponding change to explicitly
Packit 071ada
  import xproto in extensions that need it
Packit 071ada
Packit 071ada
* The generated protocol headers now declare "struct foo", "union foo"
Packit 071ada
  or "enum foo", not just the typedef "foo" of an unnamed
Packit 071ada
  struct/union/enum type.
Packit 071ada
Packit 071ada
Bug Fixes
Packit 071ada
---------
Packit 071ada
Packit 071ada
* Make Plan 7 'checked' requests work correctly.
Packit 071ada
Packit 071ada
Documentation improvements
Packit 071ada
--------------------------
Packit 071ada
Packit 071ada
* Document xcb_generate_id.
Packit 071ada
Packit 071ada
* Tutorial enhancements.
Packit 071ada
Packit 071ada
Packit 071ada
Release 1.0 RC1 (2006-09-25)
Packit 071ada
============================
Packit 071ada
Packit 071ada
The Great XCB Renaming
Packit 071ada
----------------------
Packit 071ada
Packit 071ada
Rename API to follow a new naming convention:
Packit 071ada
Packit 071ada
* XCB_CONSTANTS_UPPERCASE_WITH_UNDERSCORES
Packit 071ada
* xcb_functions_lowercase_with_underscores
Packit 071ada
* xcb_types_lowercase_with_underscores_and_suffix_t
Packit 071ada
* expand all abbreviations like "req", "rep", and "iter"
Packit 071ada
Packit 071ada
Word boundaries for the names in the protocol descriptions fall:
Packit 071ada
Packit 071ada
* Wherever the protocol descriptions already have an underscore
Packit 071ada
* Between a lowercase letter and a subsequent uppercase letter
Packit 071ada
* Before the last uppercase letter in a string of uppercase letters
Packit 071ada
  followed by a lowercase letter (such as in LSBFirst between LSB and
Packit 071ada
  First)
Packit 071ada
* Before and after a string of digits (with exceptions for sized types
Packit 071ada
  like xcb_char2b_t and xcb_glx_float32_t to match the stdint.h
Packit 071ada
  convention)
Packit 071ada
Packit 071ada
Also fix up some particular naming issues:
Packit 071ada
Packit 071ada
* Rename shape_op and shape_kind to drop the "shape_" prefix, since
Packit 071ada
  otherwise these types end up as xcb_shape_shape_{op,kind}_t.
Packit 071ada
* Remove leading underscores from enums in the GLX protocol description,
Packit 071ada
  previously needed to ensure a word separator, but now redundant.
Packit 071ada
Packit 071ada
This renaming breaks code written for the previous API naming
Packit 071ada
convention. The scripts in XCB's tools directory will convert code
Packit 071ada
written for the old API to use the new API; they work well enough that
Packit 071ada
we used them to convert the non-program-generated code in XCB, and when
Packit 071ada
run on the old program-generated code, they almost exactly reproduce the
Packit 071ada
new program-generated code (modulo whitespace and bugs in the old code
Packit 071ada
generator).
Packit 071ada
Packit 071ada
Authors: Vincent Torri, Thomas Hunger, Josh Triplett
Packit 071ada
Packit 071ada
In addition to the API renaming, the library SONAMEs have changed to
Packit 071ada
libxcb.so and libxcb-extname.so. The library major version remains at 0,
Packit 071ada
to become version 1 before 1.0 is released; the SONAME lowercasing means
Packit 071ada
that this will not conflict with XCB 0.9 libraries.
Packit 071ada
Packit 071ada
The header files have moved from /usr/include/X11/XCB/ to
Packit 071ada
/usr/include/xcb/. The XML-XCB protocol descriptions have moved to
Packit 071ada
/usr/share/xcb, with extension descriptions no longer relegated to an
Packit 071ada
extensions/ subdirectory. The API conversion script api_conv.pl will fix
Packit 071ada
references to the header files, and packages using pkg-config will
Packit 071ada
automatically use the new library names.
Packit 071ada
Packit 071ada
Error handling Plan 7
Packit 071ada
---------------------
Packit 071ada
Packit 071ada
All request functions now come in an "unchecked" and "checked" variant.
Packit 071ada
The checked variant allows callers to handle errors inline where they
Packit 071ada
obtain the reply, or by calling xcb_request_check for requests with no
Packit 071ada
reply. The unchecked variant uses the event queue for errors. Requests
Packit 071ada
with replies default to checked, because the caller must already make a
Packit 071ada
function call to retrieve the reply and can see the error at that time;
Packit 071ada
the unchecked variant uses the suffix _unchecked. Requests without
Packit 071ada
replies default to unchecked, because the caller will not necessarily
Packit 071ada
expect to handle a response, and the checked variant uses the suffix
Packit 071ada
_checked.
Packit 071ada
Packit 071ada
Connection error handling
Packit 071ada
-------------------------
Packit 071ada
Packit 071ada
Fatal connection errors now put the xcb_connection_t object into an
Packit 071ada
error state, at which point all further operations on that connection
Packit 071ada
will fail. Callers can use the new xcb_connection_has_error function to
Packit 071ada
check for this state in a connection. Functions that return a
Packit 071ada
connection, such as the xcb_connect function, may instead return an
Packit 071ada
xcb_connection_t already in an error state.
Packit 071ada
Packit 071ada
In the future we expect to add additional API for getting more
Packit 071ada
information about the error condition that caused the connection to get
Packit 071ada
into an error state.
Packit 071ada
Packit 071ada
Smaller API changes
Packit 071ada
-------------------
Packit 071ada
Packit 071ada
All functions that have been marked 'deprecated' up to now have been
Packit 071ada
removed for this release. After XCB 1.0 is released, functions marked
Packit 071ada
'deprecated' will be preserved until the end of time to maintain
Packit 071ada
compatibility.
Packit 071ada
Packit 071ada
XCB no longer provides a sync function. Most callers of this function
Packit 071ada
should use xcb_flush instead, which usually provides the intended
Packit 071ada
functionality and does not require a round-trip to the server. If you
Packit 071ada
really need this functionality, either use xcb_get_input_focus like sync
Packit 071ada
used to do, or use the xcb_aux_sync function from the xcb-aux library in
Packit 071ada
xcb-util. However, note that we do not consider the libraries in
Packit 071ada
xcb-util remotely stable yet.
Packit 071ada
Packit 071ada
XCB no longer provides xcb_[extension_name]_init functions for each
Packit 071ada
extension. These functions previously caused XCB to issue and process a
Packit 071ada
QueryExtension request. Callers should now directly call
Packit 071ada
xcb_get_extension_data on the xcb_[extension_name]_id, or use
Packit 071ada
xcb_prefetch_extension_data if they do not need to force a round-trip
Packit 071ada
immediately.
Packit 071ada
Packit 071ada
The compatibility functions in xcbxlib.h, provided solely for use by
Packit 071ada
Xlib/XCB, now exist in a separate library libxcb-xlib. We don't want to
Packit 071ada
have to change the libxcb soname if we later change or remove the Xlib
Packit 071ada
compatibility functions, and nothing except Xlib/XCB should ever use
Packit 071ada
them. (Applications which use Xlib/XCB do not need this library either;
Packit 071ada
Xlib/XCB only uses it internally.)
Packit 071ada
Packit 071ada
The descriptions of several extensions have been updated to match the
Packit 071ada
latest versions implemented in the X.org X server.
Packit 071ada
Packit 071ada
GIT Repository split
Packit 071ada
--------------------
Packit 071ada
Packit 071ada
Previously, several XCB-related projects all existed under the umbrella
Packit 071ada
of a single monolithic GIT repository with per-project subdirectories.
Packit 071ada
We have split this repository into individual per-project repositories.
Packit 071ada
Packit 071ada
Josh Triplett and Jamey Sharp wrote a tool called git-split to
Packit 071ada
accomplish this repository split. git-split reconstructs the history of
Packit 071ada
a sub-project previously stored in a subdirectory of a larger
Packit 071ada
repository. It constructs new commit objects based on the existing tree
Packit 071ada
objects for the subtree in each commit, and discards commits which do
Packit 071ada
not affect the history of the sub-project, as well as merges made
Packit 071ada
unnecessary due to these discarded commits.
Packit 071ada
Packit 071ada
We would like to acknowledge the work of the gobby team in creating a
Packit 071ada
collaborative editor which greatly aided the development of git-split
Packit 071ada
(as well as these release notes).
Packit 071ada
Packit 071ada
Build and implementation fixes
Packit 071ada
------------------------------
Packit 071ada
Packit 071ada
XCB no longer needs proto/x11 from X.org; the XCB header xproto.h
Packit 071ada
provides the definitions from X.h, named according to XCB conventions.
Packit 071ada
Packit 071ada
XCB should now build with non-GNU implementations of Make.
Packit 071ada
Packit 071ada
XCB properly handles 32-bit wrap of sequence numbers, and thus now
Packit 071ada
supports issuing more than 2**32 requests in one connection.
Packit 071ada
Packit 071ada
Fixed bugs #7001, #7261.