Check out the new USENIX Web site.

Home About USENIX Events Membership Publications Students
XFree86 Technical Conference — Abstract

XCB: An X Protocol C Binding

Bart Massey, Jamey Sharp, Computer Science Department, Portland State University

Abstract

The standard X Window System binding for the C programming language, Xlib, is a very successful piece of software across a wide range of applica-tions. However, for many modern uses, Xlib is not an ideal fit: its size, complexity, difficulty of ex-tension and synchronous interface are particularly problematic.

The XCB ÒX Protocol C BindingÓ, currently under development, is a response to these and other con-cerns. XCB is intended to be a simpler and more direct binding of protocol objects to C functions; careful design of the XCB API and internal data structures and thorough modularization provides a solution that is size and time efficient, maintain-able, easy to use both by single-threaded and multi-threaded applications and easily extensible. Some features of Xlib have been sacrificed in achieving these goals, notably i18n support and convenience buffering and caching features, but the cost will likely be worth it for toolkit developers and for those looking to write specialized applications lay-ered atop the XCB API.

  • View the full text of this paper in PDF form.

  • If you need the latest Adobe Acrobat Reader, you can download it from Adobe's site.

  • To become a USENIX Member, please see our Membership Information.

?Need help? Use our Contacts page.

Last changed: 22 Aug. 2003 ch
Technical Program
XFree86 Home
USENIX home