Commit c5c82148 authored by Ulrich Sibiller's avatar Ulrich Sibiller

Init.c: reformat comments

parent d87988aa
...@@ -89,44 +89,35 @@ is" without express or implied warranty. ...@@ -89,44 +89,35 @@ is" without express or implied warranty.
/* /*
* ProcVector array defined in tables.c. * ProcVector array defined in tables.c.
*/ */
extern int (*ProcVector[256])(ClientPtr); extern int (*ProcVector[256])(ClientPtr);
/* /*
* From the fb code. * From the fb code.
*/ */
extern int fbGCPrivateIndex; extern int fbGCPrivateIndex;
#ifdef DPMSExtension
/* /*
* Stubs for the DPMS extension. * Stubs for the DPMS extension.
*/ */
#ifdef DPMSExtension
void DPMSSet(int level); void DPMSSet(int level);
int DPMSGet(int *level); int DPMSGet(int *level);
Bool DPMSSupported(void); Bool DPMSSupported(void);
#endif #endif
/* /*
* Our error logging function. * Our error logging function.
*/ */
void OsVendorVErrorFFunction(const char *f, va_list args); void OsVendorVErrorFFunction(const char *f, va_list args);
/* /*
* True if this is a fatal error. * True if this is a fatal error.
*/ */
extern int OsVendorVErrorFFatal; extern int OsVendorVErrorFFatal;
/* /*
* Redirect the error output to a * Redirect the error output to a different file
* different file
*/ */
extern void (*OsVendorStartRedirectErrorFProc)(); extern void (*OsVendorStartRedirectErrorFProc)();
extern void (*OsVendorEndRedirectErrorFProc)(); extern void (*OsVendorEndRedirectErrorFProc)();
...@@ -136,11 +127,8 @@ void OsVendorStartRedirectErrorFFunction(); ...@@ -136,11 +127,8 @@ void OsVendorStartRedirectErrorFFunction();
void OsVendorEndRedirectErrorFFunction(); void OsVendorEndRedirectErrorFFunction();
/* /*
* Called by InitGlobals() in the * Called by InitGlobals() in the new X server tree.
* new X server tree.
*/ */
static void nxagentGrabServerCallback(CallbackListPtr *callbacks, void *data, static void nxagentGrabServerCallback(CallbackListPtr *callbacks, void *data,
void *args); void *args);
...@@ -164,12 +152,11 @@ void ddxInitGlobals(void) ...@@ -164,12 +152,11 @@ void ddxInitGlobals(void)
} }
/* /*
* Set if the remote display supports * Set if the remote display supports backing store.
* backing store.
*/ */
/* /*
FIXME: These, if not removed, should at least FIXME: These, if not removed, should at least be moved to Display.h
be moved to Display.h and Display.c. and Display.c.
*/ */
int nxagentBackingStore; int nxagentBackingStore;
int nxagentSaveUnder; int nxagentSaveUnder;
...@@ -187,7 +174,6 @@ int nxagentSaveUnder; ...@@ -187,7 +174,6 @@ int nxagentSaveUnder;
* nxagentOpenScreen * nxagentOpenScreen
* InitInput * InitInput
*/ */
int nxagentDoFullGeneration = 1; int nxagentDoFullGeneration = 1;
/* /*
...@@ -197,9 +183,8 @@ int nxagentDoFullGeneration = 1; ...@@ -197,9 +183,8 @@ int nxagentDoFullGeneration = 1;
Bool nxagentX2go; Bool nxagentX2go;
/* /*
* Check if agent is x2go agent * Check if agent is X2goAgent
*/ */
void checkX2goAgent(void) void checkX2goAgent(void)
{ {
#ifdef TEST #ifdef TEST
...@@ -215,11 +200,9 @@ void checkX2goAgent(void) ...@@ -215,11 +200,9 @@ void checkX2goAgent(void)
nxagentX2go = False; nxagentX2go = False;
} }
/* /*
* Called at X server's initialization. * Called at X server's initialization.
*/ */
void InitOutput(ScreenInfo *screenInfo, int argc, char *argv[]) void InitOutput(ScreenInfo *screenInfo, int argc, char *argv[])
{ {
/* /*
...@@ -244,8 +227,8 @@ void InitOutput(ScreenInfo *screenInfo, int argc, char *argv[]) ...@@ -244,8 +227,8 @@ void InitOutput(ScreenInfo *screenInfo, int argc, char *argv[])
} }
/* /*
* Avoid slowness due to buggy_repeat workaround * Avoid slowness due to buggy_repeat workaround in libcairo
* in libcairo versions >= 1.10. * versions >= 1.10.
*/ */
SetVendorRelease(70000000); SetVendorRelease(70000000);
...@@ -260,9 +243,8 @@ void InitOutput(ScreenInfo *screenInfo, int argc, char *argv[]) ...@@ -260,9 +243,8 @@ void InitOutput(ScreenInfo *screenInfo, int argc, char *argv[])
} }
/* /*
* Unset the LD_LIBRARY_PATH variable in * Unset the LD_LIBRARY_PATH variable in Popen() before calling
* Popen() before calling execl() in the * execl() in the child process.
* child process.
*/ */
NXUnsetLibraryPath(1); NXUnsetLibraryPath(1);
...@@ -314,15 +296,13 @@ void InitOutput(ScreenInfo *screenInfo, int argc, char *argv[]) ...@@ -314,15 +296,13 @@ void InitOutput(ScreenInfo *screenInfo, int argc, char *argv[])
nxagentInitBSPixmapList(); nxagentInitBSPixmapList();
/* /*
* Open the display. We are at the early startup and * Open the display. We are at the early startup and the information
* the information we'll get from the remote X server * we'll get from the remote X server will mandate some of the
* will mandate some of the characteristics of the * characteristics of the session, like the screen depth. Note that
* session, like the screen depth. Note that this re- * this reliance on the remote display at session startup should be
* liance on the remote display at session startup * removed. We should always operate at 32 bpp, internally, and do
* should be removed. We should always operate at 32 * the required translations as soon as the graphic operation needs
* bpp, internally, and do the required translations * to be realized on the remote display.
* as soon as the graphic operation needs to be real-
* ized on the remote display.
*/ */
nxagentOpenDisplay(argc, argv); nxagentOpenDisplay(argc, argv);
...@@ -393,9 +373,8 @@ FIXME: These variables, if not removed at all because have probably ...@@ -393,9 +373,8 @@ FIXME: These variables, if not removed at all because have probably
nxagentNumScreens = screenInfo->numScreens; nxagentNumScreens = screenInfo->numScreens;
/* /*
* Initialize the GCs used by the synchro- * Initialize the GCs used by the synchronization put images. We do
* nization put images. We do it here beca- * it here because we use the nxagentDefaultScreen.
* use we use the nxagentDefaultScreen.
*/ */
nxagentAllocateGraphicContexts(); nxagentAllocateGraphicContexts();
...@@ -403,8 +382,7 @@ FIXME: These variables, if not removed at all because have probably ...@@ -403,8 +382,7 @@ FIXME: These variables, if not removed at all because have probably
nxagentDoFullGeneration = nxagentFullGeneration; nxagentDoFullGeneration = nxagentFullGeneration;
/* /*
* Use a solid black root window * Use a solid black root window background.
* background.
*/ */
if (!whiteRoot) if (!whiteRoot)
...@@ -440,9 +418,8 @@ void InitInput(argc, argv) ...@@ -440,9 +418,8 @@ void InitInput(argc, argv)
mieqInit(kbd, ptr); mieqInit(kbd, ptr);
/* /*
* Add the display descriptor to the * Add the display descriptor to the set of descriptors awaited by
* set of descriptors awaited by the * the dispatcher.
* dispatcher.
*/ */
nxagentAddXConnection(); nxagentAddXConnection();
...@@ -457,10 +434,9 @@ void InitInput(argc, argv) ...@@ -457,10 +434,9 @@ void InitInput(argc, argv)
} }
/* /*
* We let the proxy flush the link on our behalf * We let the proxy flush the link on our behalf after having opened
* after having opened the display. We are now * the display. We are now entering the dispatcher. From now on
* entering the dispatcher. From now on we'll * we'll flush the proxy link explicitly.
* flush the proxy link explicitly.
*/ */
#ifdef TEST #ifdef TEST
...@@ -471,11 +447,9 @@ void InitInput(argc, argv) ...@@ -471,11 +447,9 @@ void InitInput(argc, argv)
} }
/* /*
* DDX specific abort routine. This is called * DDX specific abort routine. This is called by AbortServer() that,
* by AbortServer() that, in turn, is called * in turn, is called by FatalError().
* by FatalError().
*/ */
void AbortDDX(void) void AbortDDX(void)
{ {
nxagentDoFullGeneration = True; nxagentDoFullGeneration = True;
...@@ -483,9 +457,8 @@ void AbortDDX(void) ...@@ -483,9 +457,8 @@ void AbortDDX(void)
nxagentCloseDisplay(); nxagentCloseDisplay();
/* /*
* Do the required finalization if we * Do the required finalization if we are not going through the
* are not going through the normal * normal X server shutdown.
* X server shutdown.
*/ */
if ((dispatchException & DE_TERMINATE) == 0) if ((dispatchException & DE_TERMINATE) == 0)
...@@ -497,7 +470,6 @@ void AbortDDX(void) ...@@ -497,7 +470,6 @@ void AbortDDX(void)
/* /*
* Called by GiveUp(). * Called by GiveUp().
*/ */
void ddxGiveUp(void) void ddxGiveUp(void)
{ {
AbortDDX(); AbortDDX();
...@@ -515,12 +487,10 @@ void OsVendorInit(void) ...@@ -515,12 +487,10 @@ void OsVendorInit(void)
void OsVendorFatalError(void) void OsVendorFatalError(void)
{ {
/* /*
* Let the session terminate gracely * Let the session terminate gracely from an user's standpoint.
* from an user's standpoint.
*/ */
fprintf(stderr, "Session: Aborting session at '%s'.\n", GetTimeAsString()); fprintf(stderr, "Session: Aborting session at '%s'.\n", GetTimeAsString());
fprintf(stderr, "Session: Session aborted at '%s'.\n", GetTimeAsString()); fprintf(stderr, "Session: Session aborted at '%s'.\n", GetTimeAsString());
} }
...@@ -566,7 +536,6 @@ static void nxagentGrabServerCallback(CallbackListPtr *callbacks, void *data, ...@@ -566,7 +536,6 @@ static void nxagentGrabServerCallback(CallbackListPtr *callbacks, void *data,
} }
#ifdef DPMSExtension #ifdef DPMSExtension
void DPMSSet(int level) void DPMSSet(int level)
{ {
} }
...@@ -580,5 +549,4 @@ Bool DPMSSupported(void) ...@@ -580,5 +549,4 @@ Bool DPMSSupported(void)
{ {
return 0; return 0;
} }
#endif #endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment