[Xcb] About next release of xcb/util
Julien Danjou
julien at danjou.info
Thu Mar 25 00:50:07 PDT 2010
Josh Triplett <josh at joshtriplett.org> writes:
> http://lists.freedesktop.org/archives/xcb/2006-October/thread.html#2193
> (thread "porting Xft and pango to XCB").
Thanks.
> To solve the second issue in general, I'd like to propose a key strategy
> for porting libraries like Xft from Xlib to XCB without duplication:
> Start requiring Xlib/XCB for these ports, and depend on libX11-xcb.
>
> Then, port the internals of the libraries to use XCB, and do nothing
> with a Display except call XGetXCBConnection or pass the Display to
> another library that uses Xlib. If a library only does the former, then
> ideally we can in the future pass an xcb_connection_t instead, and make
> Xlib callers call XGetXCBConnection themselves. This strategy will
> avoid code duplication; it will also make it trivial to, someday, build
> a version that doesn't bother supporting Xlib.
It seems like a really good idea. But does not that requires Xlib to be
build with XCB support? Is that a standard nowadays?
--
Julien Danjou
// ᐰ <julien at danjou.info> http://julien.danjou.info
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/xcb/attachments/20100325/adbc3444/attachment.pgp>
More information about the Xcb
mailing list