Searched refs:msgSt (Results 1 – 4 of 4) sorted by relevance
/base/startup/appspawn/test/unittest/app_spawn_lite_test/ |
D | app_spawn_lite_test.cpp | 207 MessageSt msgSt = {0}; variable 208 FreeMessageSt(&msgSt); 210 EXPECT_EQ(msgSt.bundleName, nullptr); 211 EXPECT_EQ(msgSt.identityID, nullptr); 212 EXPECT_EQ(msgSt.caps, nullptr); 213 EXPECT_EQ(msgSt.uID, -1); 214 EXPECT_EQ(msgSt.gID, -1); 215 EXPECT_EQ(msgSt.capsCnt, 0); 227 MessageSt msgSt = {0}; variable 229 msgSt.capsCnt = MALLOC_TEST_LENGTH; [all …]
|
/base/startup/appspawn/lite/ |
D | appspawn_message.c | 104 static int GetCaps(const cJSON *curItem, MessageSt *msgSt) in GetCaps() argument 106 msgSt->capsCnt = 0; in GetCaps() 107 msgSt->caps = NULL; in GetCaps() 126 msgSt->caps = (unsigned int *)malloc(sizeof(unsigned int) * capsCnt); in GetCaps() 127 if (msgSt->caps == NULL) { in GetCaps() 136 free(msgSt->caps); in GetCaps() 137 msgSt->caps = NULL; in GetCaps() 140 msgSt->caps[i] = (unsigned int)cJSON_GetNumberValue(capJ); in GetCaps() 141 if (msgSt->caps[i] > CAP_LAST_CAP) { in GetCaps() 143 msgSt->caps[i]); in GetCaps() [all …]
|
D | appspawn_message.h | 48 int SplitMessage(const char *msg, unsigned int msgLen, MessageSt *msgSt);
|
D | appspawn_service.c | 81 static int GetMessageSt(MessageSt *msgSt, IpcIo *req) in GetMessageSt() argument 83 if (msgSt == NULL || req == NULL) { in GetMessageSt() 94 …int ret = SplitMessage(str, len, msgSt); // after split message, str no need to free(linux versio… in GetMessageSt()
|