summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)AuthorFilesLines
2024-03-19xwin: consolidate debugging symbolsEnrico Weigelt, metux IT consult2-7/+2
We've got three #define's that are all set at once, on enable_debugging. A comment in meson.build already asks for consolidating them into one, so just do it now. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1409>
2024-03-18include: add comment on _XSERVER64 defineEnrico Weigelt, metux IT consult1-0/+4
Since the whole 32/64 bit issue is a bit complex, it's worth adding some comment on what the _XSERVER64 symbol really is needed for. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1413>
2024-03-18xwayland/glamor: Drop the EGLStream backendOlivier Fourdan2-5/+1
Now that the NVIDIA proprietary driver has grown support for GBM, the EGLStream backend for NVIDIA GPUs is now superseded by the standard GBM backend in Xwayland. This code path is therefore not used and hardly ever tested. Remove support for EGLStream in Xwayland. Signed-off-by: Olivier Fourdan <ofourdan@redhat.com> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1386>
2024-03-13dix: unexport CloseDownClient()Enrico Weigelt, metux IT consult1-2/+0
This function isn't used by drivers, so no need to export it. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1383>
2024-03-12dix: drop now obsolete cursorScreenDevPrivEnrico Weigelt, metux IT consult1-4/+0
Since the two DDX'es which had used this key (xnest and xfree86) now using their own ones, this global key is obsolete and can be removed. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1342>
2024-03-12dix: unexport callback manager init / teardown functionsEnrico Weigelt, metux IT consult1-5/+0
Those are only needed inside DIX, thus no need to export them. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1346>
2024-03-12include: unexport xserver_poll.hEnrico Weigelt, metux IT consult1-1/+0
It doesn't seem to have any exported functions, so doesn't need to be exported to the public module API. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1352>
2024-03-11dix: unexport eventconvert.h functionsEnrico Weigelt, metux IT consult1-42/+0
This header isn't installed, so no external modules could use the functions declared there. Thus we can unexport it all. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1358>
2024-03-09dix: unexport SetAccelerationProfile()Enrico Weigelt, metux IT consult1-3/+0
Not used by any module, just locally within one source file, thus unexport and make it static Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1347>
2024-03-09dix: unexport FreeVelocityData()Enrico Weigelt, metux IT consult1-3/+0
Only used within one source, not used by external modules, thus unexport and make it static. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1347>
2024-03-09dix: unexport BasicComputeAcceleration()Enrico Weigelt, metux IT consult1-4/+0
only used locally within one source file, so unexport and make it static. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1347>
2024-03-09dix: unexport ProcessVelocityData2D()Enrico Weigelt, metux IT consult1-3/+0
Only used with on source file, so unexport and make it static. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1347>
2024-03-09dix: unexport InitTrackers()Enrico Weigelt, metux IT consult1-3/+0
Not used by any modules, thus no need to export it. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1347>
2024-03-09dix: unexport InitVelocityData()Enrico Weigelt, metux IT consult1-3/+0
Not used by any modules, not even outside the source file, thus no need to export it. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1347>
2024-03-09dix: move non-exported ptrveloc functions to separate headerEnrico Weigelt, metux IT consult1-35/+1
unclutter ptrveloc.h by moving non-exported declarations into their own private header file. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1347>
2024-03-09include: dont install glx_extinit.hEnrico Weigelt, metux IT consult1-1/+0
This header isn't included by any (known) driver/module and doesn't export any functions, thus no need to install it anymore. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1361>
2024-03-09os: move out Format*() functionsEnrico Weigelt, metux IT consult1-4/+0
Move out the Format*() functions to separate source and header. These aren't exported, thus no module API change. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1312>
2024-03-09dix: unexport global variablesEnrico Weigelt, metux IT consult1-14/+3
Those aren't used by drivers, so no need to export them. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1375>
2024-03-09os: unexport Fopen(), Fclose(), Popen(), Pclose(), System()Enrico Weigelt, metux IT consult1-21/+0
These functions are just used for reading auth file or calling xkbcomp while dropping privileges, in case the Xserver is started as unprivileged user with suid-root. Thus, shouldn't be used (and aren't used) by drivers. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1370>
2024-03-09os: move os_move_fd() out of public APIEnrico Weigelt, metux IT consult1-3/+0
This function isn't used by any driver and doesn't seem to be useful for them, thus move it out of the public module API, in order to tidy it up a bit. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1366>
2024-03-07os: unexport AutoResetServer()Enrico Weigelt, metux IT consult1-2/+0
This is an internal function, not used and not supposed to be used by any drivers, so shouldn't have been exported in the first place. Fixes: 49f77fff1495c0a2050fb18f9b1fc627839bbfc2 Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1372>
2024-03-07dix: unexport workqueue functionsEnrico Weigelt, metux IT consult1-6/+0
These aren't used by drivers, so no need to export them. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1376>
2024-03-05drop remains of DMXEnrico Weigelt, metux IT consult2-10/+0
DMX has long gone, but there's still some fallout from it's removal yet to be cleaned up. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1362>
2024-03-03dix: unexport AttachOffloadGPU() and DetachOffloadGPU()Enrico Weigelt, metux IT consult1-7/+0
These aren't externally used, thus no need to export them. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1349>
2024-03-03dix: unexport AttachOutputGPU() and DetachOutputGPU()Enrico Weigelt, metux IT consult1-6/+0
These aren't externally used, thus no need to export them. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1349>
2024-03-03dix: unexport AttachUnboundGPU() and DetachUnboundGPU()Enrico Weigelt, metux IT consult1-5/+0
These aren't externally used, thus no need to export them. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1349>
2024-03-03dix: unexport RemoveGPUScreen()Enrico Weigelt, metux IT consult1-2/+0
This function isn't used by any modules/drivers, so no need to export it. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1349>
2024-03-03dix: unexport AddScreen() and AddGPUScreen()Enrico Weigelt, metux IT consult1-4/+0
These aren't used by any drivers/modules, just DDX'es, so no need to export. Note: tigervnc does use it, but it has it's own DDX, therefore directly linked in, just like the in-tree DDX'es which doesn't need exporting. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1349>
2024-03-03include: drop obsolete registry.hEnrico Weigelt, metux IT consult1-18/+0
Now that there's no actual consumer of it left, it can be dropped. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1348>
2024-03-03include: unexport registry.hEnrico Weigelt, metux IT consult1-1/+0
This file isn't included by any known modules, so no need to keep it around in the public api. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1348>
2024-03-03dix: unexport XREGISTRY_UNKNOWN defineEnrico Weigelt, metux IT consult1-5/+0
It's not used by external modules, thus no need to have it in the public API. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1348>
2024-03-03dix: unexport extension registry functionsEnrico Weigelt, metux IT consult1-12/+0
These aren't used by (known) external modules, thus no need to export them. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1348>
2024-03-03dix: unexport RegisterResourceName() and LookupResourceName()Enrico Weigelt, metux IT consult1-8/+0
These aren't used by external modules, thus no need to export them. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1348>
2024-03-03dix: unexport registry setup/teardown functionsEnrico Weigelt, metux IT consult1-7/+0
these aren't to be called by modules, thus no need to export them. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1348>
2024-03-03os: drop unneeded DDXOSVERRORF conditionalEnrico Weigelt, metux IT consult2-3/+0
This conditional practically only controls whether we have an pointer, where DDX can plug in it's own VErrorF() handler (currently only xwin doing that). The cost of having it even when DDX doesn't use it, is really negligible: it's just one pointer and an extra non-null check on it per VErrorF() call - a very cold path. Strangely, xwin has extra Getting rid of this unnecessary complexity that really hasn't any practical gain. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1329>
2024-03-03include: move xsha1.h to os/Enrico Weigelt, metux IT consult1-19/+0
This header is never exported and belongs to OS layer, thus no need to have it in include/ directory, where all the public ones are - better off under os/. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1350>
2024-03-03consolidate MITSHM and HAS_SHM symbolsEnrico Weigelt, metux IT consult2-4/+0
Both symbols are set on exactly the same condition (build_mitshm), so can be consolidated into one: MITSHM Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1296>
2024-03-03os: utils: drop obsolete System() on non-win32 targetsEnrico Weigelt, metux IT consult1-2/+0
This function is only used on WIN32 targets, so we can drop the *nix implementation. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1295>
2024-03-03include: drop closestr.h from public module APIEnrico Weigelt, metux IT consult1-1/+0
None of the public module API functions use the types defined in here, this file isn't even included anywhere (in the public headers). Thus it doesn't seem to be needed in the public API at all - so make it private. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1281>
2024-03-03include: drop unused including of closure.hEnrico Weigelt, metux IT consult2-2/+0
The headers dixfont.h and dixfontstr.h include closure.h, but don't use any definitions from it, thus the include statements can be dropped. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1280>
2024-02-29os: unexport TimerInit() and TimerForce()Enrico Weigelt, metux IT consult1-4/+0
These functions aren't used by and drivers (and TimerInit() shouldn't be be called from modules at all), thus unexport them. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1330>
2024-02-29os: drop unused GetAccessControl()Enrico Weigelt, metux IT consult1-3/+0
This function isn't used anywhere, not even in (known) modules/drivers. So we can remove it. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1343>
2024-02-23dix: unexport and move maxBigRequestSizeEnrico Weigelt, metux IT consult2-4/+0
* this symbol is a server configuration flag (can be passed via cmdline) for limiting the max size of big-requests. there shouldn't be any need to use it outside the core X server (in server modules like drivers or external extension) - therefore unexport it * in order to reduce namespace pollution of public (server module API) headers, create a new internal header for those tings (more to come) Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1275>
2024-02-23os: consolidate busfault handlingEnrico Weigelt, metux IT consult2-3/+6
The symbols HAVE_SIGACTION and BUSFAULT are set under the same conditions, so can be consolidated into one. Also define dummies when HAVE_SIGACTION is not set, so a few #ifdef's less clutterig the code. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1297>
2024-02-23Revert "include: move BUG_*() macros to separate header"Peter Hutterer2-33/+27
This breaks the xf86-input-synaptics driver: synaptics.c: In function 'clickpad_guess_clickfingers': synaptics.c:2638:5: error: implicit declaration of function 'BUG_RETURN_VAL' [-Werror=implicit-function-declaration] 2638 | BUG_RETURN_VAL(hw->num_mt_mask > sizeof(close_point) * 8, 0); This reverts commit 442aec2219e0aba5482f96e1047748416237ffaa. Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1316>
2024-02-23factor out X_REGISTRY_RESOURCE and X_REGISTRY_REQUEST to meson.buildEnrico Weigelt, metux IT consult2-8/+6
there are several feautures depending on LookupResourceName() et al, so set these symbole inside meson.build, instead of #define'ing them conditionally in registry.h Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1262>
2024-02-23dix: unexport party_like_its_1989 (retro mode)Enrico Weigelt, metux IT consult1-1/+2
The retro mode is still used, so keep it. But the flag variable really doesn't need to be part of public API. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1273>
2024-02-22include: os: fix return value of OsLookupColor()Enrico Weigelt, metux IT consult1-1/+1
The actual implementation uses Bool, but forward declaration is int. For the compiler it's practically the same, but for the programmer these have different semantics. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1313>
2024-02-19drop remains of support for old Sun compilersEnrico Weigelt, metux IT consult1-1/+1
With transition from autoconf to meson, these aren't actually supported anymore, and re-adding it isn't planned. Thus the now dead code pathes can be completely removed. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1286>
2024-02-19hw: xwayland: fix build if neither gbm nor eglstream availableEnrico Weigelt, metux IT consult1-1/+3
glamor needs to be disabled if neither gbm nor eglstream is available, otherwise build breaks. Closes: xorg/xserver#1631 Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>