summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)AuthorFilesLines
2010-06-03Remove support for building without XCBJosh Triplett1-5/+2
And there was much rejoicing. Signed-off-by: Josh Triplett <josh@joshtriplett.org> Reviewed-by: Jamey Sharp <jamey@minilop.net> Consensus on #xorg-devel agrees with removing --without-xcb; in particular, acks from Adam Jackson, Daniel Stone, Kristian Høgsberg, Julien Cristau, and Rémi Cardona.
2010-04-23Fix various build warningsJeremy Huddleston1-0/+7
imLcIm.c: In function '_XimCachedFileName': imLcIm.c:361: warning: format '%03x' expects type 'unsigned int', but argument 8 has type 'long unsigned int' imLcIm.c:364: warning: format '%03x' expects type 'unsigned int', but argument 8 has type 'long unsigned int' imRm.c: In function '_XimDefaultArea': imRm.c:597: warning: cast from pointer to integer of different size imRm.c: In function '_XimDefaultColormap': imRm.c:626: warning: cast from pointer to integer of different size lcFile.c:224: warning: no previous prototype for 'xlocaledir' lcUTF8.c: In function 'iconv_cstombs': lcUTF8.c:1841: warning: assignment discards qualifiers from pointer target type lcUTF8.c:1869: warning: pointer targets in passing argument 1 of 'wctomb' differ in signedness lcUTF8.c:1873: warning: pointer targets in passing argument 1 of 'wctomb' differ in signedness lcUTF8.c: In function 'iconv_mbstocs': lcUTF8.c:1935: warning: pointer targets in passing argument 2 of 'mbtowc' differ in signedness lcUTF8.c: In function 'iconv_mbtocs': lcUTF8.c:2031: warning: pointer targets in passing argument 2 of 'mbtowc' differ in signedness lcUTF8.c: In function 'iconv_mbstostr': lcUTF8.c:2121: warning: pointer targets in passing argument 2 of 'mbtowc' differ in signedness lcUTF8.c: In function 'iconv_strtombs': lcUTF8.c:2180: warning: pointer targets in passing argument 1 of 'wctomb' differ in signedness lcUTF8.c: In function '_XlcAddGB18030LocaleConverters': lcUTF8.c:2367: warning: passing argument 5 of '_XlcSetConverter' from incompatible pointer type lcUTF8.c:2368: warning: passing argument 5 of '_XlcSetConverter' from incompatible pointer type lcUTF8.c:2373: warning: passing argument 5 of '_XlcSetConverter' from incompatible pointer type lcUTF8.c:2374: warning: passing argument 5 of '_XlcSetConverter' from incompatible pointer type lcUTF8.c:2375: warning: passing argument 5 of '_XlcSetConverter' from incompatible pointer type lcUTF8.c:2376: warning: passing argument 5 of '_XlcSetConverter' from incompatible pointer type lcUTF8.c:2377: warning: passing argument 5 of '_XlcSetConverter' from incompatible pointer type XlibInt.c: In function '_XGetHostname': XlibInt.c:3441: warning: implicit declaration of function 'gethostname' XlibInt.c:3441: warning: nested extern declaration of 'gethostname' ConnDis.c: In function '_XDisconnectDisplay': ConnDis.c:540: warning: old-style function definition ConnDis.c: In function '_XSendClientPrefix': ConnDis.c:554: warning: old-style function definition ConnDis.c: In function 'XSetAuthorization': ConnDis.c:677: warning: old-style function definition Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2010-01-14Purge CVS/RCS id tagsAlan Coopersmith10-18/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-11-14.gitignore: use common defaults with custom section # 24239Gaetan Nadon1-0/+2
Using common defaults will reduce errors and maintenance. Only the very small or inexistent custom section need periodic maintenance when the structure of the component changes. Do not edit defaults.
2009-08-02Add _XFUNCPROTOBEGIN/END to Xlib-xcb.hJulien Cristau1-0/+5
X.Org bug#22252 <https://bugs.freedesktop.org/show_bug.cgi?id=22252> Reported-by: Riku Salminen <rsalmin2@cc.hut.fi> Signed-off-by: Julien Cristau <jcristau@debian.org>
2009-07-12Add generic event cookie handling to libX11.Peter Hutterer2-0/+95
Generic events require more bytes than Xlib provides in the standard XEvent. Memory allocated by the extension and stored as pointers inside the event is prone to leak by simple 'while (1) { XNextEvent(...); }' loops. This patch adds cookie handling for generic events. Extensions may register a cookie handler in addition to the normal event vectors. If an extension has registered a cookie handler, _all_ generic events for this extensions must be handled through cookies. Otherwise, the default event handler is used. The cookie handler must return an XGenericEventCookie with a pointer to the data.The rest of the event (type, serialNumber, etc.) are to be filled as normal. When a client retrieves such a cookie event, the data is stored in an internal queue (the 'cookiejar'). This data is freed on the next call to XNextEvent(). New extension interfaces: XESetWireToEventCookie(display, extension_number, cookie_handler) Where cookie_handler must set cookie->data. The data pointer is of arbitray size and type but must be a single memory block. This memory block represents the actual extension's event. New client interfaces: XGetEventData(display, *cookie); XFreeEventData(display, *cookie); If the client needs the actual event data, it must call XGetEventData() with the cookie. This returns the data pointer (and removes it from the cookie jar) and the client is then responsible for freeing the event with XFreeEventData(). It is safe to call either function with a non-cookie event. Events unclaimed or not handled by the XGetEventData() are cleaned up automatically. Example client code: XEvent event; XGenericEventCookie *cookie = &ev; XNextEvent(display, &event); if (XGetEventData(display, cookie)) { XIEvent *xievent = cookie->data; ... } else if (cookie->type == GenericEvent) { /* handle generic event */ } else { /* handle extension/core event */ } XFreeEventData(display, cookie); Cookies are not multi-threading safe. Clients that use XGetEventData() must lock between XNextEvent and XGetEventData to avoid other threads freeing cookies. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-16Drop ancient USG SysV #ifdefsAlan Coopersmith1-13/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-06-12Remove X_NOT_STDC_ENV usage. (#6527)Adam Jackson1-8/+0
2009-02-20flags member of Display structure needs to be marked volatileAlan Coopersmith1-1/+1
Since the Xlib multithreaded code checks the flags variable in _XFlushInt to see if the other threads are done yet, it has to be marked volatile so the compiler doesn't optimize out re-loading it on each trip through the while loop and end up in an impossible-to-exit infinite loop of CPU chewing. Part of fix for Sun bug 6409332: infinite loop in XFlushInt() on x86/32-bit <http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6409332> Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-02-02Allow multiple inclusions of cursorfont.h, cosmetic patch.Paulo Cesar Pereira de Andrade1-0/+5
2009-01-28Janitor: ansification, make distcheck, compiler warnings.Paulo Cesar Pereira de Andrade2-4/+0
Only convert to use "ansi prototypes" the functions warned from compilation with "./autogen.sh --prefix=/usr", on a Linux computer. Also, only address "trivial" compiler warning fixes in this commit. The new .gitignore is the output of a command like: % find . -name .gitignore -exec cat {} \; | sort | uniq and only the toplevel .gitignore file was kept.
2008-11-04Support multiple independent internal sync handlersJamey Sharp1-3/+0
Xlib has several independent tasks that need to be performed with the display unlocked. It does this by replacing the existing sync handler with one of a variety of internal sync handlers. However, if multiple internal sync handlers need to run, then the last one registering wins and previously registered internal sync handlers are never invoked. This manifested as a bug with DRI applications on Xlib/XCB as that requires both an XID handler after every XID allocation, and the periodic sequence number handler. The XID handler would win, and the sequence number handler would never be invoked. Fix this by unifying the internal sync handler mechanism into a single function that calls all of the known internal sync handlers. They all need to deal with being called when not strictly necessary now. Signed-off-by: Keith Packard <keithp@keithp.com> Signed-off-by: Jamey Sharp <jamey@minilop.net> Signed-off-by: Josh Triplett <josh@freedesktop.org>
2008-06-28Fix unbalanced parenthesis in XKBlib.h # 16551Peter Hutterer1-1/+1
X.Org Bug 16551 <http://bugs.freedesktop.org/show_bug.cgi?id=16551>
2008-06-17Strip whitespace from end of lines in source filesAlan Coopersmith7-113/+113
2008-05-12Merge branch 'master' into xgePeter Hutterer1-2/+0
2008-03-09nuke RCS IdsMatthieu Herrb1-2/+0
2007-06-03Revert "Revert "include: don't distribute XlibConf.h""Josh Triplett1-2/+4
This reverts commit 79fa3d8070d95b960ba486f2439225872471dadd. Re-revert the XlibConf.h change, which prevented distribution, not installation.
2007-06-02Revert "include: don't distribute XlibConf.h"Josh Triplett1-4/+2
This reverts commit c9e28e05ae01ce8a29bea09df759b6271865b44c. The installed XlibInt.h includes XlibConf.h , so libX11 should ship XlibConf.h. (Commit c9e28e05ae01ce8a29bea09df759b6271865b44c didn't actually prevent automake from shipping XlibConf.h, because it used nodist_x11include_HEADERS rather than nodist_HEADERS.)
2007-05-15Add XGenericEvent definition and handling for long events.Peter Hutterer1-0/+16
2006-12-16include: don't distribute XlibConf.hDaniel Stone1-2/+4
Since XlibConf.h is built by configure, don't distribute it.
2006-10-06XCL is dead; long live Xlib/XCBJosh Triplett4-54/+17
Rename all instances of "XCL" to Xlib/XCB-derived names. The only user-visible change: rename the include file <X11/xcl.h> to <X11/Xlib-xcb.h>; programs will need to change their #include lines to match. Remove the XCL cast inlines from Xlib-xcb.h.
2006-10-04No longer #include Xmd from xcl.h: we do not need it.Jamey Sharp1-1/+0
2006-09-25libxcb now installs header files in <xcb>, not <X11/XCB>.Jamey Sharp1-1/+1
2006-09-24Track XCB's "Great Renaming".Ian Osgood1-17/+17
2006-06-16Bug #3104: Compose table cache for faster X11 application starts. Part 1: ↵Matthias Hopf1-0/+7
Pointerless compose data structure, using indices instead of pointers, needed for mmap()ing data structure.
2006-04-07Bug #1625: Include keysym.h from Xutil.h.Daniel Stone1-0/+1
2006-03-31Add explicit include of Xmd.h to work around bug including both xcb.h and ↵Jamey Sharp1-0/+1
Xmd.h simultaneously.
2006-02-19Move .cvsignore to .gitignore.Jamey Sharp2-0/+0
2006-02-19Land XCB support on X.org HEAD.Jamey Sharp3-0/+65
2005-11-08See ChangeLog entry 2005-11-07 for details.XORG-6_8_99_902Kean Johnson1-4/+2
2005-07-23Modify modular libs to use Xregion.h instead of region.hKevin E Martin1-1/+1
2005-07-23lib/Xrender/Picture.c Change region.h to Xregion.h and modify internal ↵XORG-6_8_99_900Kevin E Martin1-0/+190
references to include <X11/Xregion.h>.
2005-07-09Clean up .cvsignore filesKeith Packard2-0/+4
2005-07-08Create and use XlibConf.h to match modular build which needs XTHREADS ↵Keith Packard1-0/+1
defined when building extensions
2005-07-08Create and install XlibConf.h to provide external users of Xlibint.h the ↵Keith Packard2-1/+44
defines necessary to correctly use the library. Xlibint.h should #include this new file. Add a bunch of .cvsignore files
2005-07-03Add Xtrans definitions (FONT_t, TRANS_CLIENT) to clean up warnings.Daniel Stone1-1/+1
Add XSERV_t, TRANS_SERVER, TRANS_REOPEN to quash warnings. Add #include <dix-config.h> or <xorg-config.h>, as appropriate, to all source files in the xserver/xorg tree, predicated on defines of HAVE_{DIX,XORG}_CONFIG_H. Change all Xfont includes to <X11/fonts/foo.h>.
2005-06-15Typo in ImUtil.h commit -- I AM CAPTAIN SKILL.Daniel Stone1-1/+1
2005-06-15Move ImUtil.h from src/ to include/X11/. Additionally, copy Cmap.h as a ↵Daniel Stone1-1/+2
distribution file.
2005-05-17gcc4 allows to check if sentinels are correct (a sentinel is the terminating ↵XORG-6_8_99_9Egbert Eich1-12/+12
element in a varargs list). A sentinel needs to be NULL, not 0 - which doesn't make a difference on 32bit but matters on 64bit. Furthermore it can be told that functions have a printf-like format string and argument list so that they can verify that both match. To use these features certain attributes need to be set - which are compiler specific. To do this we define macros which are expanded depending on the compiler version. For now we put those in include/Xfuncproto.h (the XFree86 DDX layer contains a file compiler.h which however is not visible outside the DDX) (Bugzilla #3268).
2005-05-13- For now put xtrans in X11/Xtrans/X11, since libX11 is looking for it in ↵XORG-6_8_99_7Søren Sandmann Pedersen1-0/+11
<X11/...> - For Xcomposite and Xdamage, don't link the build system out of the xc tree - Link the public X11 headers into their own directory - Add links to XKeysymDB and XErrorDB - Add links to all the Xlib man pages - Add links to the lcUniConv subdirectory - Conditionally include config.h in Xlib source
2004-12-02fix comment to indicate additional possible mode. i bug 1756 reported by ↵Jim Gettys1-2/+3
Owen Taylor.
2004-08-31Fixed some lockups in XIM code when the application is running with multi ↵XORG-6_8_1Egbert Eich1-0/+9
thread support. These lockups occur deep down in XFilterEvents() which itself locks when another Xlib function gets called that also locks. This fixes two instances by separating those Xlib functions into an internal (non-locking) call and a locking wrapper that is used as an external function. There may be several other such instances therefore another more general patch is eventually required (Bugzilla #1182).
2004-08-19Fix header file to #ifdef the XKB keysyms when they are used. This fixes the ↵XORG-6_7_99_903Kevin E Martin1-0/+7
X test suite build failure.
2004-04-23Merging XORG-CURRENT into trunkEgbert Eich8-1692/+613
2003-11-25Initial revisionKaleb Keithley1-0/+31
2003-11-14R6.6 is the Xorg base-lineXORG-MAINKaleb Keithley8-0/+9695