fix windows bustage

git-svn-id: svn://10.0.0.236/trunk@133271 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
darin%netscape.com
2002-11-07 06:25:58 +00:00
parent 4b947830a3
commit 1232c163ef
4 changed files with 18 additions and 17 deletions

View File

@@ -2,13 +2,14 @@
#include "ipcModuleUtil.h"
#include "ipcMessage.h"
static const nsID TestModuleID =
{ /* e628fc6e-a6a7-48c7-adba-f241d1128fb8 */
0xe628fc6e,
0xa6a7,
0x48c7,
{0xad, 0xba, 0xf2, 0x41, 0xd1, 0x12, 0x8f, 0xb8}
};
#define TEST_MODULE_ID \
{ /* e628fc6e-a6a7-48c7-adba-f241d1128fb8 */ \
0xe628fc6e, \
0xa6a7, \
0x48c7, \
{0xad, 0xba, 0xf2, 0x41, 0xd1, 0x12, 0x8f, 0xb8} \
}
static const nsID kTestModuleID = TEST_MODULE_ID;
struct TestModule
{
@@ -27,7 +28,7 @@ struct TestModule
printf("*** TestModule::HandleMsg [%s]\n", msg->Data());
ipcMessage outMsg;
static const char buf[] = "pong";
outMsg.Init(TestModuleID, buf, sizeof(buf));
outMsg.Init(kTestModuleID, buf, sizeof(buf));
IPC_SendMsg(client, &outMsg);
}
};
@@ -42,7 +43,7 @@ static ipcModuleMethods gTestMethods =
static ipcModuleEntry gTestModuleEntry[] =
{
{ TestModuleID, &gTestMethods }
{ TEST_MODULE_ID, &gTestMethods }
};
IPC_IMPL_GETMODULES(TestModule, gTestModuleEntry)