mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 08:04:30 +00:00
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:
committed by
Enrico Weigelt
parent
16d6182e15
commit
56c4d68140
@@ -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");
|
||||
|
||||
@@ -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];
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -63,7 +63,7 @@ InitCard(char *name)
|
||||
}
|
||||
|
||||
void
|
||||
InitOutput(ScreenInfo * pScreenInfo, int argc, char **argv)
|
||||
InitOutput(int argc, char **argv)
|
||||
{
|
||||
KdInitOutput(argc, argv);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -65,7 +65,7 @@ Bool noGlxExtension = FALSE;
|
||||
#endif
|
||||
|
||||
void
|
||||
InitOutput(ScreenInfo * screen_info, int argc, char *argv[])
|
||||
InitOutput(int argc, char *argv[])
|
||||
{
|
||||
int i;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -786,7 +786,7 @@ ddxUseMsg(void)
|
||||
*/
|
||||
|
||||
void
|
||||
InitOutput(ScreenInfo * pScreenInfo, int argc, char *argv[])
|
||||
InitOutput(int argc, char *argv[])
|
||||
{
|
||||
int i;
|
||||
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user