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