summaryrefslogtreecommitdiff
path: root/src/xcb_in.c
AgeCommit message (Collapse)Author
2007-06-02xcb_poll_for_event: Return already-read events before read(2)ing again.Jamey Sharp
2006-10-07Bugfix: make Plan 7 'checked' requests work correctly.Jamey Sharp
The initial implementation of Plan 7 dumped all X errors into the event queue, because the record of a pending reply was pruned too early if an error occurred in place of the expected reply.
2006-10-06Remove the 'int *error' out-parameter for xcb_poll_for_event.Jamey Sharp
2006-10-04Factor out pthread_mutex_lock and unlock calls for the iolock.Jamey Sharp
2006-09-23More fixups for incorrect API conversions by api_conv.plJosh Triplett
2006-09-23Fix some mis-conversions by api_conv.pl, and remove the now-unused Xmd typesJosh Triplett
2006-09-23The Great XCB RenamingJosh Triplett
Rename API to follow a new naming convention: * XCB_CONSTANTS_UPPERCASE_WITH_UNDERSCORES * xcb_functions_lowercase_with_underscores * xcb_types_lowercase_with_underscores_and_suffix_t * expand all abbreviations like "req", "rep", and "iter" Word boundaries for the names in the protocol descriptions fall: * Wherever the protocol descriptions already have an underscore * Between a lowercase letter and a subsequent uppercase letter * Before the last uppercase letter in a string of uppercase letters followed by a lowercase letter (such as in LSBFirst between LSB and First) * Before and after a string of digits (with exceptions for sized types like xcb_char2b_t and xcb_glx_float32_t to match the stdint.h convention) Also fix up some particular naming issues: * Rename shape_op and shape_kind to drop the "shape_" prefix, since otherwise these types end up as xcb_shape_shape_{op,kind}_t. * Remove leading underscores from enums in the GLX protocol description, previously needed to ensure a word separator, but now redundant. This renaming breaks code written for the previous API naming convention. The scripts in XCB's tools directory will convert code written for the old API to use the new API; they work well enough that we used them to convert the non-program-generated code in XCB, and when run on the old program-generated code, they almost exactly reproduce the new program-generated code (modulo whitespace and bugs in the old code generator). Authors: Vincent Torri, Thomas Hunger, Josh Triplett
2006-09-21Shut down the connection in all "fatal" error cases.Jamey Sharp
2006-09-21Make all public functions do nothing on an error connection.Jamey Sharp
2006-09-21Refactor XCBPollForEvent with a shorter critical section.Jamey Sharp
This simplifies the patch for bug #8208 later.
2006-09-18Fix bug #7261: events do not signal the end of replies for that sequence number.Jamey Sharp
2006-09-13Finish removing deprecated functions. Fixes build failure (oops).Jamey Sharp
2006-07-30Fix typo: s/request/sequence/Josh Triplett
2006-07-30Add XCBRequestCheck function needed for Plan 7.Josh Triplett
2006-07-01Switch sequence comparisons to handle 32-bit sequence number wrap.Keith Packard
Create a macro, XCB_SEQUENCE_COMPARE, that accepts two sequence numbers and a comparison operator and correctly handles 32-bit wrap around. Rewrite all ordered sequence number comparisons to use this macro. Also, caught one error where a sequence was stored in a signed int variable. Push out a GetInputFocus request when the sequence number does wrap at 32 bits so that applications cannot see sequence 0 (as that is an error indicator).
2006-04-20Minor performance improvement: do not call _xcb_in_expect_reply unless it is ↵Jamey Sharp
needed. It is not often needed.
2006-04-19Add <sys/select.h> to xcb_in.c to fix bug #6122.Jamey Sharp
2006-04-19Remove the last goto in XCB: XCBWaitForReply now permits multiple threads to ↵Jamey Sharp
force the same cookie.
2006-04-19Restructure XCBWaitForReply to eliminate two gotos.Jamey Sharp
2006-04-19Fixed poll_for_reply, added comments, and refactored XCBWaitForReply to call ↵Jamey Sharp
poll_for_reply.
2006-04-19Add XCBPollForReply and deprecate XCBGetRequestRead and XCBGetQueuedRequestRead.Jamey Sharp
2006-04-09Retry a select() if it returns with EINTR. Fixes IO errors in Xephyr, which isEric Anholt
often interrupted by timers.
2006-03-12Merge branch 'master' of git+ssh://git.freedesktop.org/git/xcbJamey Sharp
2006-03-12Remove c->out.vec. Pass iovecs directly down the call tree. Add ↵Jamey Sharp
_xcb_out_flush_to, refactor other functions, make write_block static.
2006-03-09Move c->out.vec refs out of _xcb_conn_wait up to _xcb_out_flush.Jamey Sharp
2006-03-08Add symbols for error and reply response_types,Ian Osgood
and use XCBKeymapNotify from xcb-proto.
2006-03-05Implement provably-correct sequence wrap handling. Add flag ↵Jamey Sharp
XCB_REQUEST_DISCARD_REPLY.
2006-03-03API/ABI change: XCBSendRequest returns the sequence number instead of using ↵Jamey Sharp
an out-parameter. Now 0 is a special sequence number indicating failure.
2006-03-03Add 32-bit full_sequence fields to generic errors and events, so callers can ↵Jamey Sharp
always correlate events and errors with requests correctly.
2006-03-02Separate notion of request-completed from current-request, and mark requests ↵Jamey Sharp
completed more aggressively. Detects some usage errors that are otherwise undetectable.
2006-02-27Bugfix: how about *not* leaking all pending_replies when no reply matches, ↵Jamey Sharp
as often happens with Xlib?
2006-02-27Replace readers generic list with hand-written typesafe version.Jamey Sharp
2006-02-27Rename struct XCBReplyData to reader_list to follow my naming conventions ↵Jamey Sharp
and better reflect its purpose.
2006-02-27In struct XCBReplyData, change void *data to pthread_cond_t *data. That was ↵Jamey Sharp
dumb.
2006-02-26Replace current_reply generic queue with hand-written version. No generic ↵Jamey Sharp
queues remain so delete their implementation.
2006-02-26Replace events generic queue with hand-written typesafe version.Jamey Sharp
2006-02-26API/ABI break: Add flags to XCBSendRequest, first for error-checked requests.Jamey Sharp
There's no more race condition between event and reply handling. The *RequestBlind and *RequestChecked functions are not yet implemented.
2006-02-26Replace pending_replies generic queue with a hand-implemented typesafe version.Jamey Sharp
2006-02-25XCB has not had tracing features for a long time: remove the remnants.Jamey Sharp
2006-02-24Move _xcb_read_block to xcb_in.c and make it static. Change calls in ↵Jamey Sharp
xcb_conn.c to _xcb_in_read_block instead.
2006-02-24Coalesce readn into _xcb_in_read and simplify.Jamey Sharp
2006-02-24Move _xcb_readn to xcb_in.c and make it static. Minor change to ↵Jamey Sharp
_xcb_read_block to not depend on _xcb_readn.
2006-02-23More return value changes, and make _xcb_in_read_packet static since it is ↵Jamey Sharp
not called from outside xcb_in.c.
2006-02-23More return value changes.Jamey Sharp
2006-02-23Make the return value of _xcb_conn_wait boolean, instead of syscall-like.Jamey Sharp
2006-02-18Workaround X server bug, fd.o #3210: if a GLXGetFBConfigs request is sent, ↵Jamey Sharp
fix the length field in the reply.
2006-02-18Remove xcl and CVSROOT.Josh Triplett