Lines Matching refs:capVectorPtr
312 cJSON *capVectorPtr = cJSON_CreateArray();
313 if (capVectorPtr == NULL) {
322 cJSON_Delete(capVectorPtr);
338 if (!cJSON_AddItemToArray(capVectorPtr, cJSON_CreateString(g_arraySyscap[j].str))) {
340 cJSON_Delete(capVectorPtr);
346 if (!cJSON_AddItemToObject(sysCapObject, "os", capVectorPtr)) {
348 cJSON_Delete(capVectorPtr);
355 static int32_t GetPriSyscapResult(cJSON *capVectorPtr, int32_t ret)
357 cJSON_Delete(capVectorPtr);
363 cJSON *capVectorPtr = cJSON_CreateArray();
364 if (capVectorPtr == NULL) {
372 return GetPriSyscapResult(capVectorPtr, -1);
374 return GetPriSyscapResult(capVectorPtr, 0);
387 return GetPriSyscapResult(capVectorPtr, -1);
389 if (!cJSON_AddItemToArray(capVectorPtr, cJSON_CreateString(fullCapStr))) {
391 return GetPriSyscapResult(capVectorPtr, -1);
399 if (!cJSON_AddItemToObject(sysCapObject, "private", capVectorPtr)) {
401 return GetPriSyscapResult(capVectorPtr, -1);