Unverified Commit fdd1e538 authored by Mike Gabriel's avatar Mike Gabriel

Merge branch 'uli42-pr/simplify_nxdispatch' into 3.6.x

parents 718a58fb 0fb6af25
...@@ -213,16 +213,18 @@ UpdateCurrentTimeIf() ...@@ -213,16 +213,18 @@ UpdateCurrentTimeIf()
currentTime = systime; currentTime = systime;
} }
#ifndef NXAGENT_SERVER
void void
InitSelections() #ifdef NXAGENT_SERVER
xorg_InitSelections(void)
#else
InitSelections(void)
#endif
{ {
if (CurrentSelections) if (CurrentSelections)
free(CurrentSelections); free(CurrentSelections);
CurrentSelections = (Selection *)NULL; CurrentSelections = (Selection *)NULL;
NumCurrentSelections = 0; NumCurrentSelections = 0;
} }
#endif /* NXAGENT_SERVER */
#undef SMART_DEBUG #undef SMART_DEBUG
...@@ -3478,11 +3480,14 @@ InitProcVectors(void) ...@@ -3478,11 +3480,14 @@ InitProcVectors(void)
* then killed again, the client is really destroyed. * then killed again, the client is really destroyed.
*********************/ *********************/
#ifndef NXAGENT_SERVER
char dispatchExceptionAtReset = DE_RESET; char dispatchExceptionAtReset = DE_RESET;
void void
CloseDownClient(register ClientPtr client) #ifdef NXAGENT_SERVER
xorg_CloseDownClient(ClientPtr client)
#else
CloseDownClient(ClientPtr client)
#endif
{ {
Bool really_close_down = client->clientGone || Bool really_close_down = client->clientGone ||
client->closeDownMode == DestroyAll; client->closeDownMode == DestroyAll;
...@@ -3567,7 +3572,6 @@ CloseDownClient(register ClientPtr client) ...@@ -3567,7 +3572,6 @@ CloseDownClient(register ClientPtr client)
currentMaxClients--; currentMaxClients--;
} }
} }
#endif /* NXAGENT_SERVER */
static void static void
KillAllClients() KillAllClients()
...@@ -3644,9 +3648,12 @@ void InitClient(ClientPtr client, int i, void * ospriv) ...@@ -3644,9 +3648,12 @@ void InitClient(ClientPtr client, int i, void * ospriv)
client->clientIds = NULL; client->clientIds = NULL;
} }
#ifndef NXAGENT_SERVER
int int
#ifdef NXAGENT_SERVER
xorg_InitClientPrivates(ClientPtr client)
#else
InitClientPrivates(ClientPtr client) InitClientPrivates(ClientPtr client)
#endif
{ {
register char *ptr; register char *ptr;
DevUnion *ppriv; DevUnion *ppriv;
...@@ -3690,7 +3697,6 @@ InitClientPrivates(ClientPtr client) ...@@ -3690,7 +3697,6 @@ InitClientPrivates(ClientPtr client)
} }
return 1; return 1;
} }
#endif /* NXAGENT_SERVER */
/************************ /************************
* int NextAvailableClient(ospriv) * int NextAvailableClient(ospriv)
......
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