Home
last modified time | relevance | path

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

/base/security/device_auth/common_lib/impl/src/
Djson_utils.c160 CJson *GetItemFromArray(const CJson *jsonArr, int index) in GetItemFromArray() argument
162 if (jsonArr == NULL) { in GetItemFromArray()
165 return cJSON_GetArrayItem(jsonArr, index); in GetItemFromArray()
335 int32_t AddObjToArray(CJson *jsonArr, CJson *item) in AddObjToArray() argument
337 if (jsonArr == NULL || item == NULL) { in AddObjToArray()
341 if (cJSON_IsArray(jsonArr) == false) { in AddObjToArray()
345 bool ret = cJSON_AddItemToArray(jsonArr, item); in AddObjToArray()
353 int32_t AddStringToArray(CJson *jsonArr, const char *string) in AddStringToArray() argument
355 if (jsonArr == NULL || string == NULL) { in AddStringToArray()
359 if (cJSON_IsArray(jsonArr) == false) { in AddStringToArray()
[all …]
/base/security/device_auth/common_lib/interfaces/
Djson_utils.h70 CJson *GetItemFromArray(const CJson *jsonArr, int index);
90 int32_t AddObjToArray(CJson *jsonArr, CJson *item);
92 int32_t AddStringToArray(CJson *jsonArr, const char *string);