Bug 6812 - XCBProtocolRequest structure ought to have flags bitmask
Summary: XCBProtocolRequest structure ought to have flags bitmask
Status: RESOLVED WONTFIX
Alias: None
Product: XCB
Classification: Unclassified
Component: Library (show other bugs)
Version: unspecified
Hardware: All All
: medium enhancement
Assignee: Jamey Sharp
QA Contact: xcb mailing list dummy
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-02 06:26 UTC by Jamey Sharp
Modified: 2019-02-16 12:57 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Jamey Sharp 2006-05-02 06:26:03 UTC
Currently, XCBProtocolRequest has an isvoid flag. I expect more flags to become
useful later -- the current motivating example is a 'multiple replies' flag. So
isvoid should become a short or int bitmask. short is probably better so the
structure can be packed smaller, and 16 flags probably will suffice.
Comment 1 Jamey Sharp 2009-10-09 09:27:23 UTC
Replacing xcb_protocol_request_t.isvoid with a uint8_t "flags" bitmask would be ABI-compatible, as long as isvoid is the least-significant bit, but it would need a bit of care to stay API-compatible. This may still be worth doing.
Comment 2 Bart Massey 2009-10-09 13:59:22 UTC
I don't think there's any point until we actually want a second flag, at which point yes, it's fine.
Comment 3 Daniel Stone 2019-02-16 12:57:04 UTC
If we haven't needed one until now, we presumably never will.


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.