Josh Triplett
86a4c0cc28
We do not conflict with Xmd.h anymore; remove the include hack from xcb_auth.c
2006-09-23 13:33:43 -07:00
Josh Triplett
4ff12a1a94
Fix some mis-conversions by api_conv.pl, and remove the now-unused Xmd types
2006-09-23 13:31:13 -07:00
Josh Triplett
a3bd6f4760
The Great XCB Renaming
...
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-23 12:22:22 -07:00
Jamey Sharp
91568d7070
Make xcb_conn.c agree that XCBSetupReq is now XCBSetupRequest.
2006-09-22 15:37:49 -07:00
Alan Coopersmith
2538acd8c8
List xproto.xml path explicitly instead of relying on GNU Make $< expansion
...
(Some non-gnu makes, such as Solaris make, only recognize $< in implicit
suffix rules, not explicit ones like this.)
2006-09-22 15:11:39 -07:00
Jamey Sharp
2c8b5994b3
Shut down the connection in all "fatal" error cases.
2006-09-21 15:35:01 -07:00
Jamey Sharp
79e3227022
Add a private connection shutdown method for error cases.
2006-09-21 15:31:14 -07:00
Jamey Sharp
7f71bf9c0f
Make all public functions do nothing on an error connection.
2006-09-21 15:18:57 -07:00
Jamey Sharp
0aa96bfc7a
Convert connection functions to return error objects.
2006-09-21 15:17:18 -07:00
Jamey Sharp
ac17ae62fe
Provide a "has error" property for XCBConnection.
2006-09-21 15:17:18 -07:00
Jamey Sharp
df7fb77d6e
Refactor XCBPollForEvent with a shorter critical section.
...
This simplifies the patch for bug #8208 later.
2006-09-21 15:05:01 -07:00
Jamey Sharp
3cc0ddf0e6
Fix bug #7261 : events do not signal the end of replies for that sequence number.
2006-09-18 14:49:22 -07:00
Jamey Sharp
a92716f1da
Finish removing deprecated functions. Fixes build failure (oops).
2006-09-13 12:15:23 -07:00
Jamey Sharp
476ccc1ba3
Ignore xproto.xml that now gets copied in while building.
2006-09-12 13:43:17 -07:00
Jamey Sharp
0d7fb3afdd
Remove deprecated public API functions in preparation for 1.0 release. Xlib-specific deprecation remains.
2006-09-12 13:25:49 -07:00
Bart Massey
d4e768fc32
Cleaned up previous fix for GNU Make stuff.
...
Got "make distcheck" to work (whatever that does).
2006-09-12 00:42:11 -07:00
Bart Massey
0c3e528563
Removed GNU make dependency.
...
Made extensions directory persist.
2006-09-11 23:29:10 -07:00
Jamey Sharp
81d6fd64c0
Handle XC-MISC request failure when allocating new XIDs. ( fixes #7001 )
2006-09-09 15:52:37 -07:00
Josh Triplett
dbd2d96893
Implement error handling plan 7.
...
Needs improvement: should not duplicate the code of every request function.
2006-07-30 22:03:50 -07:00
Josh Triplett
65ed274f05
Parameterize context in cookie-type and request-matching template.
2006-07-30 22:03:46 -07:00
Jamey Sharp
f74487e34f
Fix Keith's 32-bit wrap fix.
...
Issue 0, 1, or 2 syncs as needed and do not handle 16-bit wrap until
absolutely necessary.
2006-07-30 17:03:27 -07:00
Josh Triplett
13896d8f65
Fix typo: s/request/sequence/
2006-07-30 15:09:03 -07:00
Josh Triplett
685d8c76c2
Add XCBRequestCheck function needed for Plan 7.
2006-07-30 14:42:55 -07:00
Eric Anholt
b3a2f83f1e
Restore netinet/in.h include that was removed in the DECnet commit.
2006-07-28 15:29:05 -07:00
Eric Anholt
b7c96681b2
Replace HAVE_* tests with just checking for (__solaris__)
...
The installed headers can't be relying on the presence of the internal
config.h defines, and it was breaking the xcb build for me as well due to
config.h not being included early enough.
2006-07-25 09:13:59 -07:00
Ian Osgood
8ba93ebb75
Fix build on Solaris (use inttypes.h)
2006-07-07 07:18:41 -07:00
Ian Osgood
e0574a617b
Finally remove X.h from xcb.h, fix broken image tests.
2006-07-01 00:55:08 -07:00
Keith Packard
db2504130b
Switch sequence comparisons to handle 32-bit sequence number wrap.
...
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-07-01 00:16:07 -07:00
Josh Triplett
75fead5b86
Remove arbitrary division between xcb_types and xproto by merging
...
xcb_types.xml into xproto.xml.
2006-06-15 03:03:13 -07:00
TORRI Vincent
62749d54fd
fix compilation with c++ compilers. Remove some trailing spaces
2006-06-08 06:59:47 +02:00
Ian Osgood
829188cdd6
Deprecate XCBSync, move to XCBAuxSync.
2006-05-30 11:54:25 -07:00
Jamey Sharp
936077cbc8
Use correct word offset when testing for GetFBConfigsSGIX VendorPrivate.
2006-05-14 22:49:18 -07:00
Josh Triplett
442730a9a2
In the GLX workaround, use !strcmp to check for equality with "GLX", not strcmp.
2006-05-14 22:37:55 -07:00
Josh Triplett
2e49f58e4c
Stop overwriting CFLAGS in xcb/src/Makefile.am.
2006-05-10 14:22:27 -07:00
Donnie Berkholz
92456577db
Fix dependencies on libXCB.la to not walk down from $(top_builddir); this fixes parallel builds.
2006-05-07 15:44:37 -07:00
Ian Osgood
e6132aff2f
Move the remainder of the constants in X.h into XML enumerations.
...
Fix xcb_auth to use one of the new enumerations.
2006-04-28 15:27:09 -07:00
Josh Triplett
5c35ea63db
Add an explanation of libtool -version-info to src/Makefile.am, and add an explicit -version-info 0:0:0 for all libraries.
2006-04-27 17:20:52 -07:00
Josh Triplett
135cda6e9d
Fix a comment for the renaming of XCBConnSetupSuccessRep to XCBSetup, and fix another comment which had a copy-paste error.
2006-04-27 13:47:21 -07:00
Jamey Sharp
3e213a1bec
Declare arguments const in the various structure accessors, so XCBGetSetup is not so painful to use.
2006-04-27 10:34:22 -07:00
Jamey Sharp
dd932e025b
Rename ConnSetup* to Setup*, Setup*Rep to Setup*, and SetupSuccess* to Setup*. Provide deprecated backwards-compatability functions and typedefs for the old names, to be removed before 1.0.
2006-04-26 23:19:16 -07:00
Ian Osgood
1476dcecfd
Changes to makefile to build libXCBxtest
2006-04-26 10:50:31 -07:00
Patrick Caulfield
bb8cf58015
Add support for DECnet. Still needs configure-script options to enable.
2006-04-24 08:29:18 -07:00
Jamey Sharp
771761ccaa
Minor performance improvement: do not call _xcb_in_expect_reply unless it is needed. It is not often needed.
2006-04-20 11:51:01 -07:00
Jamey Sharp
8953a14f2b
Add <sys/select.h> to xcb_in.c to fix bug #6122 .
2006-04-19 22:48:10 -07:00
Alan Coopersmith
05a66af895
Bugfix: xcb_conn.c included <sys/fcntl.h> instead of the POSIX-standard <fcntl.h>.
2006-04-19 21:51:33 -07:00
Jamey Sharp
f090da98f3
Remove the last goto in XCB: XCBWaitForReply now permits multiple threads to force the same cookie.
2006-04-19 20:31:20 -07:00
Jamey Sharp
d5347485a5
Restructure XCBWaitForReply to eliminate two gotos.
2006-04-19 20:23:37 -07:00
Jamey Sharp
d5ab03b4b7
Fixed poll_for_reply, added comments, and refactored XCBWaitForReply to call poll_for_reply.
2006-04-19 20:15:15 -07:00
Jamey Sharp
7667adbc63
Add XCBPollForReply and deprecate XCBGetRequestRead and XCBGetQueuedRequestRead.
2006-04-19 16:49:32 -07:00
Josh Triplett
53971ea183
Merge branch 'master' of git+ssh://git.freedesktop.org/git/xcb
2006-04-16 11:23:52 -07:00