NEWS revision 245c37e9
1245c37e9SmrgRelease 1.13 (2018-02-28) 2245c37e9Smrg========================= 3245c37e9Smrg* Add support for variable-sized lists of FDs 4245c37e9Smrg* Poll for events when blocking waiting for special events 5245c37e9Smrg* xinput: Enable XInput extension by default 6245c37e9Smrg* ge: Add explicit support for GenericEvent extension 7245c37e9Smrg* Fix documentation warnings from clang 8245c37e9Smrg* Cosmetic cleanups 9245c37e9Smrg 107204935cSmrgRelease 1.12 (2016-05-18) 117204935cSmrg========================= 127204935cSmrg* configure: Various fixes for dri3 and FD passing support 137204935cSmrg* configure: Don't report all the warning CFLAGS 147204935cSmrg* configure: Disable Xevie and Xprint by default 157204935cSmrg* Add support for various new constructs in the XML schema 167204935cSmrg* Make some functions also accept connections in an error state 177204935cSmrg* Never return NULL from xcb_get_setup() 187204935cSmrg* Use Requires.private in .pc files to avoid overlinking 197204935cSmrg* Fix align-pads for switches which start at unaligned positions 207204935cSmrg* Use anonymous structs for some nested structs 217204935cSmrg* Also generate accessors for variable-sized events and requests 227204935cSmrg* Improved python3 compatibility 237204935cSmrg* Generate C99 initializers instead of comments 247204935cSmrg* Various simplifications to the python code 257204935cSmrg* Fix line breaks in xcb-requests manual page 267204935cSmrg* Always close FDs in xcb_send_fd() 277204935cSmrg* Fix thread-safety issues with FD passing 287204935cSmrg* Add xcb_send_request_with_fds() and xcb_send_request_with_fds64() 297204935cSmrg* Fix endless loop with too many outstanding FDs to send 307204935cSmrg* Link with winsock library on MinGW 317204935cSmrg* Disable some unfinished API for some server-side code by default 327204935cSmrg* Use align-offsets computed by xcb-proto instead of low bits of pointers 337204935cSmrg* Fix iterator interaction with align padding 347204935cSmrg* Stop serializing padding by default 357204935cSmrg* Increase unix socket send buffer to at least 64KiB 367204935cSmrg 37709d36bbSmrgRelease 1.11.1 (2015-09-06) 38709d36bbSmrg=========================== 39709d36bbSmrg* Expose 64-bit sequence numbers for XLib 40709d36bbSmrg* Fix some hangs related to xcb_wait_for_special_event() 41709d36bbSmrg 421c7386f4SmrgRelease 1.11 (2014-08-01) 431c7386f4Smrg========================= 441c7386f4Smrg* Force structures with 64-bit fields to be packed 451c7386f4Smrg* Add support for <pad align="n"> 461c7386f4Smrg* Use X.org's build machinery from xorg-macros 471c7386f4Smrg* Fix leak with xcb_disconnect() and connections in an error state 481c7386f4Smrg* Make xcb_disconnect(NULL) safe 491c7386f4Smrg* Use less #include statements in generated code 501c7386f4Smrg* Automatically validate the Requires lines in our .pc.in files 511c7386f4Smrg* Fix a race that resulted in a failed assertion 521c7386f4Smrg* Improve launchd secure socket support 531c7386f4Smrg* Improve API documentation 541c7386f4Smrg* Remove trailing whitespaces 551c7386f4Smrg* c_client.py: prefix all monkey-patched fields with c_ 561c7386f4Smrg* c_client.py: make the man page output deterministic 571c7386f4Smrg* c_client.py: remove useless generated comments 581c7386f4Smrg* xcb.h: add 'struct' before xcb_setup_t, xcb_query_extension_reply_t 591c7386f4Smrg 601016ad83SmrgRelease 1.10 (2013-12-22) 611016ad83Smrg========================= 621016ad83Smrg* Bump libxcb-xkb SONAME due to ABI break introduced in 1.9.2 631016ad83Smrg* Enable libxcb-xkb by default 641016ad83Smrg* Bump libxcb-sync SONAME 651016ad83Smrg* c_client.py: Fix _sizeof() functions 661016ad83Smrg* c_client.py: Do not create pointers in unions 671016ad83Smrg* c_client.py: Always initialize xcb_align_to 681016ad83Smrg* Re-introduce xcb_ge_event_t (deprecated, xcb_ge_generic_event_t should be 691016ad83Smrg used instead) 701016ad83Smrg* Fix alignment issues in FD passing code 711016ad83Smrg* Fix poll() if POLLIN == ROLLRDNORM|POLLRDBAND 721016ad83Smrg* Use /usr/spool/sockets/X11/ on HP-UX for UNIX sockets 731016ad83Smrg* Make xsltproc optional 741016ad83Smrg 751016ad83SmrgRelease 1.9.3 (2013-11-07) 761016ad83Smrg========================== 771016ad83Smrg* Check if we need to define _XOPEN_SOURCE for struct msghdr.msg_control 781016ad83Smrg* Add configure option to enable or disable fd passing with sendmsg 791016ad83Smrg* Switch to using the CMSG_* macros for FD passing 801016ad83Smrg* Initialize automake earlier (bugfix for #66413) 811016ad83Smrg 821016ad83SmrgRelease 1.9.2 (2013-11-07) 8308c70cfbSmrg========================== 841016ad83Smrg* Add Present extension 851016ad83Smrg* Add DRI3 library 861016ad83Smrg* Add event queue splitting 871016ad83Smrg* Add support for receiving fds in replies 881016ad83Smrg* Add xcb_send_fd API 891016ad83Smrg* Remove xcb_ge_event_t from xcb.h 901016ad83Smrg* c_client.py: Inject full_sequence into GE events 911016ad83Smrg* c_client.py: Handle multiple expr. in a bitcase 9208c70cfbSmrg 931016ad83SmrgRelease 1.9.1 (2013-05-30) 941016ad83Smrg========================== 9508c70cfbSmrg* Fix python code to work with python-3 9608c70cfbSmrg* Security fix for integer overflow in read_packet() [CVE-2013-2064] 9708c70cfbSmrg 9821298544SmrgRelease 1.9 (2012-10-05) 9921298544Smrg======================== 10021298544Smrg* Always include "config.h" at the start of all C source files. 10121298544Smrg* Add AC_USE_SYSTEM_EXTENSIONS to allow use of more system functionality 10221298544Smrg* Return connection failure if display string specifies non-existent screen 10321298544Smrg* c_client: Fix parallel-make issue creating 'man' directory 10421298544Smrg* xcb_connect: launchd: Don't fall back on tcp if $DISPLAY is a path to a launchd socket 10521298544Smrg* c_client.py: generate manpages 10621298544Smrg* Allow xcb_send_request with >MAX_IOV iovecs 10721298544Smrg* Add a .gitignore for src/man/ 10821298544Smrg* Fix a multi-thread deadlock 10921298544Smrg 11021298544SmrgRelease 1.8.1 (2012-03-09) 11121298544Smrg========================== 11221298544Smrg- Fix a busy loop on BSD and Mac OS 11321298544Smrg- Bump xcb-proto requirement 11421298544Smrg- Fallback to TCP if no protocol is specified and the UNIX connection fails 11521298544Smrg- Update use of error_connection under WIN32 to _xcb_conn_ret_error() 11621298544Smrg- Fix build of xcb_auth.c with XDMCP on WIN32 11721298544Smrg- Revert "Fix include order with Xdmcp on WIN32" 11821298544Smrg- darwin: Use read(2) rather than recv(2) 11921298544Smrg- Add xkb_internals and xkb_issues to EXTRA_DIST. 12021298544Smrg 12121298544SmrgRelease 1.8 (2012-01-11) 12221298544Smrg======================== 12321298544Smrg- xcb_disconnect: call shutdown() to force a disconnect 12421298544Smrg- Use special path to sockets when running under Solaris Trusted Extensions 12521298544Smrg- Remove unused DECnet code 12621298544Smrg- Add #include <sys/socket.h> to xcb_conn.c 12721298544Smrg- Make launchd code in xcb_util.c match surrounding code indent levels 12821298544Smrg- If protocol is "unix", use a Unix domain socket, not TCP 12921298544Smrg- Added more error states and removed global error_connection 13021298544Smrg- Handle XGE events with the "send event" flag 13121298544Smrg- added xcb_sumof() with restriction to uint8_t 13221298544Smrg- xkb: updated configure.ac/Makefile.am 13321298544Smrg- xkb: added pkg config file 13421298544Smrg- special case 'intermixed variable and fixed size fields': fixed reply side, needs testing 13521298544Smrg- added accessors for special cases 13621298544Smrg- Add support for building with Python 3 13721298544Smrg- Insert, not append explicit xcbgen dir python path 13821298544Smrg- xcb_request_check: Sync even if an event was read for this sequence. 13921298544Smrg- _xcb_conn_wait: Shut down the connection on unexpected poll() events. 14021298544Smrg- xcb_send_request: Send all requests using a common internal send_request. 14121298544Smrg- xcb_request_check: Hold the I/O lock while deciding to sync. 14221298544Smrg- xcb_discard_reply: Simplify by re-using poll_for_reply helper. 14321298544Smrg- xcb_in: Use 64-bit sequence numbers internally everywhere. 14421298544Smrg- Enable AM_SILENT_RULES on automake 1.11 or newer. 14521298544Smrg- Factor reader_list management out of wait_for_reply. 14621298544Smrg- Dequeue readers that can't receive any new responses. 14721298544Smrg- Delete the old c-client.xsl. 14821298544Smrg- Keep ALIGNOF definition out of the public namespace. 14921298544Smrg- darwin: Don't use poll() when expected to run on darwin10 and prior 15021298544Smrg- Add Win32 15121298544Smrg- Allow disconnecting connections that are in error state. 15221298544Smrg- Make xcb_take_socket keep flushing until idle 15321298544Smrg- Support pre-IPv6 systems (without getaddrinfo) 15421298544Smrg- Drop AI_ADDRCONFIG when resolving TCP addresses 15521298544Smrg- xcb_auth: Fix memory leak in _xcb_get_auth_info. 15621298544Smrg- Don't emit out-of-module sizeof definitions 15721298544Smrg- Clean up a couple of warnings in xprint 15821298544Smrg- Prevent reply waiters from being blocked. 15921298544Smrg- Prevent theoretical double free and leak on get_peer_sock_name. 16021298544Smrg- Introduce a variant of xcb_poll_for_event for examining event queue. 16121298544Smrg- xcb_take_socket: Document sequence wrap requirements 16221298544Smrg- Compute alignment correctly 16321298544Smrg- Fix a dead-lock due to xcb_poll_for_reply 16421298544Smrg 165b20a2039SmrgRelease 1.7 (2010-08-13) 166b20a2039Smrg======================== 167b20a2039Smrg- Always wake up readers after writing 168b20a2039Smrg- Get rid of PATH_MAX and MAXPATHLEN 169b20a2039Smrg- Add ~ operator support in code generator 170b20a2039Smrg- xcb_open: Improve protocol/host parsing 171b20a2039Smrg- xcb_connect_to_display_with_auth_info: Fix memory leak 172b20a2039Smrg- Report which extensions are being built 173b20a2039Smrg 174602e473dSmrgRelease 1.6 (2010-04-09) 175602e473dSmrg======================== 176602e473dSmrg- darwin: xnu doesn't support poll on ttys on the master side 177602e473dSmrg- Fix descriptor leak on memory error path 178602e473dSmrg- Support xcb_discard_reply 179602e473dSmrg- Open the X11 socket with close-on-exec flag 180602e473dSmrg- Fix authentication on hpux and Hurd 181602e473dSmrg 182602e473dSmrgRelease 1.5 (2009-12-03) 183602e473dSmrg======================== 184602e473dSmrg- setsockopt(SO_KEEPALIVE) on TCP display connections 185602e473dSmrg- Add DRI2 support 186602e473dSmrg- Fix check dependency 187602e473dSmrg- Cygwin build fix: Add -no-undefined to libtool flags 188602e473dSmrg 189602e473dSmrgRelease 1.4 (2009-07-15) 190602e473dSmrg======================== 191602e473dSmrg* Add majorCode, minorCode and resourceID fields to X generic error 192602e473dSmrg* Fix precedence bug: wrong length for big-requests preceded by sync 193602e473dSmrg* Fix libxcb-randr version info 194602e473dSmrg 195602e473dSmrgRelease 1.3 (2009-05-29) 196602e473dSmrg======================== 197602e473dSmrg* Copy full IPv4 mapping (Bug #20665) 198602e473dSmrg* Fix XID allocation 199602e473dSmrg* Use poll() instead of select() when available 200602e473dSmrg* Fix local socket connection on Hurd 201602e473dSmrg* Fix XDM-AUTHORIZATION-1 202602e473dSmrg* Disable Nagle on TCP socket 203602e473dSmrg 204602e473dSmrgRelease 1.2 (2009-02-17) 205602e473dSmrg======================== 206602e473dSmrg* Stop packaging auto-generated C files into tarball. 207602e473dSmrg 208602e473dSmrgRelease 1.1.93 (2008-12-11) 209602e473dSmrg=========================== 210602e473dSmrgEnhancements: 211602e473dSmrg* Apple: Enable support for launchd DISPLAY socket 212602e473dSmrg* Treat XIDs the same as other cardinal values. 213602e473dSmrg 214602e473dSmrgRelease 1.1.92 (2008-11-01) 215602e473dSmrg=========================== 216602e473dSmrgEnhancements: 217602e473dSmrg* Added small fix to support trailing fixed fields; also warning for non-pad fixed fields 218602e473dSmrg* Fixed overly aggressive warning about fixed field following variable 219602e473dSmrg* Added generation of extern "C" for compatibility with C++ 220602e473dSmrg* Remove libxcb-xlib and xcbxlib.h. 221602e473dSmrg* Inline _xcb_lock_io, _xcb_unlock_io, and _xcb_wait_io. 222602e473dSmrg* Track 64-bit sequence numbers internally. 223602e473dSmrg* Use sequence number ranges in pending replies 224602e473dSmrg* Remove duplicate XCB_EXTENSION calls for Composite extension 225602e473dSmrg* Factorize m4 macros and add one to set X extensions 226602e473dSmrg* Allow compile-time setting for XCB queue buffer size 227602e473dSmrg* Support handing off socket write permission to external code. 228602e473dSmrg* Add support for the abstract socket namespace under Linux 229602e473dSmrg 230602e473dSmrgBug fixes: 231602e473dSmrg* Fix tiny memory leak in read_packet 232602e473dSmrg* Fix some fd leaks in _xcb_open_*() 233602e473dSmrg 234602e473dSmrgRelease 1.1 (2007-11-04) 235602e473dSmrg======================== 236602e473dSmrg 237602e473dSmrgThis release requires xcb-proto 1.1, due to the addition of the 238602e473dSmrgextension-multiword attribute to the XML schema. 239602e473dSmrg 240602e473dSmrgThis release contains several important bug fixes, summarized below. It 241602e473dSmrgalso contains a patch much like Novell's libxcb-sloppy-lock.diff. 242602e473dSmrgRationale from the commit message follows. The patch and this rationale 243602e473dSmrgwere authored by Jamey Sharp <jamey@minilop.net>, with agreement from 244602e473dSmrgJosh Triplett <josh@freedesktop.org>. 245602e473dSmrg 246602e473dSmrg I strongly opposed proposals like this one for a long time. 247602e473dSmrg Originally I had a very good reason: libX11, when compiled to use 248602e473dSmrg XCB, would crash soon after a locking correctness violation, so it 249602e473dSmrg was better to have an informative assert failure than a mystifying 250602e473dSmrg crash soon after. 251602e473dSmrg 252602e473dSmrg It took some time for me to realize that I'd changed the libX11 253602e473dSmrg implementation (for unrelated reasons) so that it could survive most 254602e473dSmrg invalid locking situations, as long as it wasn't actually being used 255602e473dSmrg from multiple threads concurrently. 256602e473dSmrg 257602e473dSmrg The other thing that has changed is that most of the code with 258602e473dSmrg incorrect locking has now been fixed. The value of the assert is 259602e473dSmrg accordingly lower. 260602e473dSmrg 261602e473dSmrg However, remaining broken callers do need to be fixed. That's why 262602e473dSmrg libXCB will still noisily print a stacktrace (if possible) on each 263602e473dSmrg assertion failure, even when assert isn't actually invoked to 264602e473dSmrg abort() the program; and that's why aborting is still default. This 265602e473dSmrg environment variable is provided only for use as a temporary 266602e473dSmrg workaround for broken applications. 267602e473dSmrg 268602e473dSmrgEnhancements: 269602e473dSmrg* Print a backtrace, if possible, on locking assertion failures. 270602e473dSmrg* Skip abort() on locking assertions if LIBXCB_ALLOW_SLOPPY_LOCK is set. 271602e473dSmrg* xcb_poll_for_event: Return already-read events before reading again. 272602e473dSmrg* Output a configuration summary at the end of ./configure. 273602e473dSmrg 274602e473dSmrgBug fixes: 275602e473dSmrg* Don't hold the xlib-xcb lock while sleeping: that allows deadlock. 276602e473dSmrg* Allow unix:<screen> style display names again. 277602e473dSmrg* Bug #9119: test xcb_popcount 278602e473dSmrg* Fix unit tests for FreeBSD 279602e473dSmrg* NetBSD doesn't have AI_ADDRCONFIG: use it only if it's available. 280602e473dSmrg* Require libXau >= 0.99.2; earlier versions have a broken .pc file 281602e473dSmrg* Use substitition variables in xcb-xinerama.pc.in 282602e473dSmrg* Update autogen.sh to one that does objdir != srcdir 283602e473dSmrg* Add tools/* and autogen.sh to EXTRA_DIST. 284602e473dSmrg* Doxygen can now be fully disabled if desired. 285602e473dSmrg 286602e473dSmrgDocumentation improvements: 287602e473dSmrg* Many fixes and updates to the tutorial. 288602e473dSmrg* Iterators, requests, and replies get partial Doxygen documentation. 289602e473dSmrg 290602e473dSmrg 291602e473dSmrgRelease 1.0 (2006-11-23) 292602e473dSmrg======================== 293602e473dSmrg 294602e473dSmrgThe "Thanksgiving" release: We feel thankful to have it released. Five years 295602e473dSmrghave passed since XCB's initial commit on September 3rd, 2001: 296602e473dSmrg <http://gitweb.freedesktop.org/?p=xcb.git;a=commit;h=09e54c4a3c> 297602e473dSmrg 298602e473dSmrg* Support IPv6. XCB now supports displays with IPv6 addresses, with or without 299602e473dSmrg enclosing square brackets, or with hosts which resolve to IPv6 addresses, by 300602e473dSmrg using getaddrinfo instead of gethostbyname, and by including support for 301602e473dSmrg authentication for such connections. This allows such displays as "::1:1.1". 302602e473dSmrg 303602e473dSmrg* XCB now uses the libpthread-stubs, to properly support optional use of 304602e473dSmrg pthreads even on platforms which do not have all the necessary pthread stubs 305602e473dSmrg in libc or otherwise available by default. 306602e473dSmrg 307602e473dSmrg* Switch from the old AM_PATH_CHECK macro to pkg-config. check 0.9.4 is now 308602e473dSmrg required to build XCB's unit tests. The version that we were requiring was 309602e473dSmrg not actually new enough to let our unit tests compile, and the AM_PATH_CHECK 310602e473dSmrg macro is now considered deprecated. We know that versions of check using 311602e473dSmrg pkg-config are new enough to work, and the check dependency was optional 312602e473dSmrg anyway, so we've dropped support for older versions. 313602e473dSmrg 314602e473dSmrg* Provide a xcb_prefetch_maximum_request_length counterpart to 315602e473dSmrg xcb_get_maximum_request_length. 316602e473dSmrg 317602e473dSmrg* Fix Bug #5958: zero out padding bytes in requests. 318602e473dSmrg 319602e473dSmrg* Change xcb_connect to pass the display number to _xcb_get_auth_info, which 320602e473dSmrg passes it to get_authptr. This allows get_authptr to stop hacking the 321602e473dSmrg display number out of the sockaddrs of various address families, such as 322602e473dSmrg port - X_TCP_PORT, or the number after the last X in the UNIX socket path. 323602e473dSmrg 324602e473dSmrg* Remove --with-opt and --with-debug options from configure.ac; configure 325602e473dSmrg supports the use of custom CFLAGS, so please use that instead. 326602e473dSmrg 327602e473dSmrg* Reove support for the <localfield> tag in protocol descriptions, since they 328602e473dSmrg no longer use it, and since new protocol descriptions should not need it 329602e473dSmrg either. 330602e473dSmrg 331602e473dSmrg* xcb-proto has no libraries or headers, so don't use XCBPROTO_CFLAGS or 332602e473dSmrg XCBPROTO_LIBS. 333602e473dSmrg 334602e473dSmrg* XCB builds which use xdmcp now include it in Requires.private, to support 335602e473dSmrg static linking. 336602e473dSmrg 337602e473dSmrg* Replace "long" with uint32_t when used for a 32-bit quantity 338602e473dSmrg 339602e473dSmrg* Various enhancements to the generation of documentation with Doxygen: 340602e473dSmrg * Check for doxygen in configure.ac 341602e473dSmrg * Fix some Doxygen warnings. 342602e473dSmrg * Install documentation. 343602e473dSmrg * Handle out-of-tree builds, with srcdir != builddir. xcb.doxygen now gets 344602e473dSmrg generated from xcb.doxygen.in, so that it can use top_builddir and 345602e473dSmrg top_srcdir to find source and to output documentation. 346602e473dSmrg * Fill in PROJECT_NUMBER from @VERSION@, now that we have it readily 347602e473dSmrg available via autoconf. 348602e473dSmrg 349602e473dSmrg 350602e473dSmrgRelease 1.0 RC3 (2006-11-02) 351602e473dSmrg============================ 352602e473dSmrg 353602e473dSmrgNote: Version 0.9.4 of the test suite tool "check" provides a broken 354602e473dSmrgversion of the AM_PATH_CHECK macro, which causes autoconf to fail due to 355602e473dSmrginsufficient quoting on the macro names it prints in its deprecation 356602e473dSmrgmessage. We have written a patch to fix this problem, available at: 357602e473dSmrg<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> 358602e473dSmrgVersion 0.9.4-2 of the Debian package for check includes this patch. 359602e473dSmrgUsers of other distributions who want to re-autotool libxcb will need to 360602e473dSmrgapply this patch, use an older version of check, or wait for a fixed 361602e473dSmrgupstream version. This bug does not affect users who use the distributed 362602e473dSmrgtarballs and do not re-autotool. 363602e473dSmrg 364602e473dSmrg* Add library support for xcb-xinerama, using new protocol description 365602e473dSmrg from xcb-proto. 366602e473dSmrg* In the generated protocol code, define and use constants for opcode 367602e473dSmrg numbers rather than hard-coding them. 368602e473dSmrg* In the API conversion script, match only XCB-namespaced XID generators 369602e473dSmrg when converting to xcb_generate_id. 370602e473dSmrg* Quit treating xproto specially in Makefile.am: handle it like all the 371602e473dSmrg extensions. 372602e473dSmrg* Generate Doxygen documentation comments in the protocol stubs, and 373602e473dSmrg provide a Doxygen config file for building HTML documentation for XCB. 374602e473dSmrg* Add note to xcbxlib.h that nothing except Xlib/XCB should use it. 375602e473dSmrg* Extend test suite to test xcb_parse_display with NULL argument and 376602e473dSmrg display in $DISPLAY. 377602e473dSmrg 378602e473dSmrg 379602e473dSmrgRelease 1.0 RC2 (2006-10-07) 380602e473dSmrg============================ 381602e473dSmrg 382602e473dSmrgAPI changes 383602e473dSmrg----------- 384602e473dSmrg 385602e473dSmrgIn our announcement of XCB 1.0 RC1, we proposed two API changes for 386602e473dSmrgcommunity feedback: 387602e473dSmrg 388602e473dSmrg We would greatly appreciate API review in this final release 389602e473dSmrg candidate period. We've had some limited feedback that our attempts 390602e473dSmrg to impose static type safety on XIDs in C pose more a hindrance than 391602e473dSmrg a help, so we would appreciate discussion over whether this 392602e473dSmrg constitutes a "serious issue with the API". Some question also 393602e473dSmrg remains of whether xcb_poll_for_event should have the out-parameter 394602e473dSmrg 'error', now that XCB has a more uniform mechanism for reporting 395602e473dSmrg connection errors. Speak now on these points or leave us alone. ;-) 396602e473dSmrg 397602e473dSmrgSince we've received feedback agreeing with our proposed changes, and no 398602e473dSmrgobjections or requests to keep the existing API, we made both changes 399602e473dSmrgand bumped the soname to libxcb.so.1.0.0 in preparation for the release 400602e473dSmrgof XCB 1.0. 401602e473dSmrg 402602e473dSmrg* Remove XID wrapper structures and replace them with uint32_t typedefs. 403602e473dSmrg XID union types like xcb_drawable_t and xcb_fontable_t also become 404602e473dSmrg uint32_t typedefs. The API conversion script now replaces xcb_*_new 405602e473dSmrg with calls directly to xcb_generate_id. This change makes 406602e473dSmrg xcb_generate_id part of the client API rather than the extension API, 407602e473dSmrg so move xcb_generate_id from xcbext.h to xcb.h. 408602e473dSmrg 409602e473dSmrg* Remove the 'int *error' out-parameter for xcb_poll_for_event. 410602e473dSmrg xcb_poll_for_event now shuts down the xcb_connection_t on fatal 411602e473dSmrg errors; use xcb_connection_has_error to check. 412602e473dSmrg 413602e473dSmrgThe Xlib-specific API in libxcb-xlib also changed: 414602e473dSmrg 415602e473dSmrg* Stop exposing the XCB IO lock for Xlib's benefit, by removing 416602e473dSmrg xcb_get_io_lock from the Xlib-specific XCB API; instead, libxcb-xlib 417602e473dSmrg now provides xcb_xlib_lock and xcb_xlib_unlock. 418602e473dSmrg 419602e473dSmrgCode generation changes 420602e473dSmrg----------------------- 421602e473dSmrg 422602e473dSmrg* The code generator no longer implicitly imports xproto for extensions. 423602e473dSmrg xcb-proto 1.0 RC2 includes the corresponding change to explicitly 424602e473dSmrg import xproto in extensions that need it 425602e473dSmrg 426602e473dSmrg* The generated protocol headers now declare "struct foo", "union foo" 427602e473dSmrg or "enum foo", not just the typedef "foo" of an unnamed 428602e473dSmrg struct/union/enum type. 429602e473dSmrg 430602e473dSmrgBug Fixes 431602e473dSmrg--------- 432602e473dSmrg 433602e473dSmrg* Make Plan 7 'checked' requests work correctly. 434602e473dSmrg 435602e473dSmrgDocumentation improvements 436602e473dSmrg-------------------------- 437602e473dSmrg 438602e473dSmrg* Document xcb_generate_id. 439602e473dSmrg 440602e473dSmrg* Tutorial enhancements. 441602e473dSmrg 442602e473dSmrg 443602e473dSmrgRelease 1.0 RC1 (2006-09-25) 444602e473dSmrg============================ 445602e473dSmrg 446602e473dSmrgThe Great XCB Renaming 447602e473dSmrg---------------------- 448602e473dSmrg 449602e473dSmrgRename API to follow a new naming convention: 450602e473dSmrg 451602e473dSmrg* XCB_CONSTANTS_UPPERCASE_WITH_UNDERSCORES 452602e473dSmrg* xcb_functions_lowercase_with_underscores 453602e473dSmrg* xcb_types_lowercase_with_underscores_and_suffix_t 454602e473dSmrg* expand all abbreviations like "req", "rep", and "iter" 455602e473dSmrg 456602e473dSmrgWord boundaries for the names in the protocol descriptions fall: 457602e473dSmrg 458602e473dSmrg* Wherever the protocol descriptions already have an underscore 459602e473dSmrg* Between a lowercase letter and a subsequent uppercase letter 460602e473dSmrg* Before the last uppercase letter in a string of uppercase letters 461602e473dSmrg followed by a lowercase letter (such as in LSBFirst between LSB and 462602e473dSmrg First) 463602e473dSmrg* Before and after a string of digits (with exceptions for sized types 464602e473dSmrg like xcb_char2b_t and xcb_glx_float32_t to match the stdint.h 465602e473dSmrg convention) 466602e473dSmrg 467602e473dSmrgAlso fix up some particular naming issues: 468602e473dSmrg 469602e473dSmrg* Rename shape_op and shape_kind to drop the "shape_" prefix, since 470602e473dSmrg otherwise these types end up as xcb_shape_shape_{op,kind}_t. 471602e473dSmrg* Remove leading underscores from enums in the GLX protocol description, 472602e473dSmrg previously needed to ensure a word separator, but now redundant. 473602e473dSmrg 474602e473dSmrgThis renaming breaks code written for the previous API naming 475602e473dSmrgconvention. The scripts in XCB's tools directory will convert code 476602e473dSmrgwritten for the old API to use the new API; they work well enough that 477602e473dSmrgwe used them to convert the non-program-generated code in XCB, and when 478602e473dSmrgrun on the old program-generated code, they almost exactly reproduce the 479602e473dSmrgnew program-generated code (modulo whitespace and bugs in the old code 480602e473dSmrggenerator). 481602e473dSmrg 482602e473dSmrgAuthors: Vincent Torri, Thomas Hunger, Josh Triplett 483602e473dSmrg 484602e473dSmrgIn addition to the API renaming, the library SONAMEs have changed to 485602e473dSmrglibxcb.so and libxcb-extname.so. The library major version remains at 0, 486602e473dSmrgto become version 1 before 1.0 is released; the SONAME lowercasing means 487602e473dSmrgthat this will not conflict with XCB 0.9 libraries. 488602e473dSmrg 489602e473dSmrgThe header files have moved from /usr/include/X11/XCB/ to 490602e473dSmrg/usr/include/xcb/. The XML-XCB protocol descriptions have moved to 491602e473dSmrg/usr/share/xcb, with extension descriptions no longer relegated to an 492602e473dSmrgextensions/ subdirectory. The API conversion script api_conv.pl will fix 493602e473dSmrgreferences to the header files, and packages using pkg-config will 494602e473dSmrgautomatically use the new library names. 495602e473dSmrg 496602e473dSmrgError handling Plan 7 497602e473dSmrg--------------------- 498602e473dSmrg 499602e473dSmrgAll request functions now come in an "unchecked" and "checked" variant. 500602e473dSmrgThe checked variant allows callers to handle errors inline where they 501602e473dSmrgobtain the reply, or by calling xcb_request_check for requests with no 502602e473dSmrgreply. The unchecked variant uses the event queue for errors. Requests 503602e473dSmrgwith replies default to checked, because the caller must already make a 504602e473dSmrgfunction call to retrieve the reply and can see the error at that time; 505602e473dSmrgthe unchecked variant uses the suffix _unchecked. Requests without 506602e473dSmrgreplies default to unchecked, because the caller will not necessarily 507602e473dSmrgexpect to handle a response, and the checked variant uses the suffix 508602e473dSmrg_checked. 509602e473dSmrg 510602e473dSmrgConnection error handling 511602e473dSmrg------------------------- 512602e473dSmrg 513602e473dSmrgFatal connection errors now put the xcb_connection_t object into an 514602e473dSmrgerror state, at which point all further operations on that connection 515602e473dSmrgwill fail. Callers can use the new xcb_connection_has_error function to 516602e473dSmrgcheck for this state in a connection. Functions that return a 517602e473dSmrgconnection, such as the xcb_connect function, may instead return an 518602e473dSmrgxcb_connection_t already in an error state. 519602e473dSmrg 520602e473dSmrgIn the future we expect to add additional API for getting more 521602e473dSmrginformation about the error condition that caused the connection to get 522602e473dSmrginto an error state. 523602e473dSmrg 524602e473dSmrgSmaller API changes 525602e473dSmrg------------------- 526602e473dSmrg 527602e473dSmrgAll functions that have been marked 'deprecated' up to now have been 528602e473dSmrgremoved for this release. After XCB 1.0 is released, functions marked 529602e473dSmrg'deprecated' will be preserved until the end of time to maintain 530602e473dSmrgcompatibility. 531602e473dSmrg 532602e473dSmrgXCB no longer provides a sync function. Most callers of this function 533602e473dSmrgshould use xcb_flush instead, which usually provides the intended 534602e473dSmrgfunctionality and does not require a round-trip to the server. If you 535602e473dSmrgreally need this functionality, either use xcb_get_input_focus like sync 536602e473dSmrgused to do, or use the xcb_aux_sync function from the xcb-aux library in 537602e473dSmrgxcb-util. However, note that we do not consider the libraries in 538602e473dSmrgxcb-util remotely stable yet. 539602e473dSmrg 540602e473dSmrgXCB no longer provides xcb_[extension_name]_init functions for each 541602e473dSmrgextension. These functions previously caused XCB to issue and process a 542602e473dSmrgQueryExtension request. Callers should now directly call 543602e473dSmrgxcb_get_extension_data on the xcb_[extension_name]_id, or use 544602e473dSmrgxcb_prefetch_extension_data if they do not need to force a round-trip 545602e473dSmrgimmediately. 546602e473dSmrg 547602e473dSmrgThe compatibility functions in xcbxlib.h, provided solely for use by 548602e473dSmrgXlib/XCB, now exist in a separate library libxcb-xlib. We don't want to 549602e473dSmrghave to change the libxcb soname if we later change or remove the Xlib 550602e473dSmrgcompatibility functions, and nothing except Xlib/XCB should ever use 551602e473dSmrgthem. (Applications which use Xlib/XCB do not need this library either; 552602e473dSmrgXlib/XCB only uses it internally.) 553602e473dSmrg 554602e473dSmrgThe descriptions of several extensions have been updated to match the 555602e473dSmrglatest versions implemented in the X.org X server. 556602e473dSmrg 557602e473dSmrgGIT Repository split 558602e473dSmrg-------------------- 559602e473dSmrg 560602e473dSmrgPreviously, several XCB-related projects all existed under the umbrella 561602e473dSmrgof a single monolithic GIT repository with per-project subdirectories. 562602e473dSmrgWe have split this repository into individual per-project repositories. 563602e473dSmrg 564602e473dSmrgJosh Triplett and Jamey Sharp wrote a tool called git-split to 565602e473dSmrgaccomplish this repository split. git-split reconstructs the history of 566602e473dSmrga sub-project previously stored in a subdirectory of a larger 567602e473dSmrgrepository. It constructs new commit objects based on the existing tree 568602e473dSmrgobjects for the subtree in each commit, and discards commits which do 569602e473dSmrgnot affect the history of the sub-project, as well as merges made 570602e473dSmrgunnecessary due to these discarded commits. 571602e473dSmrg 572602e473dSmrgWe would like to acknowledge the work of the gobby team in creating a 573602e473dSmrgcollaborative editor which greatly aided the development of git-split 574602e473dSmrg(as well as these release notes). 575602e473dSmrg 576602e473dSmrgBuild and implementation fixes 577602e473dSmrg------------------------------ 578602e473dSmrg 579602e473dSmrgXCB no longer needs proto/x11 from X.org; the XCB header xproto.h 580602e473dSmrgprovides the definitions from X.h, named according to XCB conventions. 581602e473dSmrg 582602e473dSmrgXCB should now build with non-GNU implementations of Make. 583602e473dSmrg 584602e473dSmrgXCB properly handles 32-bit wrap of sequence numbers, and thus now 585602e473dSmrgsupports issuing more than 2**32 requests in one connection. 586602e473dSmrg 587602e473dSmrgFixed bugs #7001, #7261. 588