xv: unexport internal variables and make them static

These variables are only used by xvmain.c (no drivers using them),
so make them static.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1512>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-04-30 13:53:04 +02:00 committed by Marge Bot
parent 354f42b25c
commit 9bb6d8b169
2 changed files with 9 additions and 19 deletions

View File

@ -55,20 +55,10 @@ SOFTWARE.
#include "scrnintstr.h" #include "scrnintstr.h"
#include <X11/extensions/Xvproto.h> #include <X11/extensions/Xvproto.h>
extern _X_EXPORT unsigned long XvExtensionGeneration;
extern _X_EXPORT unsigned long XvScreenGeneration;
extern _X_EXPORT unsigned long XvResourceGeneration;
extern _X_EXPORT int XvReqCode; extern _X_EXPORT int XvReqCode;
extern _X_EXPORT int XvEventBase;
extern _X_EXPORT int XvErrorBase; extern _X_EXPORT int XvErrorBase;
extern _X_EXPORT RESTYPE XvRTPort; extern _X_EXPORT RESTYPE XvRTPort;
extern _X_EXPORT RESTYPE XvRTEncoding;
extern _X_EXPORT RESTYPE XvRTGrab;
extern _X_EXPORT RESTYPE XvRTVideoNotify;
extern _X_EXPORT RESTYPE XvRTVideoNotifyList;
extern _X_EXPORT RESTYPE XvRTPortNotify;
typedef struct { typedef struct {
int numerator; int numerator;

View File

@ -122,20 +122,20 @@ static DevPrivateKeyRec XvScreenKeyRec;
Bool noXvExtension = FALSE; Bool noXvExtension = FALSE;
#define XvScreenKey (&XvScreenKeyRec) #define XvScreenKey (&XvScreenKeyRec)
unsigned long XvExtensionGeneration = 0; static unsigned long XvExtensionGeneration = 0;
unsigned long XvScreenGeneration = 0; static unsigned long XvScreenGeneration = 0;
unsigned long XvResourceGeneration = 0; static unsigned long XvResourceGeneration = 0;
int XvReqCode; int XvReqCode;
int XvEventBase; static int XvEventBase;
int XvErrorBase; int XvErrorBase;
RESTYPE XvRTPort; RESTYPE XvRTPort;
RESTYPE XvRTEncoding; static RESTYPE XvRTEncoding;
RESTYPE XvRTGrab; static RESTYPE XvRTGrab;
RESTYPE XvRTVideoNotify; static RESTYPE XvRTVideoNotify;
RESTYPE XvRTVideoNotifyList; static RESTYPE XvRTVideoNotifyList;
RESTYPE XvRTPortNotify; static RESTYPE XvRTPortNotify;
/* EXTERNAL */ /* EXTERNAL */