summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)AuthorFilesLines
2024-10-10os: replace LogVWrite() by LogVMessageVerb()Enrico Weigelt, metux IT consult1-3/+0
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 consult1-3/+0
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-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-10dix: unexport non-public functions from dixgrabs.h and document prototypesEnrico Weigelt, metux IT consult2-65/+0
* 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 consult1-1/+1
Make it clear what exactly this parameter is for. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2024-10-10dix: make CopyGrab() staticEnrico Weigelt, metux IT consult1-1/+0
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: unexport client id retrieval functionsEnrico Weigelt, metux IT consult1-8/+0
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 consult1-6/+0
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 consult2-14/+6
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-09-02dix: unexport DeleteAllWindowProperties()Enrico Weigelt, metux IT consult1-2/+0
Not used by any drivers, 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/1340>
2024-09-02dix: unexport dixLookupProperty()Enrico Weigelt, metux IT consult1-6/+0
It's not used by any drivers, 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/1340>
2024-09-02include: split out non-exported stuff from property.hEnrico Weigelt, metux IT consult1-8/+0
Reduce cluttering public interface with non-exported stuff, moving those things into a separate internal header. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1340>
2024-09-02dix: drop superfluous XineramaGetCursorScreen()Enrico Weigelt, metux IT consult1-6/+0
It's only used for record extension, no external callers, thus doesn't need to be exported. Since it's just for retrieving one struct value, it's not needed at all - we can do this directly (just like we do in many other places) Note: the check on noPanoramixExtensions is superfluous, since the only call site already does it. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1345>
2024-09-02dix: unexport GetSpritePosition()Enrico Weigelt, metux IT consult1-4/+0
This function isn't used in any external 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/1345>
2024-09-02dix: unexport PointerConfinedToScreen()Enrico Weigelt, metux IT consult1-3/+0
It's not used by external 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/1345>
2024-09-02dix: unexport NewCurrentScreen()Enrico Weigelt, metux IT consult1-5/+0
It's not used by external 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/1345>
2024-09-02dix: unexport CheckCursorConfinement()Enrico Weigelt, metux IT consult1-2/+0
This function isn't used by any external module, 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/1345>
2024-09-02dix: unexport CursorMetricsFromGlyph()Enrico Weigelt, metux IT consult1-4/+0
This function isn't used by external 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/1345>
2024-09-02dix: unexport ServerBitsFromGlyph()Enrico Weigelt, metux IT consult1-5/+0
This function isn't used by external 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/1345>
2024-09-02dix: unexport cursor allocation functionsEnrico Weigelt, metux IT consult1-30/+0
These functions aren't used by external modules, 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/1345>
2024-09-02dix: unexport cursor refcounting functionsEnrico Weigelt, metux IT consult1-4/+0
These aren't used externally (drivers/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/1345>
2024-09-02dix: unexport rootCursorEnrico Weigelt, metux IT consult1-2/+0
This field is only used by DIX and XI, 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/1345>
2024-09-02os: unexport CloseDownConnection()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/1582>
2024-09-01dix: fix a misused const pointer in cursor.cmoozcheng1-1/+6
`const CursorPtr` actually means `struct _Cursor *const`, a constant pointer, which does not prevent you from accidentally modifying the value it points to, like the cursor refcnt. Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1140>
2024-09-01include: unexport XIstubs.hEnrico Weigelt, metux IT consult2-47/+0
The functions declared here aren't used by any driver, so no need to keep them in the public driver API. Since the whole file isn't included by anybody outside the xserver tree itself, it doesn't need to be installed at all, so making it internal and move it to Xi directory. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1325>
2024-09-01dix: move colormap flags into colormap_priv.h and rename themEnrico Weigelt, metux IT consult2-8/+2
These aren't used by any drivers/modules, so no need to keep them exported. As already touching them, give them a proper name prefix for clarity. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1581>
2024-09-01dix: move internal defines into colormap.cEnrico Weigelt, metux IT consult1-7/+0
These are really internal to colormap.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/1581>
2024-09-01include: colormap.h: drop unused definesEnrico Weigelt, metux IT consult1-3/+0
These aren't 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/1581>
2024-09-01include: colormap.h: drop unused typedef colorResourcePtrEnrico Weigelt, metux IT consult1-3/+0
This typedef isn't used anywhere, so can be dropped. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1581>
2024-09-01dix: unexport IsMapInstalled()Enrico Weigelt, metux IT consult1-3/+0
Not used by any driver/module, 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/1581>
2024-09-01dix: unexport StoreColors()Enrico Weigelt, metux IT consult1-5/+0
Not used by any driver/module, 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/1581>
2024-09-01dix: unexport FreeColors()Enrico Weigelt, metux IT consult1-6/+0
Not used by any driver/module, 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/1581>
2024-09-01dix: unexport AllocColorPlanes()Enrico Weigelt, metux IT consult1-12/+0
Not used by any driver/module, 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/1581>
2024-09-01dix: unexport AllocColorCells()Enrico Weigelt, metux IT consult1-8/+0
Not used by any driver/module, 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/1581>
2024-09-01dix: unexport FreeClientPixels()Enrico Weigelt, metux IT consult1-3/+0
Not used by any driver/module, 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/1581>
2024-09-01dix: unexport QueryColors()Enrico Weigelt, metux IT consult1-6/+0
Not used by any driver/module, 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/1581>
2024-09-01dix: unexport FakeFreeColor()Enrico Weigelt, metux IT consult1-3/+0
Not used by any driver/module, 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/1581>
2024-09-01dix: unexport FakeAllocColor()Enrico Weigelt, metux IT consult1-3/+0
Not used by any driver/module, 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/1581>
2024-09-01dix: unexport AllocColor()Enrico Weigelt, metux IT consult1-7/+0
Not used by any driver/module, 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/1581>
2024-09-01dix: unexport CopyColormapAndFree()Enrico Weigelt, metux IT consult1-4/+0
Not used by any driver/module, 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/1581>
2024-09-01dix: unexport TellGainedMap()Enrico Weigelt, metux IT consult1-3/+0
Not used by any driver/module, 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/1581>
2024-09-01dix: unexport TellLostMap()Enrico Weigelt, metux IT consult1-3/+0
Not used by any driver/module, 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/1581>
2024-09-01dix: unexport FreeColormap()Enrico Weigelt, metux IT consult1-3/+0
Not used by any driver/module, 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/1581>
2024-09-01dix: unexport CreateColormap()Enrico Weigelt, metux IT consult1-7/+0
Not used by any driver/module, 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/1581>
2024-09-01Revert "dix: unexport AttachOutputGPU() and DetachOutputGPU()"Enrico Weigelt, metux IT consult1-0/+4
This reverts commit 1277bb7143b8c62842384d5947c35129c31a1e9f. Nvidia driver needs them for PRIME handling. Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1371>
2024-09-01os: unexport screen saver timer functionsEnrico Weigelt, metux IT consult1-3/+0
These functions aren't supposed to be used by drivers, so move them out of the public API. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1583>
2024-09-01os: unexport WaitForSomething()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/1584>
2024-09-01include: move private definitions out of input.hEnrico Weigelt, metux IT consult1-253/+4
It's not good having the public server api headers clobbered with private definitions, so cleaning them up. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1354>
2024-09-01include: dixfontstr.h: drop silent dependency on libxfont2Enrico Weigelt, metux IT consult1-1/+0
This header includes libxfont2.h, but the dependency isn't stated anywhere, causing some drivers to FTBS (when libxont2.h is in non-standard location). Since this header doesn't seem to need including libxfont2.h at all, just stop including it, instead of adding yet another dependency to server SDK. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1610>