Commit Graph

  • a810d1ffe4 Remove dependencies on Xmd.h and X.h (Still including X.h until defs are moved to xproto.xml and xcb-util and xcb-demo are fixed to use them.) Ian Osgood 2006-03-13 17:49:17 -08:00
  • be1302b6ef Remove last deprecation warning. Ian Osgood 2006-03-13 10:36:13 -08:00
  • d8de2c7c2a Merge branch 'master' of git+ssh://iano@git.freedesktop.org/git/xcb Ian Osgood 2006-03-12 23:03:24 -08:00
  • e7576738c3 Restructure to remove most deprecation warnings. Ian Osgood 2006-03-12 23:02:45 -08:00
  • 5e0cfa84be Use libXdmcp, if available with XdmcpWrap, for XDM-AUTHORIZATION-1. Closes bug #6106. Jamey Sharp 2006-03-12 17:15:50 -08:00
  • d69c403cba Merge branch 'master' of git+ssh://git.freedesktop.org/git/xcb Jamey Sharp 2006-03-12 13:36:33 -08:00
  • b83f18a4cc Only _xcb_conn_wait calls _xcb_out_write now, so move it to xcb_conn.c and make it static. Jamey Sharp 2006-03-12 13:20:29 -08:00
  • fb61c94d68 Remove c->out.vec. Pass iovecs directly down the call tree. Add _xcb_out_flush_to, refactor other functions, make write_block static. Jamey Sharp 2006-03-12 12:40:34 -08:00
  • 5cdc02e344 Portability fixes. Should help DragonFly and Solaris, and should not hurt anything else. Tested only on linux so far though. Jamey Sharp 2006-03-11 20:32:04 -08:00
  • 83e652f566 Move c->out.vec refs out of _xcb_conn_wait up to _xcb_out_flush. Jamey Sharp 2006-03-09 00:02:42 -08:00
  • 5b0ae3421d Merge branch 'master' of git+ssh://git.freedesktop.org/git/xcb Jamey Sharp 2006-03-08 22:50:48 -08:00
  • fd1f9cb13f Unify autofoo .gitignore bits into one top-level file, and remove resulting redundancies. Jamey Sharp 2006-03-08 22:49:59 -08:00
  • 1261a4150c Add symbols for error and reply response_types, and use XCBKeymapNotify from xcb-proto. Ian Osgood 2006-03-08 22:26:20 -08:00
  • 6fb661f3ff Bugfix: null-terminate the path in sockaddr_un before using it. This may fix itermittant connect failures. Ian Osgood 2006-03-08 21:56:57 -08:00
  • 621f891c49 Move c->out.vec refs out of _xcb_out_write up to _xcb_conn_wait. Jamey Sharp 2006-03-08 14:21:16 -08:00
  • c491eeb9a9 Fix off-by-one error that kept the last byte(s) of the output queue from being used. Jamey Sharp 2006-03-07 21:19:58 -08:00
  • 522a6e0eac Use the GCC 4 visibility extension to mark everything in xcbint.h hidden. TORRI Vincent 2006-03-07 10:25:23 -08:00
  • 5437032c7d Merge branch 'master' of git+ssh://git.freedesktop.org/git/xcb Jamey Sharp 2006-03-07 00:26:38 -08:00
  • d1cfd4d0a2 Off-by-one error in the sequence-wrapping proof, and therefore in the corresponding code. Jamey Sharp 2006-03-06 01:10:20 -08:00
  • 2ad5450ff3 wrong spaces TORRI Vincent 2006-03-05 09:49:02 +01:00
  • 81ea81c6d9 fix some font sizes TORRI Vincent 2006-03-05 09:41:11 +01:00
  • 66364da372 fixes + valid css TORRI Vincent 2006-03-05 09:40:15 +01:00
  • 01656220ef fixes + valid css TORRI Vincent 2006-03-05 09:22:03 +01:00
  • e5458e477d Implement provably-correct sequence wrap handling. Add flag XCB_REQUEST_DISCARD_REPLY. Jamey Sharp 2006-03-05 00:20:50 -08:00
  • 6659c8c63b lots of fixes. Thanks to Indan Zupancic TORRI Vincent 2006-03-05 09:05:21 +01:00
  • 6e4745bbd0 lots of fixes. Thanks to Indan Zupancic TORRI Vincent 2006-03-05 07:54:20 +01:00
  • df9c7cb4f9 Add *.tar.{bz2,gz} to .gitignore for the benefit of "make distcheck". Josh Triplett 2006-03-04 18:35:53 -08:00
  • 29f9fe0fc8 API/ABI change: XCBSendRequest returns the sequence number instead of using an out-parameter. Now 0 is a special sequence number indicating failure. Jamey Sharp 2006-03-03 11:08:10 -08:00
  • 255c21b17f Add 32-bit full_sequence fields to generic errors and events, so callers can always correlate events and errors with requests correctly. Jamey Sharp 2006-03-03 01:45:00 -08:00
  • 622b599c8f Tweak to previous API change: Require that spare iovecs fall before vector[0]. Leave vector in well-defined state. Jamey Sharp 2006-03-02 23:39:38 -08:00
  • 87905f0579 assert() that XCBSendRequest was handed enough space to set opcodes and short length fields. Jamey Sharp 2006-03-02 23:31:35 -08:00
  • 45e1cc0935 Bugfix: The fixed-length part needs two iovecs reserved, just like all the other parts. Jamey Sharp 2006-03-02 23:12:21 -08:00
  • b46953f46c Use XPath position() function instead of xsl:number, to evaluate array indices while generating code for easier readability. Jamey Sharp 2006-03-02 23:05:08 -08:00
  • 5e115e2441 API/ABI change: XCBSendRequest callers must pad to 4-byte boundaries now. When not in RAW mode, a null pointer for iov_base is replaced by up to 3 padding bytes. Jamey Sharp 2006-03-02 15:35:31 -08:00
  • ed823bf651 Separate notion of request-completed from current-request, and mark requests completed more aggressively. Detects some usage errors that are otherwise undetectable. Jamey Sharp 2006-03-02 13:49:00 -08:00
  • c05ae15b66 Buffer a couple CARD32s on the stack instead of using an extra iovec. Also a bugfix: do not hold a reference to longlen after it goes out of scope. Jamey Sharp 2006-02-27 12:12:33 -08:00
  • 8f991bdd38 Add XCB_REQUEST_RAW flag for XCBSendRequest. Jamey Sharp 2006-02-27 11:03:13 -08:00
  • 5e350126a7 Bugfix: how about *not* leaking all pending_replies when no reply matches, as often happens with Xlib? Jamey Sharp 2006-02-27 10:53:08 -08:00
  • 731c85762d Move test for other writing threads *before* allocating a sequence number. Jamey Sharp 2006-02-27 02:57:36 -08:00
  • 8ab4dcde9d _xcb_list is no longer used, so remove it. Simplify _xcb_map. Jamey Sharp 2006-02-27 02:14:48 -08:00
  • 76ad79a7ad Replace readers generic list with hand-written typesafe version. Jamey Sharp 2006-02-27 01:43:07 -08:00
  • fa71b9b835 Rename struct XCBReplyData to reader_list to follow my naming conventions and better reflect its purpose. Jamey Sharp 2006-02-27 01:06:15 -08:00
  • ff665b5726 In struct XCBReplyData, change void *data to pthread_cond_t *data. That was dumb. Jamey Sharp 2006-02-27 00:54:59 -08:00
  • 50acfeae36 Delete unused xcb_list functions and refactor others. Jamey Sharp 2006-02-26 23:43:44 -08:00
  • 86ce18c22c Replace current_reply generic queue with hand-written version. No generic queues remain so delete their implementation. Jamey Sharp 2006-02-26 22:58:17 -08:00
  • 0f130b4d94 Replace events generic queue with hand-written typesafe version. Jamey Sharp 2006-02-26 18:28:50 -08:00
  • ff7b6c9124 API/ABI break: Add flags to XCBSendRequest, first for error-checked requests. There's no more race condition between event and reply handling. The *RequestBlind and *RequestChecked functions are not yet implemented. Jamey Sharp 2006-02-26 15:45:08 -08:00
  • 7875040fa1 Replace pending_replies generic queue with a hand-implemented typesafe version. Jamey Sharp 2006-02-26 02:00:03 -08:00
  • a1eff0c49a Replace my old generic map ADT with a growable array for the extension cache. Jamey Sharp 2006-02-26 01:27:01 -08:00
  • 46a7549981 XCB has not had tracing features for a long time: remove the remnants. Jamey Sharp 2006-02-25 23:27:47 -08:00
  • b6cbe83774 Rearrange an if statement that's been bothering me. Jamey Sharp 2006-02-25 23:26:55 -08:00
  • f27166f49b Coalesce _xcb_writev into _xcb_out_write and simplify. Jamey Sharp 2006-02-24 02:17:36 -08:00
  • 9463653b1e Take advantage of Requires and *.private fields for a more accurate pkg-config file. Jamey Sharp 2006-02-24 01:56:18 -08:00
  • bae98d3604 Move _xcb_set_fd_flags to xcb_conn.c and make it static. xcb_util.c now has only public functions. Jamey Sharp 2006-02-24 01:50:48 -08:00
  • 67b2649dc4 Move _xcb_read_block to xcb_in.c and make it static. Change calls in xcb_conn.c to _xcb_in_read_block instead. Jamey Sharp 2006-02-24 01:40:45 -08:00
  • 838317f4d3 Remove XCB_CEIL and use a simpler definition for XCB_PAD. Jamey Sharp 2006-02-24 01:17:03 -08:00
  • 1b50d2ee1e Quit using "-include config.h": use #ifdef HAVE_CONFIG_H etc. like everyone else. Jamey Sharp 2006-02-24 01:04:48 -08:00
  • e1c2777aba Coalesce readn into _xcb_in_read and simplify. Jamey Sharp 2006-02-24 00:59:08 -08:00
  • 3f8d0bd532 Move _xcb_readn to xcb_in.c and make it static. Minor change to _xcb_read_block to not depend on _xcb_readn. Jamey Sharp 2006-02-24 00:48:18 -08:00
  • cdf362f33a Bugfix: protect the output queue from being written while another thread is flushing it. Jamey Sharp 2006-02-24 00:25:34 -08:00
  • 4e91ae275e Simplify: Always use writev. (In _xcb_out_flush, convert the output queue to a single iovec if needed.) Jamey Sharp 2006-02-24 00:02:43 -08:00
  • 7f0bc778c8 Factor padding out of _xcb_out_write_block and into its callers, 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. Jamey Sharp 2006-02-23 22:41:59 -08:00
  • 6e29e5f2ee Add XCBGetQueuedRequestRead for Xlib that does no syscalls, just returns whatever XCB already knows about. Jamey Sharp 2006-02-23 17:50:53 -08:00
  • 26ac6292ba Minor performance fix: Change the contract on XCBGetRequestSent so that it does not waste time re-locking. This is for Xlib, and Xlib has already locked. Jamey Sharp 2006-02-23 15:29:40 -08:00
  • a736674943 Minor performance fix: Only rearrange buffers for BIG-REQUESTs. Jamey Sharp 2006-02-23 14:57:46 -08:00
  • e866bed934 Move request_written update back where it was for now: doing it early can cause XCBWaitForReply to wrongly believe that the request has been flushed. Eventually, we should fix bug #6021. Jamey Sharp 2006-02-23 14:32:11 -08:00
  • 1b83f8f8f3 Remove _xcb_assert_valid_sequence. One test is trivially true, and the other may be temporarily violated without anything bad happening. Jamey Sharp 2006-02-23 14:30:08 -08:00
  • 55c1842686 Move _xcb_write and _xcb_writev to xcb_out.c and make them static, since only _xcb_out_write calls them. Jamey Sharp 2006-02-23 12:48:27 -08:00
  • 213b572592 Ignore test byproducts. Jamey Sharp 2006-02-23 12:34:08 -08:00
  • 6149c7a6b5 More return value changes, and make _xcb_in_read_packet static since it is not called from outside xcb_in.c. Jamey Sharp 2006-02-23 12:15:09 -08:00
  • 5b1d39e27b More return value changes. Jamey Sharp 2006-02-23 11:50:12 -08:00
  • 662479760c Make the return value of _xcb_conn_wait boolean, instead of syscall-like. Jamey Sharp 2006-02-23 10:17:40 -08:00
  • f8a8b465e0 Bugfix: move request_written update *before* _xcb_conn_wait in _xcb_out_flush. Otherwise a reply may be read before we record that we have sent the request, and then XCB gets... confused. Jamey Sharp 2006-02-22 23:38:16 -08:00
  • e0a3578383 Remove USE_THREAD_ASSERT compile option. _xcb_conn_wait can no longer be re-entered, since we have no callback hooks now. Jamey Sharp 2006-02-22 23:11:36 -08:00
  • a7d749ec3f Remove vestiges of adjacent request combining implementation. It is very dead. Jamey Sharp 2006-02-22 23:09:29 -08:00
  • 06c788932b Control debugging, optimization, and warning flags all independently. Jamey Sharp 2006-02-20 00:41:39 -08:00
  • 3f98dae4a8 Merge branch 'master' of git+ssh://git.freedesktop.org/git/xcb Jamey Sharp 2006-02-18 23:57:18 -08:00
  • e346f8c8ef Update .gitignores for .o files and autofoo stuff. Jamey Sharp 2006-02-18 23:57:14 -08:00
  • f825a32135 Add missing entries to .gitignore files. Eric Anholt 2006-02-18 23:05:32 -08:00
  • 9e013b564c Merge branch 'master' of git+ssh://anholt@git.freedesktop.org/git/xcb Eric Anholt 2006-02-18 22:57:42 -08:00
  • d16efb5191 Move .cvsignore to .gitignore. Eric Anholt 2006-02-18 22:56:03 -08:00
  • 7474473f33 Quit defining _XOPEN_SOURCE. We never needed it... Jamey Sharp 2006-02-18 20:03:35 -08:00
  • 1d977c7b2d Remove the old ChangeLog file. GIT makes that obsolete. Jamey Sharp 2006-02-18 19:23:33 -08:00
  • 5b7182c659 Workaround X server bug, fd.o #3210: if a GLXGetFBConfigs request is sent, fix the length field in the reply. Jamey Sharp 2006-02-18 18:12:40 -08:00
  • 47ceed7861 Remove xcl and CVSROOT. Josh Triplett 2006-02-18 16:49:41 -08:00