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 <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1713>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-09-24 16:18:13 +02:00 committed by Marge Bot
parent 9323ba6fed
commit 73cf8d3560
2 changed files with 3 additions and 3 deletions

View File

@ -634,6 +634,8 @@ DRIScreenInit(ScreenPtr pScreen, DRIInfoPtr pDRIInfo, int *pDRMFD)
return TRUE;
}
static Bool DRIDestroyWindow(WindowPtr pWin);
Bool
DRIFinishScreenInit(ScreenPtr pScreen)
{
@ -1920,7 +1922,7 @@ DRITreeTraversal(WindowPtr pWin, void *data)
return WT_WALKCHILDREN;
}
Bool
static Bool
DRIDestroyWindow(WindowPtr pWin)
{
ScreenPtr pScreen = pWin->drawable.pScreen;

View File

@ -277,8 +277,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);