Enrico Weigelt, metux IT consult
6896396456
dix: unexport CreateGC()
...
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/1365 >
2024-04-15 23:10:31 +00:00
Enrico Weigelt, metux IT consult
46c0ac8c70
dix: unexport ChangeGCXIDs()
...
Move non-exported gc functions to private header
No need to clutter public headers with non-exported stuff.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1365 >
2024-04-15 23:10:31 +00:00
Enrico Weigelt, metux IT consult
3b7a63e6ae
os: unexport xthread_sigmask
...
This function isn't used by drivers and there's currently no need to do so,
thus keep it out of the public module API.
Fixes: 30ac756798
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1368 >
2024-04-15 22:49:02 +00:00
Enrico Weigelt, metux IT consult
62d3114ab9
include: gc.h: drop unused defines
...
These seem to be unused for *long* time - couldn't even trace it back in
git history. Also not used by any known driver. Time to get rid of them.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1364 >
2024-04-15 22:36:06 +00:00
Enrico Weigelt, metux IT consult
cf5fab0bbe
os: unexport AccessUsingXdmcp()
...
This function is only used internally for xdmcp auth handling, not used
in 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/1344 >
2024-04-15 14:55:22 -07:00
Enrico Weigelt, metux IT consult
dd21a80219
os: unexport ChangeAccessControl()
...
this function isn't used by 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/1344 >
2024-04-15 14:55:22 -07:00
Enrico Weigelt, metux IT consult
3f00c1b6cf
os: unexport host control functions
...
these aren't used by modules/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/1344 >
2024-04-15 14:55:22 -07:00
Enrico Weigelt, metux IT consult
5a9b885118
os: unexport authorization management functions
...
Those aren't used 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/1344 >
2024-04-15 14:55:22 -07:00
Enrico Weigelt, metux IT consult
bed778ee60
os: unexport LocalAccessScopeUser()
...
this function is only used by wayland ddx, 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/1344 >
2024-04-15 14:55:22 -07:00
Enrico Weigelt, metux IT consult
e621081fa3
os: unexport EnableLocalUser() and DisableLocalUser()
...
these aren't used by module, 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/1344 >
2024-04-15 14:55:22 -07:00
Enrico Weigelt, metux IT consult
54441ff98a
os: unexport EnableLocalAccess() and DisableLocalAccess()
...
these aren't used by 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/1344 >
2024-04-15 14:44:36 -07:00
Enrico Weigelt, metux IT consult
b00fdd482c
os: unexport EnableLocalHost() and DisableLocalHost()
...
These aren't used by 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/1344 >
2024-04-15 14:44:36 -07:00
Enrico Weigelt, metux IT consult
5f19eab1ee
os: unexport local client creds handling
...
these functions aren't used by 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/1344 >
2024-04-15 14:44:34 -07:00
Enrico Weigelt, metux IT consult
cbc9f557e5
os: unexport set_font_authorizations()
...
This function is only used by DIX, 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/1344 >
2024-04-15 14:42:45 -07:00
Enrico Weigelt, metux IT consult
389b528203
os: unexport command line args handling functions
...
These functions shouldn't be called by drivers or extensions, thus
shouldn't be exported. Also moving it to separate header, so the
already huge ones aren't cluttered with even more things.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1334 >
2024-04-15 21:21:40 +00:00
Enrico Weigelt, metux IT consult
dae76bbaaf
include: move busfault.h out of public include dir
...
this header is isn't public, so it's more appropriate, where the actual
code is, which is the os/ directory.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1337 >
2024-04-15 21:10:15 +00:00
Enrico Weigelt, metux IT consult
3843a643e0
os: unexport audit functions
...
These aren't used by any drivers, so no need to keep them around in the
public driver API.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1326 >
2024-04-15 19:54:34 +00:00
Enrico Weigelt, metux IT consult
beb073813e
xkb: drop ununsed XkbNameMatchesPattern()
...
Not used anywhere, also not in drivers, so we can drop it.
Probably never been used, just added accidentially back in 2008.
Fixes: 68bd7ac193
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1477 >
2024-04-09 06:56:20 +00:00
Enrico Weigelt, metux IT consult
992aba3cb7
include: xkbstr.h: fix missing include of Xdefs.h
...
xkbstr.h uses types from Xdefs.h (eg. Bool) but doesn't include it.
If somebody includes it, w/o including Xdefs.h first, compile breaks:
../include/xkbstr.h:84:5: error: unknown type name ‘Bool’
84 | Bool active;
| ^~~~
../include/xkbstr.h:517:5: error: unknown type name ‘Bool’
517 | Bool num_groups_changed;
| ^~~~
../include/xkbstr.h:608:5: error: unknown type name ‘Bool’
608 | Bool has_own_state;
| ^~~~
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1474 >
2024-04-09 06:50:20 +00:00
Enrico Weigelt, metux IT consult
fdea36708c
xkb: drop never used XkmProbe()
...
This function was (accidentally ?) added back in 2008, but never used.
Fixes: 68bd7ac193
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1472 >
2024-04-09 06:35:05 +00:00
Erik Kurzinger
ac0bc0b3b6
Present: add PresentCapabilitySyncobj and PresentPixmapSynced
...
Signed-off-by: Erik Kurzinger <ekurzinger@nvidia.com >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/967 >
2024-04-09 06:11:03 +00:00
Erik Kurzinger
613dcb6a77
DRI3: add DRI3ImportSyncobj and DRI3FreeSyncobj
...
Adds the required infrastructure in the core DRI3 code to support
importing DRM synchronization objects from clients. This includes
support for the two new protocol requests from DRI3 version 1.4, an
internal representation of these objects in the form of the dri3_syncobj
structure, and an import_syncobj screen info callback.
The following operations are defined for dri3_syncobj objects
* free - release any server-side resources associated with the object
* has_fence - check if the fence for a timeline point is submitted
* is_signaled - check if a timeline point is signaled
* export_fence - return a sync fd corresponding to a timeline point
* import_fence - submit a sync fd as the fence for a timeline point
* signal - immediately signal a timeline point
* submitted_eventfd and signaled_eventfd - register an eventfd to be
signaled when the given timeline point is either submitted or
signaled
Implementations will be responsible for populating these function
pointers when importing a syncobj.
Signed-off-by: Erik Kurzinger <ekurzinger@nvidia.com >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/967 >
2024-04-09 06:11:03 +00:00
Erik Kurzinger
f051a2449d
DRI3: provide stub implementation of DRI3SetDRMDeviceInUse
...
DRI3 version 1.3 introduced a new request which allows clients to
provide a hint to the server about which DRM device they are using, so
that the server might return DRM format modifiers specific to that
device. However, implementing such functionality, for Xwayland in
particular, will require fairly significant architectural changes.
To avoid blocking future versions of the DRI3 extension, we provide here
a stub implementation for the request in question. The spec explicitly
states that it is only a hint that the server is free to ignore, so
strictly speaking this implementation is still correct.
Signed-off-by: Erik Kurzinger <ekurzinger@nvidia.com >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/967 >
2024-04-09 06:11:03 +00:00
Enrico Weigelt, metux IT consult
c5e88238f2
xkb: drop unused defines
...
These aren't used anywhere, neither in Xserver nor drivers,
for about 11 years now. Fallout of removing component listing support.
Fixes: 710065da37
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1458 >
2024-04-08 03:44:42 +00:00
Enrico Weigelt, metux IT consult
95faea8880
xkb: make XkbUpdateKeyTypesFromCore() static
...
This function is only used inside the same .c file where it's defined,
no outside users, also not in drivers. Thus 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/1468 >
2024-04-03 19:54:51 +02:00
Enrico Weigelt, metux IT consult
272e2915fe
config: fix wscons backend on NetBSD
...
Compiler gives warning:
../config/wscons.c: At top level:
../config/wscons.c:262:1: warning: no previous prototype for ‘config_wscons_init’ [-Wmissing-prototypes]
262 | config_wscons_init(void)
| ^~~~~~~~~~~~~~~~~~
../config/wscons.c:270:1: warning: no previous prototype for ‘config_wscons_fini’ [-Wmissing-prototypes]
270 | config_wscons_fini(void)
| ^~~~~~~~~~~~~~~~~~
Problem is: commit bcee84c3e4 wanted to enable
wscons support on NetBSD, but only added compiling config/wscons.c, but didn't
enable setting the CONFIG_WSCONS symbol, so it won't be called at all.
Fixes: bcee84c3e4
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1450 >
2024-04-02 09:50:56 +02:00
Enrico Weigelt, metux IT consult
a57b449485
include: unpexport SELINUX_* consts from include/global.h
...
globals.h shouldn't be cluttered with extension specific things, that
aren't even used by external modules/drivers.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1328 >
2024-03-25 19:40:04 +00:00
Enrico Weigelt, metux IT consult
2003adfd33
xwin: consolidate debugging symbols
...
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-19 02:05:35 +00:00
Enrico Weigelt, metux IT consult
afaad1b847
include: add comment on _XSERVER64 define
...
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-18 23:24:36 +00:00
Olivier Fourdan
701284f057
xwayland/glamor: Drop the EGLStream backend
...
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-18 15:41:17 +00:00
Enrico Weigelt, metux IT consult
b335a0fa20
dix: unexport CloseDownClient()
...
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-13 00:47:36 +00:00
Enrico Weigelt, metux IT consult
d84fd3bf19
dix: drop now obsolete cursorScreenDevPriv
...
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-12 15:24:35 +00:00
Enrico Weigelt, metux IT consult
7f13fc7d2f
dix: unexport callback manager init / teardown functions
...
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-12 15:18:17 +00:00
Enrico Weigelt, metux IT consult
8f2894c4d0
include: unexport xserver_poll.h
...
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-12 15:01:35 +00:00
Enrico Weigelt, metux IT consult
738edd3501
dix: unexport eventconvert.h functions
...
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-11 12:26:44 +01:00
Enrico Weigelt, metux IT consult
2a5e754275
dix: unexport SetAccelerationProfile()
...
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-09 18:01:52 +00:00
Enrico Weigelt, metux IT consult
1b983d7e82
dix: unexport FreeVelocityData()
...
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-09 18:01:52 +00:00
Enrico Weigelt, metux IT consult
9d3766080b
dix: unexport BasicComputeAcceleration()
...
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-09 18:01:52 +00:00
Enrico Weigelt, metux IT consult
a09f2540d2
dix: unexport ProcessVelocityData2D()
...
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-09 18:01:52 +00:00
Enrico Weigelt, metux IT consult
b598727f1c
dix: unexport InitTrackers()
...
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-09 18:01:52 +00:00
Enrico Weigelt, metux IT consult
4db1f3f760
dix: unexport InitVelocityData()
...
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-09 18:01:52 +00:00
Enrico Weigelt, metux IT consult
a3ebe4fa41
dix: move non-exported ptrveloc functions to separate header
...
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-09 18:01:52 +00:00
Enrico Weigelt, metux IT consult
c66eaf431c
include: dont install glx_extinit.h
...
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-09 17:57:25 +00:00
Enrico Weigelt, metux IT consult
02ba47f09d
os: move out Format*() functions
...
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-09 17:34:51 +00:00
Enrico Weigelt, metux IT consult
040e41c7e9
dix: unexport global variables
...
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-09 17:23:43 +00:00
Enrico Weigelt, metux IT consult
30b403b0f0
os: unexport Fopen(), Fclose(), Popen(), Pclose(), System()
...
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-09 17:18:46 +00:00
Enrico Weigelt, metux IT consult
15d3c1a6f1
os: move os_move_fd() out of public API
...
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-09 17:12:46 +00:00
Enrico Weigelt, metux IT consult
934b771f7a
os: unexport AutoResetServer()
...
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: 49f77fff14
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1372 >
2024-03-07 23:10:17 +00:00
Enrico Weigelt, metux IT consult
b1ce5543f1
dix: unexport workqueue functions
...
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-07 22:57:53 +00:00
Enrico Weigelt, metux IT consult
53a0442b87
drop remains of DMX
...
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-05 16:57:52 +01:00