summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)AuthorFilesLines
2024-07-26treewide: replace xnfreallocarray macro call by XNFreallocarray()Enrico Weigelt, metux IT consult1-1/+0
The xnfreallocarray was added along (and just as an alias to) XNFreallocarray back a decade ago. It's just used in a few places and it's only saves us from passing the first parameter (NULL), so the actual benefit isn't really huge. No (known) driver is using it, so the macro can be dropped entirely. Fixes: ae75d50395fdd7a6bc382ba73e923c460764c702 Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1529>
2024-07-26treewide: replace xnfallocarray() calls by XNFreallocarrayEnrico Weigelt, metux IT consult1-1/+0
The xnfallocarray was added along (and just as an alias to) XNFreallocarray back a decade ago. No (known) driver is using it, so the macro can be dropped entirely. Fixes: ae75d50395fdd7a6bc382ba73e923c460764c702 Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1529>
2024-07-26os: unexport LockServer() and UnlockServer() from public module APIEnrico Weigelt, metux IT consult1-5/+0
These functions work on server process level, and shouldn't be touched by drivers at all, thus shouldn't be exported to them. (couldn't find any driver/module using these symbols) Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1320>
2024-07-26os: move defining LOCK_SERVER into mesonEnrico Weigelt, metux IT consult1-0/+1
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1320>
2024-07-20fix missing includes of <X11/Xfuncproto.h>Enrico Weigelt, metux IT consult1-0/+2
Several places using _X_ATTRIBUTE_PRINTF macro from X11/Xfuncproto.h but missing to include it, so it depends on other headers whether it's included by mere accident, which quickly causes trouble if include order changes. Cleaning that up by adding explicit include statements. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1580>
2024-06-23os: unexport fields from opaque.h not used by modules / driversEnrico Weigelt, metux IT consult1-20/+1
There're lots of field that aren't used by any modules or drivers, thus no need to keep them exported. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1351>
2024-06-23dix: unexport fields from opaque.h not used by modules/driversEnrico Weigelt, metux IT consult1-18/+0
Lots of fields from opaque.h aren't used by any drivers/modules and thus don't need to be exported at all. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1351>
2024-06-23dix: move party_like_its_1989 into dix_priv.hEnrico Weigelt, metux IT consult1-2/+0
Internal symbol, no need to have it in public header. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1351>
2024-06-23include: dix.h: fix outdated commentEnrico Weigelt, metux IT consult1-1/+1
The comment about ClientPtr also being defined in misc.h is outdated for about 20 years now: XFree86 4.3.0.1 dropped the redundant definition over there. It's still also in Xdefs.h, so the guard is still needed. Fixes: d568221710959cf7d783e6ff0fb80fb43a231124 Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1514>
2024-06-21os: move xserver_poll.h into os/ directoryEnrico Weigelt, metux IT consult1-55/+0
This header isn't public and holds defines for code in os/ directory, so no need to keep it in the global header dir - it's probably better off in os/ directory - just like we already have with many others. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1389>
2024-06-18kbd: move _XkbWantsDetectableAutoRepeat() macro into dix/events.cEnrico Weigelt, metux IT consult1-3/+0
That's the only place where it is used, so no need to keep it in a public header. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1462>
2024-06-18dix: drop unused args from CreateRootCursor()Enrico Weigelt, metux IT consult1-2/+1
The args have become dummies almost two decades ago, so no need to keep them any longer. Fixes: 0afeb0241a83796575da827bd81375c99ff10af5 Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1522>
2024-05-14xkb: unexport Xkb* defines used by xkbtext.cEnrico Weigelt, metux IT consult1-7/+0
These are only used inside xkb/*, so no need to keep them exported. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1475>
2024-05-14xkb: unexport functions from xkbtext.cEnrico Weigelt, metux IT consult1-78/+0
These are only used inside xkb/*, 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/1475>
2024-05-08os: unexport ddx callbacksEnrico Weigelt, metux IT consult1-14/+0
The DDX callbacks (where core/DIX calls into DDX) aren't supposed to be called by drivers directly, so unexport them. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1332>
2024-05-07include: xkbfile: clean up forgotten unused declarationsEnrico Weigelt, metux IT consult1-35/+11
Back in 2008, when cleaning out unused/undefined stuff, some pieces have been forgotten in commit fb22d4d928bc5d1a893494a059359da2ed2ac639. This was accidentially introduced by 68bd7ac1930b5cffb6657b8d5f5bf8ae58eae8d9. Fixes: fb22d4d928bc5d1a893494a059359da2ed2ac639 Fixes: 68bd7ac1930b5cffb6657b8d5f5bf8ae58eae8d9 Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1473>
2024-04-30include: move private definitions out of exevents.hEnrico Weigelt, metux IT consult1-178/+0
Public server module API shouldn't be clobbered with private definitions, thus move them out to private header. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1289>
2024-04-30include: move private definitions out of extinit.hEnrico Weigelt, metux IT consult3-44/+42
Public server module API shouldn't be clobbered with private definitions, thus move them out to extinit_priv.h. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1289>
2024-04-30include: move private defs to dixstruct_priv.hEnrico Weigelt, metux IT consult2-96/+1
Public server module API shouldn't be clobbered with private definitions, thus move them out to dixstruct_priv.h Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1289>
2024-04-30include: split out non-exported prototypes to dix_priv.hEnrico Weigelt, metux IT consult1-195/+7
Public server module API shouldn't be clobbered with private definitions, thus move them out to dix-intern.h Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1289>
2024-04-28xkb: make XkbInternAtom() staticEnrico Weigelt, metux IT consult1-6/+0
It's only used in the same .c file, so make it static. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1506>
2024-04-23xkb: move *_TIMER defines into xkbAccessX.cEnrico Weigelt, metux IT consult1-6/+0
These are only used in this file (and also not any external driver), so no need to have them in a public header file. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1459>
2024-04-23include: move dbus-core.h to configEnrico Weigelt, metux IT consult1-56/+0
This header is internal (not installed) and holds definitions for sources in config/, thus it fells more clean moving it to config/, too. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1357>
2024-04-23include: colormap.h: move internal typedef to dix/colormap_priv.hEnrico Weigelt, metux IT consult1-1/+0
Moving the internal EntryType typedef from "colormap.h" into newly added internal-only header "dix/colormap_priv.h" Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1283>
2024-04-22include: drop obsolete check for typeof operatorEnrico Weigelt, metux IT consult2-16/+0
It really seems that compilers on all our supported platforms (including Solaris) supporting `typeof`, so we can always use it and drop hacks with undefind behaviour entirely. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1432>
2024-04-17os: define SECURE_RPC locally instead of global config headerEnrico Weigelt, metux IT consult1-1/+0
Since this define is only used inside os subdir, move the definition there and out of the global config header. This also makes some further steps, e.g. checking whether it's supported, a litle bit easier. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1441>
2024-04-17os: unexport ForceClockId()Enrico Weigelt, metux IT consult1-4/+0
This function is only intended for DDX'es (currently just Xwayland) that need to force using another clock. Really shouldn't be called by drivers or extensions. Fixes: a779fda224bee0c4d27636503367e55ae93b33c2 Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1333>
2024-04-16os: unexport ListenToAllClients()Enrico Weigelt, metux IT consult1-2/+0
It's just called by DIX, not by any drivers/modules, 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/1387>
2024-04-16os: unexport OnlyListenToOneClient()Enrico Weigelt, metux IT consult1-2/+0
Not used by any 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/1385>
2024-04-16os: unexport MakeClientGrabPervious() and MakeClientGrabImpervious()Enrico Weigelt, metux IT consult1-4/+0
Not used by any 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/1384>
2024-04-16os: unexport Os*() functionsEnrico Weigelt, metux IT consult1-29/+0
These aren't called (and suited for being called) by drivers, thus drop them from 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/1381>
2024-04-15rename remaining RT_* defines to X11_RESTYPE_*Enrico Weigelt, metux IT consult1-9/+17
Since we already had to rename some of them, in order to fix name clashes on win32, it's now time to rename all the remaining ones. The old ones are still present as define's to the new ones, just for backwards compatibility. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1355>
2024-04-15prevent name clash on Windows w/ RT_* definesEnrico Weigelt, metux IT consult1-3/+9
Windows' native headers using some our RT_* define's names for other things. Since the naming isn't very nice anyways, introducing some new ones (X11_RESTYPE_NONE, X11_RESTYPE_FONT, X11_RESTYPE_CURSOR) and define the old ones as an alias to them, in case some out-of-tree code still uses them. With thins change, we don't need to be so extremely careful about include ordering and have explicit #undef's in order to prevent name clashes on Win32 targets. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1355>
2024-04-16dix: move closestr.h into dix directoryEnrico Weigelt, metux IT consult1-126/+0
It's only used by dix internally (actually just dixfonts.c - since at least 25 years now), thus no need to keep it in global include directory. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1388>
2024-04-15dix: unexport some lookup functionsEnrico Weigelt, metux IT consult1-21/+0
These aren't used by any 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/1380>
2024-04-16dix: unexport InitClient()Enrico Weigelt, metux IT consult1-4/+0
Not used by any driver, 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/1379>
2024-04-15dix: unexport DeleteWindowFromAnySaveSet()Enrico Weigelt, metux IT consult1-2/+0
Not used by any 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/1378>
2024-04-15os: unexport OsVendorVErrorFProc pointerEnrico Weigelt, metux IT consult1-4/+0
This pointer allows a DDX to install it's own error print handler. It's really only intended for DDXes, thus no need to have it exported to modules. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1369>
2024-04-15dix: unexport GetCurrentClient()Enrico Weigelt, metux IT consult1-2/+0
Not used by any driver, 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/1377>
2024-04-15dix: unexport CompareISOLatin1Lowered() and make it staticEnrico Weigelt, metux IT consult1-5/+0
This function isn't used by any drivers, so no need to export it. Also has just one consumer, so move it there and make it static. (and also move ISOLatin1ToLower() along with it) Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1374>
2024-04-15os: unexport OsLookupColor()Enrico Weigelt, metux IT consult1-8/+0
It's an internal function, only used by DIX, not by drivers and 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/1373>
2024-04-15dix: unexport SetClipRects()Enrico Weigelt, metux IT consult1-7/+0
Not used by any driver, 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/1365>
2024-04-15dix: unexport VerifyRectOrderEnrico Weigelt, metux IT consult1-4/+0
Not used by any driver, 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/1365>
2024-04-15dix: unexport SetDashesEnrico Weigelt, metux IT consult1-5/+0
Not used by any driver, 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/1365>
2024-04-15dix: unexport FreeDefaultStipple()Enrico Weigelt, metux IT consult1-2/+0
Not used by any driver, 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/1365>
2024-04-15dix: unexport CreateDefaultStipple()Enrico Weigelt, metux IT consult1-2/+0
Not used by any driver, 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/1365>
2024-04-15dix: unexport CreateGCperDepth()Enrico Weigelt, metux IT consult1-2/+0
Not used by any driver, 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/1365>
2024-04-15dix: unexport FreeGCperDepth()Enrico Weigelt, metux IT consult1-2/+0
Not used by any driver, 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/1365>
2024-04-15dix: unexport FreeGC()Enrico Weigelt, metux IT consult1-3/+0
Not used by any driver, 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/1365>
2024-04-15dix: unexport CopyGC()Enrico Weigelt, metux IT consult1-4/+0
Not used by any driver, 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/1365>