Lines Matching defs:cJsonObj
94 cJSON *cJsonObj = cJSON_Parse(pJsonStr);
95 if (cJsonObj == NULL) {
101 return cJsonObj;
217 static int32_t AudioEffectGetEffectCfgDescs(cJSON *cJsonObj, const char *item, struct ConfigDescriptor *cfgDesc)
226 if (cJsonObj == NULL || item == NULL || cfgDesc == NULL) {
230 cJSON *effectsObj = cJSON_GetObjectItem(cJsonObj, item);
305 static int32_t AudioEffectGetLibraryCfgDescs(cJSON *cJsonObj, const char *item, struct ConfigDescriptor *cfgDesc)
313 if (cJsonObj == NULL || item == NULL || cfgDesc == NULL) {
317 cJSON *libsObj = cJSON_GetObjectItem(cJsonObj, item);
383 cJSON *cJsonObj = GetAudioEffectConfigToJsonObj(path);
384 if (cJsonObj == NULL) {
385 HDF_LOGE("%{public}s: get cJsonObj failed!", __func__);
392 cJSON_Delete(cJsonObj);
393 cJsonObj = NULL;
397 if (AudioEffectGetLibraryCfgDescs(cJsonObj, "libraries", *cfgDesc) != HDF_SUCCESS) {
400 cJSON_Delete(cJsonObj);
401 cJsonObj = NULL;
405 if (AudioEffectGetEffectCfgDescs(cJsonObj, "effects", *cfgDesc) != HDF_SUCCESS) {
408 cJSON_Delete(cJsonObj);
409 cJsonObj = NULL;
413 cJSON_Delete(cJsonObj);
414 cJsonObj = NULL;