Searched refs:typeItem (Results 1 – 5 of 5) sorted by relevance
254 cJSON *typeItem = cJSON_GetObjectItem(resMsg, AVT_DATA_META_TYPE.c_str()); in OnStreamReceived() local255 if (typeItem == nullptr || !cJSON_IsNumber(typeItem)) { in OnStreamReceived()259 uint32_t metaType = static_cast<uint32_t>(typeItem->valueint); in OnStreamReceived()
269 cJSON *typeItem = cJSON_GetObjectItem(resMsg, AVT_DATA_META_TYPE.c_str()); in OnStreamReceived() local270 if (typeItem == NULL || !cJSON_IsNumber(typeItem)) { in OnStreamReceived()274 uint32_t metaType = static_cast<uint32_t>(typeItem->valueint); in OnStreamReceived()
77 cJSON *typeItem = cJSON_GetObjectItem(json, "type"); in ParseJsonStreamToHnpCfgInfo() local78 if ((typeItem == NULL) || (typeItem->valuestring == NULL)) { in ParseJsonStreamToHnpCfgInfo()82 if (strcmp(typeItem->valuestring, "hnp-config") != 0) { in ParseJsonStreamToHnpCfgInfo()83 HNP_LOGE("type info not match.type=%{public}s", typeItem->valuestring); in ParseJsonStreamToHnpCfgInfo()
169 cJSON *typeItem = parser.GetObjectItem(eventItem, "Type"); in ParseEvent() local170 CHKPR(typeItem, ERROR); in ParseEvent()171 std::string curType = parser.GetStringValue(typeItem); in ParseEvent()
409 cJSON *typeItem = NULL; in ParseSocketOption() local413 typeItem = cJSON_GetArrayItem(typeArray, i); in ParseSocketOption()414 INIT_CHECK_RETURN_VALUE(cJSON_IsString(typeItem), SERVICE_FAILURE); in ParseSocketOption()415 stringValue = cJSON_GetStringValue(typeItem); in ParseSocketOption()