From e48b1aaa97e25ae8df23fb4e52c7d0a5d0f92f40 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Wed, 11 Jun 2025 17:44:28 -0700 Subject: [PATCH] Revert "dix: add in-code docs for dixDestroyPixmap()" This reverts commit b61647f3a10d0b12004b28ef98525614c869e61a. Part-of: --- include/dix.h | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/include/dix.h b/include/dix.h index e40a3e64c..65e66e06c 100644 --- a/include/dix.h +++ b/include/dix.h @@ -147,20 +147,8 @@ extern _X_EXPORT void UpdateCurrentTime(void); extern _X_EXPORT void UpdateCurrentTimeIf(void); -/* - * @brief dereference a pixmap and destroy it when not used anymore - * - * Despite the name, this function unref's the pixmap, and only destroys it when - * the pixmap isn't used anymore. (perhaps it should be renamed to dixUnrefPixmap()) - * - * Note: it's also used as resource destructor callback, hence that strange args. - * (not actually finest art, but for now a good compromise, since it's already - * existing and exported, thus can easily be used by drivers, w/o breaking compat) - * - * @param pPixmap pointer to pixmap (PixmapPtr) that should be unref'ed - * @param unused ignored, only for matching the resource destructor prototype - */ -_X_EXPORT int dixDestroyPixmap(void *pPixmap, XID unused); +extern _X_EXPORT int dixDestroyPixmap(void *value, + XID pid); extern _X_EXPORT ClientPtr NextAvailableClient(void *ospriv);