1) add clientUp and clientDown ipc module notifications
2) cleanup some comments in ipcModule.h git-svn-id: svn://10.0.0.236/trunk@133893 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -32,6 +32,16 @@ struct TestModule
|
||||
static const char buf[] = "pong";
|
||||
IPC_SendMsg(client, kTestModuleID, buf, sizeof(buf));
|
||||
}
|
||||
|
||||
static void ClientUp(ipcClientHandle client)
|
||||
{
|
||||
printf("*** TestModule::ClientUp [%u]\n", IPC_GetClientID(client));
|
||||
}
|
||||
|
||||
static void ClientDown(ipcClientHandle client)
|
||||
{
|
||||
printf("*** TestModule::ClientDown [%u]\n", IPC_GetClientID(client));
|
||||
}
|
||||
};
|
||||
|
||||
static ipcModuleMethods gTestMethods =
|
||||
@@ -39,7 +49,9 @@ static ipcModuleMethods gTestMethods =
|
||||
IPC_MODULE_METHODS_VERSION,
|
||||
TestModule::Init,
|
||||
TestModule::Shutdown,
|
||||
TestModule::HandleMsg
|
||||
TestModule::HandleMsg,
|
||||
TestModule::ClientUp,
|
||||
TestModule::ClientDown
|
||||
};
|
||||
|
||||
static ipcModuleEntry gTestModuleEntry[] =
|
||||
|
||||
Reference in New Issue
Block a user