NEWS revision b20a2039
1Release 1.7 (2010-08-13)
2========================
3- Always wake up readers after writing
4- Get rid of PATH_MAX and MAXPATHLEN
5- Add ~ operator support in code generator
6- xcb_open: Improve protocol/host parsing
7- xcb_connect_to_display_with_auth_info: Fix memory leak
8- Report which extensions are being built
9
10Release 1.6 (2010-04-09)
11========================
12- darwin: xnu doesn't support poll on ttys on the master side
13- Fix descriptor leak on memory error path
14- Support xcb_discard_reply
15- Open the X11 socket with close-on-exec flag
16- Fix authentication on hpux and Hurd
17
18Release 1.5 (2009-12-03)
19========================
20- setsockopt(SO_KEEPALIVE) on TCP display connections
21- Add DRI2 support
22- Fix check dependency
23- Cygwin build fix: Add -no-undefined to libtool flags
24
25Release 1.4 (2009-07-15)
26========================
27* Add majorCode, minorCode and resourceID fields to X generic error
28* Fix precedence bug: wrong length for big-requests preceded by sync
29* Fix libxcb-randr version info
30
31Release 1.3 (2009-05-29)
32========================
33* Copy full IPv4 mapping (Bug #20665)
34* Fix XID allocation
35* Use poll() instead of select() when available
36* Fix local socket connection on Hurd
37* Fix XDM-AUTHORIZATION-1
38* Disable Nagle on TCP socket
39
40Release 1.2 (2009-02-17)
41========================
42* Stop packaging auto-generated C files into tarball.
43
44Release 1.1.93 (2008-12-11)
45===========================
46Enhancements:
47* Apple: Enable support for launchd DISPLAY socket
48* Treat XIDs the same as other cardinal values.
49
50Release 1.1.92 (2008-11-01)
51===========================
52Enhancements:
53* Added small fix to support trailing fixed fields; also warning for non-pad fixed fields
54* Fixed overly aggressive warning about fixed field following variable
55* Added generation of extern "C" for compatibility with C++
56* Remove libxcb-xlib and xcbxlib.h.
57* Inline _xcb_lock_io, _xcb_unlock_io, and _xcb_wait_io.
58* Track 64-bit sequence numbers internally.
59* Use sequence number ranges in pending replies
60* Remove duplicate XCB_EXTENSION calls for Composite extension
61* Factorize m4 macros and add one to set X extensions
62* Allow compile-time setting for XCB queue buffer size
63* Support handing off socket write permission to external code.
64* Add support for the abstract socket namespace under Linux
65
66Bug fixes:
67* Fix tiny memory leak in read_packet
68* Fix some fd leaks in _xcb_open_*()
69
70Release 1.1 (2007-11-04)
71========================
72
73This release requires xcb-proto 1.1, due to the addition of the
74extension-multiword attribute to the XML schema.
75
76This release contains several important bug fixes, summarized below. It
77also contains a patch much like Novell's libxcb-sloppy-lock.diff.
78Rationale from the commit message follows. The patch and this rationale
79were authored by Jamey Sharp <jamey@minilop.net>, with agreement from
80Josh Triplett <josh@freedesktop.org>.
81
82    I strongly opposed proposals like this one for a long time.
83    Originally I had a very good reason: libX11, when compiled to use
84    XCB, would crash soon after a locking correctness violation, so it
85    was better to have an informative assert failure than a mystifying
86    crash soon after.
87
88    It took some time for me to realize that I'd changed the libX11
89    implementation (for unrelated reasons) so that it could survive most
90    invalid locking situations, as long as it wasn't actually being used
91    from multiple threads concurrently.
92
93    The other thing that has changed is that most of the code with
94    incorrect locking has now been fixed. The value of the assert is
95    accordingly lower.
96
97    However, remaining broken callers do need to be fixed. That's why
98    libXCB will still noisily print a stacktrace (if possible) on each
99    assertion failure, even when assert isn't actually invoked to
100    abort() the program; and that's why aborting is still default. This
101    environment variable is provided only for use as a temporary
102    workaround for broken applications.
103
104Enhancements:
105* Print a backtrace, if possible, on locking assertion failures.
106* Skip abort() on locking assertions if LIBXCB_ALLOW_SLOPPY_LOCK is set.
107* xcb_poll_for_event: Return already-read events before reading again.
108* Output a configuration summary at the end of ./configure.
109
110Bug fixes:
111* Don't hold the xlib-xcb lock while sleeping: that allows deadlock.
112* Allow unix:<screen> style display names again.
113* Bug #9119: test xcb_popcount
114* Fix unit tests for FreeBSD
115* NetBSD doesn't have AI_ADDRCONFIG: use it only if it's available.
116* Require libXau >= 0.99.2; earlier versions have a broken .pc file
117* Use substitition variables in xcb-xinerama.pc.in
118* Update autogen.sh to one that does objdir != srcdir
119* Add tools/* and autogen.sh to EXTRA_DIST.
120* Doxygen can now be fully disabled if desired.
121
122Documentation improvements:
123* Many fixes and updates to the tutorial.
124* Iterators, requests, and replies get partial Doxygen documentation.
125
126
127Release 1.0 (2006-11-23)
128========================
129
130The "Thanksgiving" release: We feel thankful to have it released.  Five years
131have passed since XCB's initial commit on September 3rd, 2001:
132    <http://gitweb.freedesktop.org/?p=xcb.git;a=commit;h=09e54c4a3c>
133
134* Support IPv6.  XCB now supports displays with IPv6 addresses, with or without
135  enclosing square brackets, or with hosts which resolve to IPv6 addresses, by
136  using getaddrinfo instead of gethostbyname, and by including support for
137  authentication for such connections.  This allows such displays as "::1:1.1".
138
139* XCB now uses the libpthread-stubs, to properly support optional use of
140  pthreads even on platforms which do not have all the necessary pthread stubs
141  in libc or otherwise available by default.
142
143* Switch from the old AM_PATH_CHECK macro to pkg-config.  check 0.9.4 is now
144  required to build XCB's unit tests.  The version that we were requiring was
145  not actually new enough to let our unit tests compile, and the AM_PATH_CHECK
146  macro is now considered deprecated.  We know that versions of check using
147  pkg-config are new enough to work, and the check dependency was optional
148  anyway, so we've dropped support for older versions.
149
150* Provide a xcb_prefetch_maximum_request_length counterpart to
151  xcb_get_maximum_request_length.
152
153* Fix Bug #5958: zero out padding bytes in requests.
154
155* Change xcb_connect to pass the display number to _xcb_get_auth_info, which
156  passes it to get_authptr.  This allows get_authptr to stop hacking the
157  display number out of the sockaddrs of various address families, such as
158  port - X_TCP_PORT, or the number after the last X in the UNIX socket path.
159
160* Remove --with-opt and --with-debug options from configure.ac; configure
161  supports the use of custom CFLAGS, so please use that instead.
162
163* Reove support for the <localfield> tag in protocol descriptions, since they
164  no longer use it, and since new protocol descriptions should not need it
165  either.
166
167* xcb-proto has no libraries or headers, so don't use XCBPROTO_CFLAGS or
168  XCBPROTO_LIBS.
169
170* XCB builds which use xdmcp now include it in Requires.private, to support
171  static linking.
172
173* Replace "long" with uint32_t when used for a 32-bit quantity
174
175* Various enhancements to the generation of documentation with Doxygen:
176  * Check for doxygen in configure.ac
177  * Fix some Doxygen warnings.
178  * Install documentation.
179  * Handle out-of-tree builds, with srcdir != builddir.  xcb.doxygen now gets
180    generated from xcb.doxygen.in, so that it can use top_builddir and
181    top_srcdir to find source and to output documentation.
182  * Fill in PROJECT_NUMBER from @VERSION@, now that we have it readily
183    available via autoconf.
184
185
186Release 1.0 RC3 (2006-11-02)
187============================
188
189Note: Version 0.9.4 of the test suite tool "check" provides a broken
190version of the AM_PATH_CHECK macro, which causes autoconf to fail due to
191insufficient quoting on the macro names it prints in its deprecation
192message. We have written a patch to fix this problem, available at:
193<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>
194Version 0.9.4-2 of the Debian package for check includes this patch.
195Users of other distributions who want to re-autotool libxcb will need to
196apply this patch, use an older version of check, or wait for a fixed
197upstream version. This bug does not affect users who use the distributed
198tarballs and do not re-autotool.
199
200* Add library support for xcb-xinerama, using new protocol description
201  from xcb-proto.
202* In the generated protocol code, define and use constants for opcode
203  numbers rather than hard-coding them.
204* In the API conversion script, match only XCB-namespaced XID generators
205  when converting to xcb_generate_id.
206* Quit treating xproto specially in Makefile.am: handle it like all the
207  extensions.
208* Generate Doxygen documentation comments in the protocol stubs, and
209  provide a Doxygen config file for building HTML documentation for XCB.
210* Add note to xcbxlib.h that nothing except Xlib/XCB should use it.
211* Extend test suite to test xcb_parse_display with NULL argument and
212  display in $DISPLAY.
213
214
215Release 1.0 RC2 (2006-10-07)
216============================
217
218API changes
219-----------
220
221In our announcement of XCB 1.0 RC1, we proposed two API changes for
222community feedback:
223
224    We would greatly appreciate API review in this final release
225    candidate period. We've had some limited feedback that our attempts
226    to impose static type safety on XIDs in C pose more a hindrance than
227    a help, so we would appreciate discussion over whether this
228    constitutes a "serious issue with the API". Some question also
229    remains of whether xcb_poll_for_event should have the out-parameter
230    'error', now that XCB has a more uniform mechanism for reporting
231    connection errors. Speak now on these points or leave us alone. ;-)
232
233Since we've received feedback agreeing with our proposed changes, and no
234objections or requests to keep the existing API, we made both changes
235and bumped the soname to libxcb.so.1.0.0 in preparation for the release
236of XCB 1.0.
237
238* Remove XID wrapper structures and replace them with uint32_t typedefs.
239  XID union types like xcb_drawable_t and xcb_fontable_t also become
240  uint32_t typedefs. The API conversion script now replaces xcb_*_new
241  with calls directly to xcb_generate_id.  This change makes
242  xcb_generate_id part of the client API rather than the extension API,
243  so move xcb_generate_id from xcbext.h to xcb.h.
244
245* Remove the 'int *error' out-parameter for xcb_poll_for_event. 
246  xcb_poll_for_event now shuts down the xcb_connection_t on fatal
247  errors; use xcb_connection_has_error to check.
248
249The Xlib-specific API in libxcb-xlib also changed:
250
251* Stop exposing the XCB IO lock for Xlib's benefit, by removing
252  xcb_get_io_lock from the Xlib-specific XCB API; instead, libxcb-xlib
253  now provides xcb_xlib_lock and xcb_xlib_unlock.
254
255Code generation changes
256-----------------------
257
258* The code generator no longer implicitly imports xproto for extensions.
259  xcb-proto 1.0 RC2 includes the corresponding change to explicitly
260  import xproto in extensions that need it
261
262* The generated protocol headers now declare "struct foo", "union foo"
263  or "enum foo", not just the typedef "foo" of an unnamed
264  struct/union/enum type.
265
266Bug Fixes
267---------
268
269* Make Plan 7 'checked' requests work correctly.
270
271Documentation improvements
272--------------------------
273
274* Document xcb_generate_id.
275
276* Tutorial enhancements.
277
278
279Release 1.0 RC1 (2006-09-25)
280============================
281
282The Great XCB Renaming
283----------------------
284
285Rename API to follow a new naming convention:
286
287* XCB_CONSTANTS_UPPERCASE_WITH_UNDERSCORES
288* xcb_functions_lowercase_with_underscores
289* xcb_types_lowercase_with_underscores_and_suffix_t
290* expand all abbreviations like "req", "rep", and "iter"
291
292Word boundaries for the names in the protocol descriptions fall:
293
294* Wherever the protocol descriptions already have an underscore
295* Between a lowercase letter and a subsequent uppercase letter
296* Before the last uppercase letter in a string of uppercase letters
297  followed by a lowercase letter (such as in LSBFirst between LSB and
298  First)
299* Before and after a string of digits (with exceptions for sized types
300  like xcb_char2b_t and xcb_glx_float32_t to match the stdint.h
301  convention)
302
303Also fix up some particular naming issues:
304
305* Rename shape_op and shape_kind to drop the "shape_" prefix, since
306  otherwise these types end up as xcb_shape_shape_{op,kind}_t.
307* Remove leading underscores from enums in the GLX protocol description,
308  previously needed to ensure a word separator, but now redundant.
309
310This renaming breaks code written for the previous API naming
311convention. The scripts in XCB's tools directory will convert code
312written for the old API to use the new API; they work well enough that
313we used them to convert the non-program-generated code in XCB, and when
314run on the old program-generated code, they almost exactly reproduce the
315new program-generated code (modulo whitespace and bugs in the old code
316generator).
317
318Authors: Vincent Torri, Thomas Hunger, Josh Triplett
319
320In addition to the API renaming, the library SONAMEs have changed to
321libxcb.so and libxcb-extname.so. The library major version remains at 0,
322to become version 1 before 1.0 is released; the SONAME lowercasing means
323that this will not conflict with XCB 0.9 libraries.
324
325The header files have moved from /usr/include/X11/XCB/ to
326/usr/include/xcb/. The XML-XCB protocol descriptions have moved to
327/usr/share/xcb, with extension descriptions no longer relegated to an
328extensions/ subdirectory. The API conversion script api_conv.pl will fix
329references to the header files, and packages using pkg-config will
330automatically use the new library names.
331
332Error handling Plan 7
333---------------------
334
335All request functions now come in an "unchecked" and "checked" variant.
336The checked variant allows callers to handle errors inline where they
337obtain the reply, or by calling xcb_request_check for requests with no
338reply. The unchecked variant uses the event queue for errors. Requests
339with replies default to checked, because the caller must already make a
340function call to retrieve the reply and can see the error at that time;
341the unchecked variant uses the suffix _unchecked. Requests without
342replies default to unchecked, because the caller will not necessarily
343expect to handle a response, and the checked variant uses the suffix
344_checked.
345
346Connection error handling
347-------------------------
348
349Fatal connection errors now put the xcb_connection_t object into an
350error state, at which point all further operations on that connection
351will fail. Callers can use the new xcb_connection_has_error function to
352check for this state in a connection. Functions that return a
353connection, such as the xcb_connect function, may instead return an
354xcb_connection_t already in an error state.
355
356In the future we expect to add additional API for getting more
357information about the error condition that caused the connection to get
358into an error state.
359
360Smaller API changes
361-------------------
362
363All functions that have been marked 'deprecated' up to now have been
364removed for this release. After XCB 1.0 is released, functions marked
365'deprecated' will be preserved until the end of time to maintain
366compatibility.
367
368XCB no longer provides a sync function. Most callers of this function
369should use xcb_flush instead, which usually provides the intended
370functionality and does not require a round-trip to the server. If you
371really need this functionality, either use xcb_get_input_focus like sync
372used to do, or use the xcb_aux_sync function from the xcb-aux library in
373xcb-util. However, note that we do not consider the libraries in
374xcb-util remotely stable yet.
375
376XCB no longer provides xcb_[extension_name]_init functions for each
377extension. These functions previously caused XCB to issue and process a
378QueryExtension request. Callers should now directly call
379xcb_get_extension_data on the xcb_[extension_name]_id, or use
380xcb_prefetch_extension_data if they do not need to force a round-trip
381immediately.
382
383The compatibility functions in xcbxlib.h, provided solely for use by
384Xlib/XCB, now exist in a separate library libxcb-xlib. We don't want to
385have to change the libxcb soname if we later change or remove the Xlib
386compatibility functions, and nothing except Xlib/XCB should ever use
387them. (Applications which use Xlib/XCB do not need this library either;
388Xlib/XCB only uses it internally.)
389
390The descriptions of several extensions have been updated to match the
391latest versions implemented in the X.org X server.
392
393GIT Repository split
394--------------------
395
396Previously, several XCB-related projects all existed under the umbrella
397of a single monolithic GIT repository with per-project subdirectories.
398We have split this repository into individual per-project repositories.
399
400Josh Triplett and Jamey Sharp wrote a tool called git-split to
401accomplish this repository split. git-split reconstructs the history of
402a sub-project previously stored in a subdirectory of a larger
403repository. It constructs new commit objects based on the existing tree
404objects for the subtree in each commit, and discards commits which do
405not affect the history of the sub-project, as well as merges made
406unnecessary due to these discarded commits.
407
408We would like to acknowledge the work of the gobby team in creating a
409collaborative editor which greatly aided the development of git-split
410(as well as these release notes).
411
412Build and implementation fixes
413------------------------------
414
415XCB no longer needs proto/x11 from X.org; the XCB header xproto.h
416provides the definitions from X.h, named according to XCB conventions.
417
418XCB should now build with non-GNU implementations of Make.
419
420XCB properly handles 32-bit wrap of sequence numbers, and thus now
421supports issuing more than 2**32 requests in one connection.
422
423Fixed bugs #7001, #7261.
424