summaryrefslogtreecommitdiff
path: root/src/xcb_conn.c
AgeCommit message (Collapse)Author
2006-10-04Add xcb_xlib_lock and xcb_xlib_unlock, a special-purpose two-level recursive ↵Jamey Sharp
lock just for libX11.
2006-10-04Factor out pthread_mutex_lock and unlock calls for the iolock.Jamey Sharp
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-22Make xcb_conn.c agree that XCBSetupReq is now XCBSetupRequest.Jamey Sharp
2006-09-21Shut down the connection in all "fatal" error cases.Jamey Sharp
2006-09-21Add a private connection shutdown method for error cases.Jamey Sharp
2006-09-21Make all public functions do nothing on an error connection.Jamey Sharp
2006-09-21Convert connection functions to return error objects.Jamey Sharp
2006-09-21Provide a "has error" property for XCBConnection.Jamey Sharp
2006-04-26Rename ConnSetup* to Setup*, Setup*Rep to Setup*, and SetupSuccess* to ↵Jamey Sharp
Setup*. Provide deprecated backwards-compatability functions and typedefs for the old names, to be removed before 1.0.
2006-04-19Bugfix: xcb_conn.c included <sys/fcntl.h> instead of the POSIX-standard ↵Alan Coopersmith
<fcntl.h>.
2006-04-09Retry a select() if it returns with EINTR. Fixes IO errors in Xephyr, which isEric Anholt
often interrupted by timers.
2006-03-14Fix XCBGetSetup to match prototype.Ian Osgood
2006-03-12Merge branch 'master' of git+ssh://git.freedesktop.org/git/xcbJamey Sharp
2006-03-12Only _xcb_conn_wait calls _xcb_out_write now, so move it to xcb_conn.c and ↵Jamey Sharp
make it static.
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-11Portability fixes. Should help DragonFly and Solaris, and should not hurt ↵Jamey Sharp
anything else. Tested only on linux so far though.
2006-03-09Move c->out.vec refs out of _xcb_conn_wait up to _xcb_out_flush.Jamey Sharp
2006-03-08Move c->out.vec refs out of _xcb_out_write up to _xcb_conn_wait.Jamey Sharp
2006-02-24Move _xcb_set_fd_flags to xcb_conn.c and make it static. xcb_util.c now has ↵Jamey Sharp
only public functions.
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-23Factor padding out of _xcb_out_write_block and into its callers, ↵Jamey Sharp
XCBSendRequest and write_setup. This requires dynamically allocating memory in XCBSendRequest, but this malloc/free pair turns out to cause a 30% speed hit for the 'x11perf -noop' test -- so for the moment I use alloca where available and fall back to malloc on other platforms. Later I think I'll change the contract of XCBSendRequest so the caller is responsible for memory allocation, because the caller ought to always be able to stack-allocate here.
2006-02-23Remove _xcb_assert_valid_sequence. One test is trivially true, and the other ↵Jamey Sharp
may be temporarily violated without anything bad happening.
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-22Remove USE_THREAD_ASSERT compile option. _xcb_conn_wait can no longer be ↵Jamey Sharp
re-entered, since we have no callback hooks now.
2006-02-18Remove xcl and CVSROOT.Josh Triplett