summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)AuthorFilesLines
2008-12-12Remove #define NEED_EVENTS and NEED_REPLIESPeter Hutterer2-2/+0
A grep on xorg/* revealed there's no consumer of this define. Quote Alan Coopersmith: "The consumer was in past versions of the headers now located in proto/x11proto - for instance, in X11R6.0's xc/include/Xproto.h, all the event definitions were only available if NEED_EVENTS were defined, and all the reply definitions required NEED_REPLIES. Looks like Xproto.h dropped them by X11R6.3, which didn't have the #ifdef's anymore, so these are truly ancient now." Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
2008-12-10dix: move MAX_VALUATOR_EVENTS into include/input.hPeter Hutterer1-1/+4
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2008-12-10dix: purge dead device-based window access code.Peter Hutterer1-9/+0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2008-12-07Use libtool convenience libraries and better "symbol" table.Paulo Cesar Pereira de Andrade3-1/+7
All .a libraries were converted to .la, and instead of linking the Xorg binary with a mix of .a and .la, and adding some libraries more then once in the command line, etc, now it generates a single libxorg.la from all the required convenience libraries, and links with a dummy xorg.c (that should usually be the file with the main function...). This removes the requirement of some things like libosandcommon and libinit, that existed to circumvent problems when linking multiple .a and .la in the final Xorg binary. The "symbol table" is now generated dynamically, by a shell script, with an embedded gawk parser that parses cpp output. The new file sdksyms.sh is generated by hand by analyzing all Makefile.am's and making it create a sdksyms.c file, that includes all sdk headers that will add symbols for the Xorg binary. Module headers aren't read, and a in 2 files it was required to add a "<hash>ifndef XorgLoader" around declarations shared between the Xorg binary and libextmod. A few other changes were added to other sdk headers, like preventing multiple inclusion, or including other headers to satisfy dependencies. This should be a lot more portable, and better (hopefully properly) using libtool to generate convenience libraries.
2008-12-05Remove static symbol address tables in hw/xfree86/loader/*sym.{c,h}Paulo Cesar Pereira de Andrade1-1/+1
Those tables were once used to decide what symbols are visible to modules, but they were outdated. The only real usage was that, since it was taking the address of symbols, linkage should fail if the symbols were not available. Now the proper way to make symbols available to modules should be to use the _X_EXPORT macro, or not compile with hidden symbols, so that all symbols would be available. All symbols in the tables were revised to ensure they are exported, and only symbols that were not exported are ClientSleepUntil() and DuplicateModule(), that were not in the sdk for quite some time already, and should not have any users outside of the X Server (and/or builtin modules).
2008-12-03Xi: change XIUnRegisterPropertyHandler to XIUnregisterPropertyHandlerPeter Hutterer1-1/+1
CamelCase can be taken too far, and AFAICT there's no consumers of that function yet anyway. Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
2008-12-03Rework symbol visibility for easier maintenancePaulo Cesar Pereira de Andrade38-918/+963
Save in a few special cases, _X_EXPORT should not be used in C source files. Instead, it should be used in headers, and the proper C source include that header. Some special cases are symbols that need to be shared between modules, but not expected to be used by external drivers, and symbols that are accessible via LoaderSymbol/dlopen. This patch also adds conditionally some new sdk header files, depending on extensions enabled. These files were added to match pattern for other extensions/modules, that is, have the headers "deciding" symbol visibility in the sdk. These headers are: o Xext/panoramiXsrv.h, Xext/panoramiX.h o fbpict.h (unconditionally) o vidmodeproc.h o mioverlay.h (unconditionally, used only by xaa) o xfixes.h (unconditionally, symbols required by dri2) LoaderSymbol and similar functions now don't have different prototypes, in loaderProcs.h and xf86Module.h, so that both headers can be included, without the need of defining IN_LOADER. xf86NewInputDevice() device prototype readded to xf86Xinput.h, but not exported (and with a comment about it).
2008-12-02Xi: fix use of button->down - bitflags instead of int arrays.Peter Hutterer1-3/+0
The device's button down state array was changed to use DOWN_LENGTH and thus bitflags for each button in cfcb3da7. Update the DBSN events to copy this bit-wise state. Update xkb and Xi to check for the bit flag instead of the array value. Reported by ajax. Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
2008-11-30Correct static symbol XkmReadTOC and first pass on compile warning fixes.Paulo Cesar Pereira de Andrade1-11/+0
The warnings corrected were only the ones that should correct real problems. The most common one is 64 bit integers as "printf %l" arguments. Note that there is a patch related to this at: http://bugs.freedesktop.org/show_bug.cgi?id=18204
2008-11-30Remove declarations of symbols that are never defined.Paulo Cesar Pereira de Andrade3-151/+0
These symbols were removed from the X Server, or never declared. One symbol that may need special attention is XkbBuildCoreState(), that doesn't have a prototype anywhere, but is called from xkb/xkbEvents.c:XkbFilterEvents(), and also used by the macros XkbStateFieldFromRec() and XkbGrabStateFromRec() defined in include/xkbstr.h. fb/wfbrename.h also may need some cleanup, as it makes several "renames" of non existing symbols.
2008-11-26Revert "dix: Enable core devices in InitCoreDevices already."Peter Hutterer1-1/+1
I merged the wrong patch. See correct patch at: http://lists.freedesktop.org/archives/xorg/2008-November/040540.html Not activating the device before attempting to enable it would leave the sprite unset, crashing the server when enabling the real devices. This reverts commit e078901a4eca02bd3e7a80d9462dafbca939a187. Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
2008-11-25Warning fixAdam Jackson1-2/+0
Init.c:139: warning: no previous prototype for ‘ddxBeforeReset’ Just declare the prototype always, seriously.
2008-11-25include: remove ENTER_LEAVE_SEMAPHORE macros.Peter Hutterer1-6/+0
2008-11-25dix: remove unused EnterLeaveSemaphoresIsset.Peter Hutterer1-1/+0
Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
2008-11-24dix: Enable core devices in InitCoreDevices already.Peter Hutterer1-1/+1
Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com> Signed-off-by: Daniel Stone <daniel@fooishbar.org> Signed-off-by: Adam Jackson <ajax@redhat.com>
2008-11-20drop unused HAVE_LIBDRM_2_2Rémi Cardona1-3/+0
Signed-off-by: Julien Cristau <jcristau@debian.org>
2008-11-15XQuartz: Integrated xpbproxy into the server.Jeremy Huddleston1-2/+2
Added a configure option called --enable-standalone-xpbproxy which is useful for deveoping xpbproxy. The 'active' switch in preferences just disables the in-server xpbproxy (not this standalone). (cherry picked from commit 42944936326ef8732f622db9f75b79a92980550d)
2008-11-13dix: don't store enter/leave and focus semaphores in a devPrivate.Peter Hutterer2-26/+9
We need them for each window, every time a window is allocated. Storing them in a devPrivate is the wrong thing to do. This also removes the unused ENTER_LEAVE_SEMAPHORE_ISSET macro. Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com> Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2008-11-04xkb: extract the correct device in XkbFilterEvents.Peter Hutterer1-0/+2
If the event is an XI event, we need to work on the correct device, not on the VCK. Adds XIGetDevice(event) function to extract the device from an event.
2008-11-04Purge device-based WindowAccess code.Peter Hutterer1-24/+0
Really, this was a bad idea. It's not security, the UI features that would have been cool (e.g. clicking through windows) aren't implemented anyway, and there's nothing you can't achieve just by using plain XI anyway. Requires inputproto 1.9.99.6.
2008-11-04XKB: Remove pointless macrosDaniel Stone1-4/+0
These weren't even being used, which isn't overly surprising, given that they were already in the struct. Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
2008-11-04XKB: Move XKBrules.h to the server tooDaniel Stone3-1/+185
Get our own local copy of this, so we don't have to define XKB_IN_SERVER anymore. Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
2008-11-04Remove XEvIEDaniel Stone4-14/+0
It's unmaintained and has been broken for quite a while; MPX finally smashed it completely. Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
2008-11-04Xi: XINPUT has been mandatory for agesDaniel Stone1-3/+0
Ditch all #ifdef XINPUT, since it's always built. Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
2008-10-31dix: FreeDeviceClass() and friends can be static.Peter Hutterer1-3/+0
2008-10-31include: remove unused declaration for RegisterPairingClient().Peter Hutterer1-2/+0
Matching functions got removed in 004876355b43fb4d3c2bc5653a7dc1bfd3f985ee.
2008-10-31dix: remove unused GuessFreePointerDevice().Peter Hutterer1-2/+0
Not used since the MD/SD hierarchy was introduced many moons ago.
2008-10-31dix: NextFreePointerDevice() can be static.Peter Hutterer1-1/+0
2008-10-31dix: SwitchCorePointer is long gone, bury it.Peter Hutterer1-2/+0
2008-10-31dix: PairDevices() can be static, remove from input.Peter Hutterer1-4/+0
PairDevices() is only ever called in EnableDevice().
2008-10-31Move EXTENSION_BASE and EXTENSION_EVENT_BASE to misc.h.Peter Hutterer1-0/+3
2008-10-31Move MAX_DEVICES to misc.h, rename to MAXDEVICES for consistency.Peter Hutterer3-5/+4
2008-10-26Add prototypes for strlcpy/strlcatJulien Cristau2-0/+8
2008-10-14Add backtrace definitions to dix-config.h.inAdam Jackson1-0/+6
2008-10-13Xi: check all handlers before applying property changes.Peter Hutterer2-2/+4
The current code exposes to inconsistent updates, i.e. if handler N succeeds but handler N+1 fails in setting the property, an error is returned to the client although parts of the server now behave as if the property change succeeded. This patch adds a "checkonly" parameter to the SetProperty handler. The handlers are then called twice, once with checkonly set to TRUE. On the checkonly run, handlers _MUST_ return error codes if the property cannot be applied. Handlers are not permitted to actually apply the changes. On the second run, handlers are permitted to apply property changes. Errors codes returned on the second run are ignored.
2008-10-10Move xorg_backtrace() up to the OS level so we can call it from DIX.Adam Jackson1-0/+2
2008-10-10pixmap: Add some notes to devKind and devPrivate.Maarten Maathuis1-2/+2
2008-10-08Remove unused declarations.Tiago Vignatti1-2/+0
AvailableClientInput (LBX debris) and xf86XinputFinalizeInit.
2008-10-07Reinstate cursorScreenDevPrivAdam Jackson1-0/+3
2008-10-06Loader: Unexport a handful of consumerless symbols from dixsym.Adam Jackson1-2/+0
2008-10-03Remove unused wrapping for visual initialization.Adam Jackson1-2/+0
2008-10-03Remove the Must_have_memory hack.Adam Jackson1-1/+0
Also remove an astonishing amount of misunderstanding of how casts work.
2008-10-03Drop the never-called SkippedRequestCallback list.Adam Jackson1-8/+0
2008-10-03XQuartz: Added a --enable-integrated-xpbproxy configure option for building ↵Jeremy Huddleston1-0/+3
xpbproxy as an app or as a thread. (cherry picked from commit 8edc5fb38c922f28659d2f823148339a8907c4d9) (cherry picked from commit 88033a66a5549870fd053795b019d4c22950425b)
2008-09-26Push server-known properties into xserver-properties.h.Peter Hutterer2-1/+34
2008-09-26Xi: add "deletable" flag to properties, add DeleteProperty handler.Peter Hutterer2-1/+12
A property can only be deleted if any of the following is true: - if a property is deletable and all handlers return Success. - if a property is non-deleteable and the all handlers return Success AND the delete request does not come from a client (i.e. driver or the server). A client can never delete a non-deletable property.
2008-09-26Xi: allow Set/GetProperties to return a status, and honour this status code.Peter Hutterer2-13/+13
If a property handler now bails out, return the error code to the caller. This allows to be slightly more specific with the errors.
2008-09-26Xi: remove configure/query device property calls.Peter Hutterer2-30/+3
This removes all the meta-information about device properties (pending, fromClient, range, valid_values, immutable).
2008-09-23Revert "Render: Use built-in SHA1 library"Keith Packard1-0/+3
This reverts commit d3bd31fddff7894f89ba80a3cdddff49aff08db8. X.org should not be providing a custom SHA1 implementation.
2008-09-23Render: Use built-in SHA1 libraryJohn Tapsell1-3/+0
Getting an external library for SHA1 is a mess, so just use our own, regrettably. Public domain implementation.