summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2006-11-25NetBSD doesn't have AI_ADDRCONFIG: use it only if it's available.Jamey Sharp
(cherry picked from commit 3360d0c79e98cf6b7f30b2d84f117aea0a28595d)
2006-11-23Avoid race condition when using multiple make jobsDiego 'Flameeyes' Pettenò
Avoid race condition when symlinking XML files. When declaring a rule with many files as target, the rule is called when any of them is requested, resulting in multiple for loops happening during a make process using more than one job. Also, use '$(LN_S) -f' rather than removing and recreating a file, that one should be as supported as 'rm -f' and requires one less command.
2006-11-22Remove --with-opt and --with-debug options from configure.ac; use CFLAGS insteadJosh Triplett
configure supports using custom CFLAGS, so remove the --with-opt and --with-debug options from configure.ac, and the corresponding usage of COPTFLAGS and CDEBUGFLAGS in src/Makefile.am.
2006-11-22xcb-proto has no libraries or headers, so don't use XCBPROTO_CFLAGS or ↵Jamey Sharp
XCBPROTO_LIBS.
2006-11-22Use pthread-stubs as needed, and list xdmcp in Requires.private when XCB is ↵Jamey Sharp
built to use it.
2006-11-21Replace uses of "long" with uint32_t, and similar; fixes 64-bit bugsJosh Triplett
2006-11-21Fix IP6 work for FreeBSD/Mac.Ian Osgood
2006-11-21Support XDM-AUTHORIZATION-1 on IPv6Josh Triplett
Commit by Jamey Sharp and Josh Triplett.
2006-11-20Refactor auth code to get display number from xcb_connectJosh Triplett
Change xcb_connect to pass the display number to _xcb_get_auth_info, which passes it to get_authptr. This allows get_authptr to stop hacking the display number out of the sockaddrs of various address families, such as port - X_TCP_PORT, or the number after the last X in the UNIX socket path. This also removes a portability bug introduced during the IPv6 changes: relying on '\0'-termination of the UNIX socket path in a sockaddr_un. Commit by Jamey Sharp and Josh Triplett.
2006-11-20Only use AI_NUMERICSERV if defined.Josh Triplett
2006-11-20Support authentication for IPv6 connectionsJosh Triplett
Support AF_INET6 in get_authptr, and refactor to use common code for IPv4 and v4-mapped IPv6 addresses. Commit by Jamey Sharp and Josh Triplett.
2006-11-20Support displays with IPv6 addresses or hosts which resolve to IPv6 addressesJosh Triplett
xcb_parse_display already correctly handled IPv6 displays. Now, _xcb_open_tcp uses getaddrinfo, and correctly connects to IPv6 displays. Displays can use bare IPv6 addresses, square-bracketed IPv6 addresses, or hostnames which resolve to IPv6 addresses. Since IPv6 addresses may include colons, including at the end, revise the DECnet display parsing code to avoid triggering on IPv6 addresses. Authorization may not work with IPv6 connections yet. This commit brought to you by the (display) number ::1:1.1, the letter X, the Gobby collaborative editor, Josh Triplett, and Jamey Sharp.
2006-11-19Bug #5958: Also zero out the implicit pad byte in empty requests.Jamey Sharp
2006-11-19Remove support for the <localfield> tag: nothing needs it.Jamey Sharp
Only one use of <localfield> remained, for a list length expression in xv.xml. List length parameters that don't actually appear in the protocol should be left implicit: if no length expression is given, then a localfield will be automatically created by c-client.xsl.
2006-11-19Bug #5958: zero out padding bytes in requests.Jamey Sharp
2006-11-18Provide xcb_prefetch_maximum_request_length counterpart to ↵Jamey Sharp
xcb_get_maximum_request_length.
2006-11-18Fix Doxygen warnings.Jamey Sharp
Specifically, fixes these two warnings which were emitted for every generated source file: * Warning: end of file while inside a group * Warning: group XCB_BigRequests_API already documented. Skipping documentation.
2006-10-29Added initial doxygen generation stuff. This should probably be cleaned up ↵Jeremy Kolb jkolb@brandeis.edu
later. Added support for major/minor-version attributes in the xcb tag. This is just to give some reference and help people when using *query_version.
2006-10-20fix doxy docTORRI Vincent
2006-10-19Quit treating xproto specially: handle it like all the extensions.Jamey Sharp
2006-10-19Ignore generated xinerama files.Jamey Sharp
2006-10-14Define and use constants for opcode numbers.Zephaniah E. Hull
Hard coding the opcode numbers in the function just makes it harder to figure out what's going on, but much more to the point, not defining the opcodes in the header makes it impossible to use the generated headers instead of the x11proto headers in the server. The name I settled on is very simple, for an extension by the name of xconf, and a request by the name of list_devices, we get XCB_XCONF_LIST_DEVICES. If this somehow causes problems, we can probably add a _OP somewhere in there, but. Acked-by: Jamey Sharp <jamey@minilop.net> Closes: #8641
2006-10-12Add library support for xcb-xinerama.Jeremy Kolb
This is version 1.1 of the Xinerama (PanoramiX) extension.
2006-10-08Add note to xcbxlib.h that nothing except Xlib/XCB should use it.Josh Triplett
2006-10-07Release libxcb 1.0 RC2 (0.9.92).1.0-RC2Jamey 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-07Document xcb_generate_id.Ian Osgood
2006-10-07Move xcb_generate_id from xcbext.h to xcb.hJosh Triplett
Since extensions no longer provide type-specific XID-generation functions, xcb_generate_id now forms part of the xcb client API, rather than the extension API; move it from xcbext.h to xcb.h accordingly.
2006-10-07Stop implicitly importing xproto; goes with proto change to explicitly import itJosh Triplett
2006-10-07Declare "struct foo" or "enum foo" as well as the typedef'd name "foo".Jamey Sharp
2006-10-07Handle "xidunion" instead of "union" for XID unions like DRAWABLE and FONTABLEJosh Triplett
2006-10-06Refer to the "xlib lock" rather than the "IOLock" in xcbxlib.hJosh Triplett
2006-10-06Remove XID wrapper structures and replace them with uint32_t typedefsJosh Triplett
After positive feedback from several people, we have decided to remove the XID wrapper structures that attempted to provide C type safety, and replace them with uint32_t typedefs. Feedback has indicated that these type-safety hacks generated more trouble than help. We will bump the libxcb soname at the next release.
2006-10-06Remove xcb_get_io_lock from the Xlib-specific API: it is no longer used.Jamey Sharp
2006-10-06Remove the 'int *error' out-parameter for xcb_poll_for_event.Jamey Sharp
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-25Stop installing the protocol descriptions for extensions to an extensions/Josh Triplett
subdirectory
2006-09-25Split the Xlib compatibility functions into a separate library libxcb-xlibJosh Triplett
We don't want to have to change the libxcb soname if we later manage to remove the Xlib compatibility functions, and nothing except Xlib should ever use them, so split them into a separate library.
2006-09-25We no longer need xproto: do not list it as a dependency.Jamey Sharp
2006-09-25Lowercase library names to correspond with the new API.Jamey Sharp
2006-09-23Remove the xcb_[extension]_init functions; use xcb_get_extension_data directlyJosh Triplett
2006-09-23More fixups for incorrect API conversions by api_conv.plJosh Triplett
2006-09-23We do not conflict with Xmd.h anymore; remove the include hack from xcb_auth.cJosh 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-22Make xcb_conn.c agree that XCBSetupReq is now XCBSetupRequest.Jamey Sharp
2006-09-22List xproto.xml path explicitly instead of relying on GNU Make $< expansionAlan Coopersmith
(Some non-gnu makes, such as Solaris make, only recognize $< in implicit suffix rules, not explicit ones like this.)
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