Searched refs:msgJson (Results 1 – 4 of 4) sorted by relevance
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/av_transport/common/src/ |
H A D | av_trans_message.cpp | 42 cJSON *msgJson = cJSON_CreateObject(); in MarshalMessage() local 43 if (msgJson == nullptr) { in MarshalMessage() 46 cJSON_AddNumberToObject(msgJson, KEY_TYPE.c_str(), type_); in MarshalMessage() 47 cJSON_AddStringToObject(msgJson, KEY_CONTENT.c_str(), content_.c_str()); in MarshalMessage() 49 char *data = cJSON_PrintUnformatted(msgJson); in MarshalMessage() 51 cJSON_Delete(msgJson); in MarshalMessage() 56 cJSON_Delete(msgJson); in MarshalMessage() 88 bool AVTransMessage::IsUInt32(const cJSON *msgJson, const std::string &key) in IsUInt32() argument 90 cJSON *keyObj = cJSON_GetObjectItemCaseSensitive(msgJson, key.c_str()); in IsUInt32() 95 bool AVTransMessage::IsString(const cJSON *msgJson, const std::string &key) in IsString() argument [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/av_transport/common/include/ |
H A D | av_trans_message.h | 35 bool IsUInt32(const cJSON *msgJson, const std::string &key); 36 bool IsString(const cJSON *msgJson, const std::string &key);
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/plugin/test/av_trans_input/daudio_input_test/ |
H A D | daudio_input_test.cpp | 424 cJSON *msgJson = cJSON_CreateObject(); variable 425 cJSON_AddStringToObject(msgJson, KEY_TYPE.c_str(), "type_test"); 426 cJSON_AddNumberToObject(msgJson, KEY_CONTENT.c_str(), 1); 427 char* cjson = cJSON_PrintUnformatted(msgJson); 432 cJSON_Delete(msgJson);
|
/ohos5.0/base/security/device_auth/services/session_manager/src/session/v2/ |
H A D | dev_session_v2.c | 879 static int32_t SetAuthProtectedMsg(SessionImpl *impl, const CJson *msgJson, bool isSelf) in SetAuthProtectedMsg() argument 881 char *msgStr = PackJsonToString(msgJson); in SetAuthProtectedMsg()
|