mirror of
https://github.com/openharmony/device_profile_core.git
synced 2026-07-19 17:05:37 -04:00
!34 typedef defines enum type alias word misspelled
Merge pull request !34 from libaoping28/master
This commit is contained in:
@@ -53,7 +53,7 @@ private:
|
||||
static void OnNodeOfflineAdapter(NodeBasicInfo* info);
|
||||
static void OnNodeBasicInfoChangedAdapter(NodeBasicInfoType type, NodeBasicInfo* info);
|
||||
|
||||
bool GetUuidOrUdidByNetworkId(const std::string& nodeId, NodeDeivceInfoKey keyType,
|
||||
bool GetUuidOrUdidByNetworkId(const std::string& nodeId, NodeDeviceInfoKey keyType,
|
||||
std::string& uuidOrUdid);
|
||||
void OnNodeOnline(const std::shared_ptr<DeviceInfo> deviceInfo);
|
||||
void OnNodeOffline(const std::string& deviceId);
|
||||
|
||||
@@ -255,16 +255,16 @@ std::unique_ptr<NodeBasicInfo> DeviceManager::GetLocalBasicInfo()
|
||||
|
||||
bool DeviceManager::GetUdidByNetworkId(const std::string& networkId, std::string& udid)
|
||||
{
|
||||
return GetUuidOrUdidByNetworkId(networkId, NodeDeivceInfoKey::NODE_KEY_UDID, udid);
|
||||
return GetUuidOrUdidByNetworkId(networkId, NodeDeviceInfoKey::NODE_KEY_UDID, udid);
|
||||
}
|
||||
|
||||
bool DeviceManager::GetUuidByNetworkId(const std::string& networkId, std::string& uuid)
|
||||
{
|
||||
return GetUuidOrUdidByNetworkId(networkId, NodeDeivceInfoKey::NODE_KEY_UUID, uuid);
|
||||
return GetUuidOrUdidByNetworkId(networkId, NodeDeviceInfoKey::NODE_KEY_UUID, uuid);
|
||||
}
|
||||
|
||||
bool DeviceManager::GetUuidOrUdidByNetworkId(const std::string& networkId,
|
||||
NodeDeivceInfoKey keyType, std::string& uuidOrUdid)
|
||||
NodeDeviceInfoKey keyType, std::string& uuidOrUdid)
|
||||
{
|
||||
if (networkId.empty()) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user