Home
last modified time | relevance | path

Searched refs:jsonObjTmp (Results 1 – 2 of 2) sorted by relevance

/base/security/device_auth/common_lib/impl/src/
Djson_utils.c176 cJSON *jsonObjTmp = cJSON_GetObjectItemCaseSensitive(jsonObj, key); in GetStringFromJson() local
177 if (jsonObjTmp != NULL && cJSON_IsString(jsonObjTmp)) { in GetStringFromJson()
178 return cJSON_GetStringValue(jsonObjTmp); in GetStringFromJson()
231 cJSON *jsonObjTmp = cJSON_GetObjectItemCaseSensitive(jsonObj, key); in GetIntFromJson() local
232 if (jsonObjTmp != NULL && cJSON_IsNumber(jsonObjTmp)) { in GetIntFromJson()
233 *value = (int)cJSON_GetNumberValue(jsonObjTmp); in GetIntFromJson()
257 cJSON *jsonObjTmp = cJSON_GetObjectItemCaseSensitive(jsonObj, key); in GetUnsignedIntFromJson() local
258 if (jsonObjTmp != NULL && cJSON_IsNumber(jsonObjTmp)) { in GetUnsignedIntFromJson()
259 double realValue = cJSON_GetNumberValue(jsonObjTmp); in GetUnsignedIntFromJson()
299 cJSON *jsonObjTmp = cJSON_GetObjectItemCaseSensitive(jsonObj, key); in GetBoolFromJson() local
[all …]
/base/security/device_auth/test/unittest/deviceauth/source/
Djson_utils_mock.c234 cJSON *jsonObjTmp = cJSON_GetObjectItemCaseSensitive(jsonObj, key); in GetStringFromJson() local
235 if (jsonObjTmp != NULL && cJSON_IsString(jsonObjTmp)) { in GetStringFromJson()
236 return cJSON_GetStringValue(jsonObjTmp); in GetStringFromJson()
289 cJSON *jsonObjTmp = cJSON_GetObjectItemCaseSensitive(jsonObj, key); in GetIntFromJson() local
290 if (jsonObjTmp != NULL && cJSON_IsNumber(jsonObjTmp)) { in GetIntFromJson()
291 *value = (int)cJSON_GetNumberValue(jsonObjTmp); in GetIntFromJson()
315 cJSON *jsonObjTmp = cJSON_GetObjectItemCaseSensitive(jsonObj, key); in GetUnsignedIntFromJson() local
316 if (jsonObjTmp != NULL && cJSON_IsNumber(jsonObjTmp)) { in GetUnsignedIntFromJson()
317 double realValue = cJSON_GetNumberValue(jsonObjTmp); in GetUnsignedIntFromJson()
357 cJSON *jsonObjTmp = cJSON_GetObjectItemCaseSensitive(jsonObj, key); in GetBoolFromJson() local
[all …]