2004-02-22 17:39:08 +00:00
|
|
|
#include "libnazgul.h"
|
2004-02-16 21:25:11 +00:00
|
|
|
|
|
|
|
int main(void) {
|
2019-09-16 15:15:37 +00:00
|
|
|
// msgSpace mS=0;
|
|
|
|
|
|
|
|
msgSpaceId testId;
|
|
|
|
msgSpace * mSPAC;
|
2004-02-19 23:00:12 +00:00
|
|
|
msgPool poolInfos[2];
|
2004-02-22 15:29:36 +00:00
|
|
|
char * montext;
|
2019-09-16 15:15:37 +00:00
|
|
|
|
2004-02-19 23:00:12 +00:00
|
|
|
poolInfos[0].bufferNb=4;
|
|
|
|
poolInfos[0].bufferSize=200;
|
|
|
|
|
2004-02-22 15:29:36 +00:00
|
|
|
poolInfos[1].bufferNb=5;
|
|
|
|
poolInfos[1].bufferSize=250;
|
2004-02-19 23:00:12 +00:00
|
|
|
|
2019-09-17 12:04:41 +00:00
|
|
|
strcpy(testId,"test");
|
|
|
|
printf("RequestedId: %s\n",testId);
|
2004-02-19 23:00:12 +00:00
|
|
|
|
|
|
|
mSPAC=msgSpaceCreate(testId,0,2,poolInfos);
|
2004-02-22 15:29:36 +00:00
|
|
|
|
|
|
|
montext=msgAllocate(mSPAC,1,200,0);
|
2004-02-22 17:39:08 +00:00
|
|
|
// msgFree(mSPAC,(void *)montext);
|
2019-09-16 15:00:07 +00:00
|
|
|
msgSpaceDelete(testId);
|
2019-09-16 15:15:37 +00:00
|
|
|
|
2004-02-16 21:25:11 +00:00
|
|
|
return 0;
|
|
|
|
}
|