From 03a2cebc0259c906b247afd9062914ea41b19ef9 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 24 Sep 2024 16:18:13 +0200 Subject: [PATCH] xfree86: dri: unexport DRIDestroyWindow() and make it static 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 --- hw/xfree86/dri/dri.c | 4 +++- hw/xfree86/dri/dri.h | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/xfree86/dri/dri.c b/hw/xfree86/dri/dri.c index 6cae6f4e6..8aa138f3c 100644 --- a/hw/xfree86/dri/dri.c +++ b/hw/xfree86/dri/dri.c @@ -635,6 +635,8 @@ DRIScreenInit(ScreenPtr pScreen, DRIInfoPtr pDRIInfo, int *pDRMFD) return TRUE; } +static Bool DRIDestroyWindow(WindowPtr pWin); + Bool DRIFinishScreenInit(ScreenPtr pScreen) { @@ -1921,7 +1923,7 @@ DRITreeTraversal(WindowPtr pWin, void *data) return WT_WALKCHILDREN; } -Bool +static Bool DRIDestroyWindow(WindowPtr pWin) { ScreenPtr pScreen = pWin->drawable.pScreen; diff --git a/hw/xfree86/dri/dri.h b/hw/xfree86/dri/dri.h index a4ae27f25..6ca55405d 100644 --- a/hw/xfree86/dri/dri.h +++ b/hw/xfree86/dri/dri.h @@ -275,8 +275,6 @@ extern _X_EXPORT void *DRIGetContextStore(DRIContextPrivPtr context); extern _X_EXPORT void DRIWindowExposures(WindowPtr pWin, RegionPtr prgn); -extern _X_EXPORT Bool DRIDestroyWindow(WindowPtr pWin); - extern _X_EXPORT void DRICopyWindow(WindowPtr pWin, DDXPointRec ptOldOrg, RegionPtr prgnSrc);