[Xcb] problem with the use of the shm extension

Jamey Sharp jamey at minilop.net
Mon Oct 17 17:07:58 PDT 2005

On Mon, Oct 03, 2005 at 10:28:50AM +0200, Vincent Torri wrote:
> i forget that question :
> is it *necessary* to call XCBGetExtensionData for an extension ?

No, but you can't properly check for errors (especially the absence of
the extension) if you don't. So the only time to omit it would be in the
tiniest and quickest example programs.

Although if anyone has suggestions about how to make error handling an
easy part of this API, so that it's natural to check for errors in *all*
programs, I'd love to hear them. Carl, maybe some of the lessons you've
learned from designing Cairo could help?


More information about the Xcb mailing list