summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2024-10-22xwayland/glamor/gbm: Don't close fence_fd after xwl_glamor_wait_fenceMichel Dänzer2-5/+7
eglCreateSyncKHR takes ownership of the file descriptor. Noticed by inspection. While we're at it, move the fence_fd declaration to the scope where it's used. Last but not least, close the fd in xwl_glamor_wait_fence when bailing before calling eglCreateSyncKHR, and document that it takes ownership. Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1712>
2024-10-11os: NextDPMSTimeout: mark intentional fallthroughs in switchAlan Coopersmith1-3/+3
The comment at the top of the function tells humans the fallthroughs are intentional, but gcc doesn't parse that. Clears 3 -Wimplicit-fallthrough warnings from gcc 14.1 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1716>
2024-10-11xwayland: prevent potential null pointer dereferenceYaoBing Xiao1-1/+2
Signed-off-by: YaoBing Xiao <xiaoyaobing@uniontech.com> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1718>
2024-10-10xfree86: fbdevhw: fix pci detection on recent LinuxTj1-2/+2
Linux kernel v6.9 has changed the symlink to point to the parent device. This breaks fbdev_open() detection logic. Change it to use the subsystem symlink instead which will remain stable. Kernel v6.8: [ 14.067] (II) fbdev_open() sysfs_path=/sys/class/graphics/fb0 [ 14.067] (II) fbdev_open() buf=../../devices/platform/vesa-framebuffer.0/graphics/fb0 Kernel v6.9: [ 15.609] (II) fbdev_open() sysfs_path=/sys/class/graphics/fb0 [ 15.609] (II) fbdev_open() buf=../../devices/pci0000:00/0000:00:01.0/vesa-framebuffer.0/graphics/fb0 Originally found in automated Debian ISO QA testing [0] and confirmed in Linux [1]. Tested on kernels v6.9.7 and v6.8.12 [0] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1075713 [1] https://lore.kernel.org/lkml/lLyvPFC_APGHNfyGNHRpQy5izBikkaTPOpHooZIT3fFAoJPquSI31ZMueA99XTdr8ysir3X7O7IMdc6za-0m79vr_claeparHhoRouVgHOI=@proton.me/ Fixes: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1714 Signed-off-by: Tj <tj.iam.tj@proton.me> Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1612>
2024-10-10xfre86: drop xf86Msg() in favor of LogMessageVerb()Enrico Weigelt, metux IT consult2-14/+1
This function is doing the same like LogMessageVerb(), so no need to keep around a duplicate implementation. Leaving it as a macro, until all callers, also in drivers, have been migrated. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1679>
2024-10-10xfree86: drop xf86MsgVerb() in favor of LogMessageVerb()Enrico Weigelt, metux IT consult2-14/+3
This function is doing the same like LogMessageVerb(), so no need to keep around a duplicate implementation. Leaving it as a macro, until all callers, also in drivers, have been migrated. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1679>
2024-10-10randr: fix wrong call to RRGetScreenResources() in swapped caseEnrico Weigelt, metux IT consult1-1/+12
ProcRRGetScreenResources() vs. RRGetScreenResourcesCurrent() have different semantics - this also must be followed in byte-swapped case. Fixes: fc70839431 - Add server support for RRGetScreenResourcesCurrent Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1630>
2024-10-10xfree86: dri: unexport DRIDestroyWindow() and make it staticEnrico Weigelt, metux IT consult2-3/+3
This function is only called inside dri.c, not used by any drivers (and wouldn't make sense to do so), so no need to keep it exported. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1713>
2024-10-10xwin: fix memleak on freeing pixmapsEnrico Weigelt, metux IT consult1-3/+1
Xwin's DestroyPixmap proc just free()s the PixmapRec directly, w/o catering for devPrivate's, so leaving a memleak. The correct DIX function for this is FreePixmap(). Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1710>
2024-10-10xvmc: unexport XvMCFindXvImage()Enrico Weigelt, metux IT consult2-2/+2
It's not needed by any driver, so no need to keep it exported. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1694>
2024-10-10Xext: xvmc: drop unused XvMCScreenInitProcEnrico Weigelt, metux IT consult2-4/+0
This pointer field isn't used anywhere, neither in Xorg nor in drivers. No need to keep it around any longer. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1692>
2024-10-10pseudoramix: replace PseudoramiXTrace & PseudoramiXDebug by LogMessageVerbEnrico Weigelt, metux IT consult1-30/+2
Since we're only going through macros (that are calling these), this extra wrapper function isn't needed at all - using LogMessageVerb() directly. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1689>
2024-10-10xfree86: unexport xf86SetVerbosity() and xf86SetLogVerbosity()Enrico Weigelt, metux IT consult4-12/+7
These aren't used by any modules/drivers, so no need to keep them exported. Also drop the return value, which isn't used by any caller. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1687>
2024-10-10os: drop redefining getpid() on mingw32Enrico Weigelt, metux IT consult1-5/+0
mingw32 does does have getpid() function, so conditionally redefining it to _getpid() isn't necessary. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1686>
2024-10-10os: replace LogVWrite() by LogVMessageVerb()Enrico Weigelt, metux IT consult4-13/+4
It's just a wrapper around LogVMessageVerb() and no external module using it, so can easily be optimized-away. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1683>
2024-10-10os: replace LogWrite() by LogMessageVerb()Enrico Weigelt, metux IT consult4-36/+22
It's nothing but a wrapper, doing the same as LogMessageVerb(X_NONE, ...), and no external module / driver needs it, so can be easily optimized away. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1683>
2024-10-10os.h: drop unnecessary guard on stdlib.h includeEnrico Weigelt, metux IT consult1-3/+1
It's a standard C header, that's always present, so no extra guard needed. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1684>
2024-10-10os: log: use localtime_r() on mingw buildsEnrico Weigelt, metux IT consult1-4/+2
MingW also provides localtime_r(), but needs _POSIX_THREAD_SAFE_FUNCTIONS symbol before including anything, in order for the prototype being defined. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1685>
2024-10-10xquartz: drop unused codeEnrico Weigelt, metux IT consult1-36/+0
These code pieces have been commented out since their introduction back almost two decades ago, so probably no need for them anymore. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1603>
2024-10-10swapreq.h: drop SWAPREQ_PROCEnrico Weigelt, metux IT consult1-72/+66
This macro doesn't do anything more than just making the function declarations a few bytes smaller, but this makes the code harder to read (eg. when just grepping through the code base). Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1609>
2024-10-10xfree86: modesetting: merge FreeRec() into FreeScreen()Enrico Weigelt, metux IT consult1-7/+1
No need to have one function doing nothing more than calling another one with the same prototype. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1611>
2024-10-10xfree86: os-support: move including machine/sysarch.h out of public headerEnrico Weigelt, metux IT consult2-4/+4
The only consumer seems to be one BSD specific file, the few drivers using the *_iopl seem to include it on their own. Thus, no need to keep it in public headers. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1420>
2024-10-10xfree86: os-support: move CONSOLE_X_TV_ON/OFF to i386_video.cEnrico Weigelt, metux IT consult2-7/+8
These are only used in i386_video.c, so move them there. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1420>
2024-10-10xfree86: os-support: move CONSOLE_X_MODE_ON/OFF to bsd_init.cEnrico Weigelt, metux IT consult2-6/+8
These are only used in bsd_init.c, so move them there. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1420>
2024-10-10xfree86: os-support: move CONSOLE_X_BELL into bsd_bell.cEnrico Weigelt, metux IT consult2-3/+4
This define is only used inside bsd_bell.c, so move it there. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1420>
2024-10-10xfree86: os-support: drop unused CONSOLE_GET_* definesEnrico Weigelt, metux IT consult1-9/+0
These don't seem to be used anywhere, so we can drop them. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1420>
2024-10-10xfree86. os-support: drop obsolete XMODE_* definesEnrico Weigelt, metux IT consult1-4/+0
These only had been used by xf86-video-chips, but meanwhile this defines them on it's own, so we can drop them from here now. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1420>
2024-10-10mi: misprite.h: drop unnecessary extern on functionsEnrico Weigelt, metux IT consult1-15/+13
By C standard, functions are always extern if not specified otherwise. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1501>
2024-10-10xkb: drop unused variable extDevReasonEnrico Weigelt, metux IT consult1-3/+0
fix warning on unused variable: > ../xkb/xkb.c:3576:18: warning: variable 'extDevReason' set but not used [-Wunused-but-set-variable] > unsigned int extDevReason; ^ Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1426>
2024-10-10xkb: xkbInit: fix char signess mismatchEnrico Weigelt, metux IT consult1-4/+4
On NetBSD gives warning: ../xkb/xkbInit.c: In function ‘XkbProcessArguments’: ../xkb/xkbInit.c:778:57: warning: array subscript has type ‘char’ [-Wchar-subscripts] 778 | if (((i + 1) < argc) && (isdigit(argv[i + 1][0]))) { | ^ ../xkb/xkbInit.c:782:61: warning: array subscript has type ‘char’ [-Wchar-subscripts] 782 | if (((i + 1) < argc) && (isdigit(argv[i + 1][0]))) { | ^ ../xkb/xkbInit.c:792:61: warning: array subscript has type ‘char’ [-Wchar-subscripts] 792 | if (((i + 1) < argc) && (isdigit(argv[i + 1][0]))) { | ^ ../xkb/xkbInit.c:799:61: warning: array subscript has type ‘char’ [-Wchar-subscripts] 799 | if (((i + 1) < argc) && (isdigit(argv[i + 1][0]))) { | ^ Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1455>
2024-10-10xkb: xkbtext: fix char signess mismatchEnrico Weigelt, metux IT consult1-6/+6
On NetBSD gives warning: In file included from /usr/include/ctype.h:100, from ../xkb/xkbtext.c:32: ../xkb/xkbtext.c: In function ‘XkbAtomText’: ../xkb/xkbtext.c:94:44: warning: array subscript has type ‘char’ [-Wchar-subscripts] 94 | if ((tmp == rtrn) && (!isalpha(*tmp))) | ^ ../xkb/xkbtext.c:96:31: warning: array subscript has type ‘char’ [-Wchar-subscripts] 96 | else if (!isalnum(*tmp)) | ^ ../xkb/xkbtext.c: In function ‘XkbIMWhichStateMaskText’: ../xkb/xkbtext.c:470:43: warning: array subscript has type ‘char’ [-Wchar-subscripts] 470 | buf[len + 9] = toupper(buf[len + 9]); | ^ ../xkb/xkbtext.c: In function ‘XkbControlsMaskText’: ../xkb/xkbtext.c:532:43: warning: array subscript has type ‘char’ [-Wchar-subscripts] 532 | buf[len + 3] = toupper(buf[len + 3]); | ^ ../xkb/xkbtext.c: In function ‘XkbStringText’: ../xkb/xkbtext.c:563:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] 563 | if (!isprint(*in)) { | ^ ../xkb/xkbtext.c:584:21: warning: array subscript has type ‘char’ [-Wchar-subscripts] 584 | if (isprint(*in)) | ^ Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1455>
2024-10-10os: utils: fix char signess mismatchEnrico Weigelt, metux IT consult1-2/+2
On NetBSD gives warning: In file included from /usr/include/ctype.h:100, from ../include/misc.h:174, from ../os/utils.c:75: ../os/utils.c: In function ‘VerifyDisplayName’: ../os/utils.c:624:23: warning: array subscript has type ‘char’ [-Wchar-subscripts] 624 | if (!isdigit(d[i])) { | ^ ../os/utils.c: In function ‘ProcessCommandLine’: ../os/utils.c:942:44: warning: array subscript has type ‘char’ [-Wchar-subscripts] 942 | if ((i + 1 < argc) && (isdigit(*argv[i + 1]))) | ^ Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1455>
2024-10-10os: access: fix char signess mismatchEnrico Weigelt, metux IT consult1-1/+1
On NetBSD gives warning: In file included from /usr/include/ctype.h:100, from ../include/misc.h:174, from ../os/access.c:96: ../os/access.c: In function ‘ResetHosts’: ../os/access.c:981:49: warning: array subscript has type ‘char’ [-Wchar-subscripts] 981 | lhostname[i] = tolower(ohostname[i]); | ^ Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1455>
2024-10-10xfree86: parser: scan: fix char signess mismatchEnrico Weigelt, metux IT consult1-6/+6
On NetBSD gives warning: In file included from /usr/include/ctype.h:100, from ../hw/xfree86/parser/scan.c:58: ../hw/xfree86/parser/scan.c: In function ‘xf86getToken’: ../hw/xfree86/parser/scan.c:343:50: warning: array subscript has type ‘char’ [-Wchar-subscripts] 343 | else if ((c == ',') && !isalpha(configBuf[configPos])) { | ^ ../hw/xfree86/parser/scan.c:346:50: warning: array subscript has type ‘char’ [-Wchar-subscripts] 346 | else if ((c == '-') && !isalpha(configBuf[configPos])) { | ^ ../hw/xfree86/parser/scan.c: In function ‘xf86nameCompare’: ../hw/xfree86/parser/scan.c:1031:19: warning: array subscript has type ‘char’ [-Wchar-subscripts] 1031 | c1 = (isupper(*s1) ? tolower(*s1) : *s1); | ^ ../hw/xfree86/parser/scan.c:1031:34: warning: array subscript has type ‘char’ [-Wchar-subscripts] 1031 | c1 = (isupper(*s1) ? tolower(*s1) : *s1); | ^ ../hw/xfree86/parser/scan.c:1032:19: warning: array subscript has type ‘char’ [-Wchar-subscripts] 1032 | c2 = (isupper(*s2) ? tolower(*s2) : *s2); | ^ ../hw/xfree86/parser/scan.c:1032:34: warning: array subscript has type ‘char’ [-Wchar-subscripts] 1032 | c2 = (isupper(*s2) ? tolower(*s2) : *s2); | ^ ../hw/xfree86/parser/scan.c:1042:23: warning: array subscript has type ‘char’ [-Wchar-subscripts] 1042 | c1 = (isupper(*s1) ? tolower(*s1) : *s1); | ^ ../hw/xfree86/parser/scan.c:1042:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] 1042 | c1 = (isupper(*s1) ? tolower(*s1) : *s1); | ^ ../hw/xfree86/parser/scan.c:1043:23: warning: array subscript has type ‘char’ [-Wchar-subscripts] 1043 | c2 = (isupper(*s2) ? tolower(*s2) : *s2); | ^ ../hw/xfree86/parser/scan.c:1043:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] 1043 | c2 = (isupper(*s2) ? tolower(*s2) : *s2); | ^ Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1455>
2024-10-10xfree86: common: xf86Configure: fix char signess mismatchEnrico Weigelt, metux IT consult1-1/+1
On NetBSD gives warning: ../hw/xfree86/common/xf86Configure.c: In function ‘xf86AddBusDeviceToConfigure’: ../hw/xfree86/common/xf86Configure.c:125:50: warning: array subscript has type ‘char’ [-Wchar-subscripts] 125 | for (j = 0; (lower_driver[j] = tolower(driver[j])); j++); | ^ Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1455>
2024-10-10xfree86: common: xf86pciBus: fix char signess mismatchEnrico Weigelt, metux IT consult1-4/+4
On NetBSD gives warning: In file included from /usr/include/ctype.h:100, from ../hw/xfree86/common/xf86pciBus.c:35: ../hw/xfree86/common/xf86pciBus.c: In function ‘xf86ParsePciBusString’: ../hw/xfree86/common/xf86pciBus.c:286:27: warning: array subscript has type ‘char’ [-Wchar-subscripts] 286 | if (!isdigit(d[i])) { | ^ ../hw/xfree86/common/xf86pciBus.c:293:23: warning: array subscript has type ‘char’ [-Wchar-subscripts] 293 | if (!isdigit(p[i])) { | ^ ../hw/xfree86/common/xf86pciBus.c:307:23: warning: array subscript has type ‘char’ [-Wchar-subscripts] 307 | if (!isdigit(p[i])) { | ^ ../hw/xfree86/common/xf86pciBus.c:320:23: warning: array subscript has type ‘char’ [-Wchar-subscripts] 320 | if (!isdigit(p[i])) { | ^ Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1455>
2024-10-10xfree86: common: xf86Option: fix char signess mismatchEnrico Weigelt, metux IT consult1-2/+2
On NetBSD gives warning: In file included from /usr/include/ctype.h:100, from ../hw/xfree86/common/xf86Option.c:39: ../hw/xfree86/common/xf86Option.c: In function ‘xf86NormalizeName’: ../hw/xfree86/common/xf86Option.c:915:25: warning: array subscript has type ‘char’ [-Wchar-subscripts] 915 | if (isupper(*p)) | ^ ../hw/xfree86/common/xf86Option.c:916:32: warning: array subscript has type ‘char’ [-Wchar-subscripts] 916 | *q++ = tolower(*p); | ^ Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1455>
2024-10-10xfree86: common: xf86Bus: fix char signess mismatchEnrico Weigelt, metux IT consult1-1/+1
On NetBSD gives warning: In file included from /usr/include/ctype.h:100, from ../hw/xfree86/common/xf86Bus.c:36: ../hw/xfree86/common/xf86Bus.c: In function ‘StringToBusType’: ../hw/xfree86/common/xf86Bus.c:270:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] 270 | if (isdigit(busID[0])) { | ^ Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1455>
2024-10-10dix: unexport non-public functions from dixgrabs.h and document prototypesEnrico Weigelt, metux IT consult17-80/+189
* unexport functions from dixgrab.h, that aren't used by any driver/module. * add paremeter names to prototypes * add doxygen-style documentation for all the prototypes Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2024-10-10dix: CreateGrab() rename "type" parameter to "eventType"Enrico Weigelt, metux IT consult2-4/+3
Make it clear what exactly this parameter is for. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2024-10-10dix: make FreeGrab() NULL tolerantEnrico Weigelt, metux IT consult4-15/+9
Allow NULL parameters to be passed to FreeGrab(), so callers don't all need to check on their own anymore. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2024-10-10dix: make CopyGrab() staticEnrico Weigelt, metux IT consult2-2/+3
This function is only called once in the same source file, no external callers at all. So, it doesn't need to be visible outside that file, and we can allow the compiler to do whatever fancy optimizations it might wanna do. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2024-10-10os: don't include client.h anymoreEnrico Weigelt, metux IT consult1-2/+0
There's no need to include client.h anymore. But still leaving it, in case some external consumer relying on it's presence. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2024-10-10os: unexport client id retrieval functionsEnrico Weigelt, metux IT consult6-9/+9
These aren't used by any (known) external modules, thus no need to export them. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2024-10-10os: unexport DetermineClientPid() and DetermineClientCmd()Enrico Weigelt, metux IT consult2-6/+5
These aren't used by any drivers/modules, so no need to export them. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2024-10-10os: split off internal definitions from client.hEnrico Weigelt, metux IT consult8-22/+43
The client.h file is part of the public module API, but it also contains definitions that aren't useful for being used in modules. Splitting them out into their own client_priv.h file, which isn't part of the API. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2024-10-10drop obsolete HAVE_DIX_CONFIG_HEnrico Weigelt, metux IT consult365-737/+0
The symbol controls whether to include dix-config.h, and it's always set, thus we don't need it (and dozens of ifdef's) anymore. This commit only removes them from our own source files, where we can guarantee that dix-config.h is present - leaving the (potentially exported) headers untouched. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2024-10-10dix: drop unnecessary check on HAVE_DIX_CONFIG_HEnrico Weigelt, metux IT consult36-72/+0
The dix-config.h include file is always present, so no need for an extra check and conditional include. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2024-10-10Xnest: drop obsolete ifdef HAVE_XNEST_CONFIG_HEnrico Weigelt, metux IT consult16-32/+0
These files are always compiled w/ HAVE_XNEST_CONFIG_H and always need to include this file, so the ifdef can be dropped. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2024-10-09os: log: drop unncessary HAVE_DIX_CONFIGEnrico Weigelt, metux IT consult1-2/+0
It's always defined and dix-config.h is always present, so need for the extra check. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1680>