Lines Matching refs:arrItem
209 cJSON *arrItem = cJSON_GetObjectItemCaseSensitive(fileRoot, arrName);
210 if (!cJSON_IsArray(arrItem)) {
213 *arrSize = cJSON_GetArraySize(arrItem);
215 return arrItem;
290 cJSON *arrItem = cJSON_GetObjectItemCaseSensitive(curArrItem, GID_STR_IN_CFG);
291 if (!arrItem) {
293 } else if (!cJSON_IsArray(arrItem)) {
296 gidCount = cJSON_GetArraySize(arrItem);
308 if (!cJSON_IsArray(arrItem)) {
309 int ret = GetGid(arrItem, &gid, curServ);
317 cJSON *item = cJSON_GetArrayItem(arrItem, i);
690 cJSON *arrItem = cJSON_GetObjectItem(curArrItem, attrName);
691 if (arrItem == NULL) {
695 if (cJSON_IsNumber(arrItem)) {
697 } else if (cJSON_IsArray(arrItem)) {
698 criticalSize = cJSON_GetArraySize(arrItem);
699 cJSON *attrItem = cJSON_GetArrayItem(arrItem, 0); // 0 : critical attribute index
711 cJSON *crashCountItem = cJSON_GetArrayItem(arrItem, 1); // 1 : critical crash count index
717 cJSON *crashTimeItem = cJSON_GetArrayItem(arrItem, 2); // 2 : critical crash time index
922 cJSON *arrItem = cJSON_GetObjectItem(curArrItem, attrName);
923 INIT_CHECK(arrItem != NULL, return SERVICE_SUCCESS);
926 INIT_ERROR_CHECK(cJSON_IsNumber(arrItem), return SERVICE_FAILURE,
929 uint64_t value = (uint64_t)cJSON_GetNumberValue(arrItem);