Home
last modified time | relevance | path

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

/ohos5.0/foundation/distributedhardware/distributed_audio/services/audiomanager/managersink/src/
H A Ddaudio_sink_dev.cpp493 cJSON *jEvent = cJSON_CreateObject(); in NotifySourceDev() local
494 CHECK_NULL_VOID(jEvent); in NotifySourceDev()
495 cJSON_AddStringToObject(jEvent, KEY_DH_ID, dhId.c_str()); in NotifySourceDev()
496 cJSON_AddNumberToObject(jEvent, KEY_RESULT, result); in NotifySourceDev()
497 cJSON_AddNumberToObject(jEvent, KEY_EVENT_TYPE, static_cast<int32_t>(type)); in NotifySourceDev()
498 cJSON_AddStringToObject(jEvent, KEY_RANDOM_TASK_CODE, std::to_string(randomTaskCode).c_str()); in NotifySourceDev()
504 cJSON_Delete(jEvent); in NotifySourceDev()
507 char *data = cJSON_PrintUnformatted(jEvent); in NotifySourceDev()
510 cJSON_Delete(jEvent); in NotifySourceDev()
531 cJSON_Delete(jEvent); in NotifySourceDev()