From 7bbdd50103986915ab2cce16620a32b938f200ac Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 13 Sep 2024 14:41:39 +0200 Subject: [PATCH] (!1693) xvmc: move over protocol version defines into xvmc.c These are exclusively used in one source file, so no need to keep them in a global header. Signed-off-by: Enrico Weigelt, metux IT consult --- Xext/xvmc.c | 4 +++- include/protocol-versions.h | 4 ---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Xext/xvmc.c b/Xext/xvmc.c index 3de38c035..fc0ea5cae 100644 --- a/Xext/xvmc.c +++ b/Xext/xvmc.c @@ -20,7 +20,6 @@ #include "extnsionst.h" #include "servermd.h" #include "xvmcext.h" -#include "protocol-versions.h" #ifdef HAS_XVMCSHM #include @@ -28,6 +27,9 @@ #include #endif /* HAS_XVMCSHM */ +#define SERVER_XVMC_MAJOR_VERSION 1 +#define SERVER_XVMC_MINOR_VERSION 1 + #define DR_CLIENT_DRIVER_NAME_SIZE 48 #define DR_BUSID_SIZE 48 diff --git a/include/protocol-versions.h b/include/protocol-versions.h index 677b02ab7..7c52473cc 100644 --- a/include/protocol-versions.h +++ b/include/protocol-versions.h @@ -157,8 +157,4 @@ #define SERVER_XRES_MAJOR_VERSION 1 #define SERVER_XRES_MINOR_VERSION 2 -/* XvMC */ -#define SERVER_XVMC_MAJOR_VERSION 1 -#define SERVER_XVMC_MINOR_VERSION 1 - #endif