treewide: drop ScreenInfoPtr parameter from InitOutput()

Nobody's using this pointer anymore, everybody's using the global
screenInfo structure.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-09-03 16:57:39 +02:00
committed by Enrico Weigelt
parent 16d6182e15
commit 56c4d68140
10 changed files with 11 additions and 15 deletions

View File

@@ -192,7 +192,7 @@ dix_main(int argc, char *argv[], char *envp[])
dixResetRegistry();
InitFonts();
InitCallbackManager();
InitOutput(&screenInfo, argc, argv);
InitOutput(argc, argv);
if (screenInfo.numScreens < 1)
FatalError("no screens found");

View File

@@ -24,6 +24,8 @@ void DetachUnboundGPU(ScreenPtr unbound);
void AttachOffloadGPU(ScreenPtr pScreen, ScreenPtr newScreen);
void DetachOffloadGPU(ScreenPtr slave);
void InitOutput(int argc, char **argv);
static inline ScreenPtr dixGetMasterScreen(void) {
return screenInfo.screens[0];
}

View File

@@ -1865,14 +1865,12 @@ insists that these must be the same for all screens on the server.</para>
<para>
<blockquote><programlisting>
InitOutput(pScreenInfo, argc, argv)
ScreenInfo *pScreenInfo;
InitOutput(argc, argv)
int argc;
char **argv;
</programlisting></blockquote>
Upon initialization, your DDX routine InitOutput() is called by DIX.
It is passed a pointer to screenInfo to initialize. It is also passed
the argc and argv from main() for your server for the command-line
It is passed the argc and argv from main() for your server for the command-line
arguments. These arguments may indicate what or how many screen
device(s) to use or in what way to use them. For instance, your
server command line may allow a "-D" flag followed by the name of the

View File

@@ -63,7 +63,7 @@ InitCard(char *name)
}
void
InitOutput(ScreenInfo * pScreenInfo, int argc, char **argv)
InitOutput(int argc, char **argv)
{
KdInitOutput(argc, argv);
}

View File

@@ -1046,7 +1046,7 @@ vfbScreenInit(ScreenPtr pScreen, int argc, char **argv)
} /* end vfbScreenInit */
void
InitOutput(ScreenInfo *unused, int argc, char **argv)
InitOutput(int argc, char **argv)
{
int i;
int NumFormats = 0;

View File

@@ -284,7 +284,7 @@ xf86EnsureRANDR(ScreenPtr pScreen)
* collecting the pixmap formats.
*/
void
InitOutput(ScreenInfo *unused, int argc, char **argv)
InitOutput(int argc, char **argv)
{
int i, j, k, scr_index;
const char **modulelist;

View File

@@ -65,7 +65,7 @@ Bool noGlxExtension = FALSE;
#endif
void
InitOutput(ScreenInfo * screen_info, int argc, char *argv[])
InitOutput(int argc, char *argv[])
{
int i;

View File

@@ -636,7 +636,7 @@ void DarwinAdjustScreenOrigins(void)
* SetupScreen function can be called to finalize screen setup.
*/
void
InitOutput(ScreenInfo *pScreenInfo, int argc, char **argv)
InitOutput(int argc, char **argv)
{
int i;

View File

@@ -786,7 +786,7 @@ ddxUseMsg(void)
*/
void
InitOutput(ScreenInfo * pScreenInfo, int argc, char *argv[])
InitOutput(int argc, char *argv[])
{
int i;

View File

@@ -732,8 +732,4 @@ typedef struct _ScreenInfo {
extern _X_EXPORT ScreenInfo screenInfo;
extern _X_EXPORT void InitOutput(ScreenInfo * /*pScreenInfo */ ,
int /*argc */ ,
char ** /*argv */ );
#endif /* SCREENINTSTRUCT_H */