Bug 6794 - versioning in XCBConnection structure
Summary: versioning in XCBConnection structure
Status: RESOLVED WONTFIX
Alias: None
Product: XCB
Classification: Unclassified
Component: Library (show other bugs)
Version: unspecified
Hardware: All All
: high normal
Assignee: Jamey Sharp
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 6797
  Show dependency treegraph
 
Reported: 2006-04-30 17:04 UTC by Jamey Sharp
Modified: 2006-09-09 14:33 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.