From 804b2c081b7d5473cff3b135d56379d0b1eb2fe9 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 14 Feb 2025 14:56:21 +0100 Subject: [PATCH] os: unexport CloseWellKnownConnections() Not used by any modules, so no need to keep it public. Signed-off-by: Enrico Weigelt, metux IT consult Part-of: --- hw/kdrive/ephyr/ephyr.c | 1 + hw/xnest/Display.c | 1 + hw/xwayland/xwayland-screen.c | 1 + include/os.h | 2 -- os/client_priv.h | 1 + os/utils.c | 1 + 6 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hw/kdrive/ephyr/ephyr.c b/hw/kdrive/ephyr/ephyr.c index 248aaf1bb..069270219 100644 --- a/hw/kdrive/ephyr/ephyr.c +++ b/hw/kdrive/ephyr/ephyr.c @@ -29,6 +29,7 @@ #include #include "mi/mipointer_priv.h" +#include "os/client_priv.h" #include "os/osdep.h" #include "ephyr.h" diff --git a/hw/xnest/Display.c b/hw/xnest/Display.c index a3e930135..297d9b9c8 100644 --- a/hw/xnest/Display.c +++ b/hw/xnest/Display.c @@ -19,6 +19,7 @@ is" without express or implied warranty. #include #include +#include "os/client_priv.h" #include "os/osdep.h" #include "screenint.h" diff --git a/hw/xwayland/xwayland-screen.c b/hw/xwayland/xwayland-screen.c index 55304569e..308879213 100644 --- a/hw/xwayland/xwayland-screen.c +++ b/hw/xwayland/xwayland-screen.c @@ -39,6 +39,7 @@ #include "dix/input_priv.h" #include "dix/property_priv.h" +#include "os/client_priv.h" #include "os/osdep.h" #include "os/xserver_poll.h" diff --git a/include/os.h b/include/os.h index 51b0201d3..3f2bdfbc0 100644 --- a/include/os.h +++ b/include/os.h @@ -91,8 +91,6 @@ extern _X_EXPORT void SetCriticalOutputPending(void); extern _X_EXPORT int WriteToClient(ClientPtr /*who */ , int /*count */ , const void * /*buf */ ); -extern _X_EXPORT void CloseWellKnownConnections(void); - typedef void (*NotifyFdProcPtr)(int fd, int ready, void *data); #define X_NOTIFY_NONE 0x0 diff --git a/os/client_priv.h b/os/client_priv.h index a0ab14fda..88da283da 100644 --- a/os/client_priv.h +++ b/os/client_priv.h @@ -52,6 +52,7 @@ void ResetOsBuffers(void); void NotifyParentProcess(void); void CreateWellKnownSockets(void); void ResetWellKnownSockets(void); +void CloseWellKnownConnections(void); /* exported only for DRI module, but should not be used by external drivers */ _X_EXPORT void ResetCurrentRequest(struct _Client *client); diff --git a/os/utils.c b/os/utils.c index 4f74e2d64..fbf91c3c1 100644 --- a/os/utils.c +++ b/os/utils.c @@ -78,6 +78,7 @@ __stdcall unsigned long GetTickCount(void); #include #include "os/audit.h" +#include "os/client_priv.h" #include "input.h" #include "dixfont.h"