Bug 6794

Summary: versioning in XCBConnection structure
Product: XCB Reporter: Jamey Sharp <jamey>
Component: LibraryAssignee: Jamey Sharp <jamey>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: high    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 6797    

Description Jamey Sharp 2006-04-30 17:04:08 UTC
XCBConnection is an opaque structure, but it could conceivably happen someday
that both XCB 1.0 and XCB 2.0 are loaded into the same address space and a
connection created by one library gets passed to the other. The dynamic linker
can't detect this situation so we should provide our own mechanism for detecting it.

An easy approach is to place a version int at the beginning of the structure and
store the library's major revision number there. (For the foreseeable future
that will be 1.) Then check the version in every public function that directly
accesses fields of the connection, or that calls internal functions that do.
Comment 1 Bart Massey 2006-09-09 14:33:47 UTC
Since we're not doing symbol versioning (Bug 6793), this is not needed.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.