mirror of
https://github.com/openharmony/distributedhardware_distributed_input.git
synced 2026-07-19 17:43:35 -04:00
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2021-2022 Huawei Device Co., Ltd.
|
||||
* Copyright (c) 2021-2023 Huawei Device Co., Ltd.
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
@@ -52,8 +52,8 @@ public:
|
||||
private:
|
||||
DistributedInputHandler();
|
||||
~DistributedInputHandler();
|
||||
void StructTransJson(const InputDevice& pBuf, std::string& strDescriptor);
|
||||
int32_t GetDeviceInfo(std::string& deviceId);
|
||||
void StructTransJson(const InputDevice &pBuf, std::string &strDescriptor);
|
||||
int32_t GetDeviceInfo(std::string &deviceId);
|
||||
std::shared_ptr<PluginListener> m_listener;
|
||||
bool InitCollectEventsThread();
|
||||
void NotifyHardWare(int iCnt);
|
||||
|
||||
@@ -53,7 +53,7 @@ DistributedInputHandler::~DistributedInputHandler()
|
||||
StopInputMonitorDeviceThread();
|
||||
}
|
||||
|
||||
void DistributedInputHandler::StructTransJson(const InputDevice& pBuf, std::string& strDescriptor)
|
||||
void DistributedInputHandler::StructTransJson(const InputDevice &pBuf, std::string &strDescriptor)
|
||||
{
|
||||
DHLOGI("[%s] %d, %d, %d, %d, %s.\n", (pBuf.name).c_str(), pBuf.bus, pBuf.vendor, pBuf.product, pBuf.version,
|
||||
GetAnonyString(pBuf.descriptor).c_str());
|
||||
@@ -142,7 +142,7 @@ void DistributedInputHandler::UnRegisterPluginListener()
|
||||
this->m_listener = nullptr;
|
||||
}
|
||||
|
||||
int32_t DistributedInputHandler::GetDeviceInfo(std::string& deviceId)
|
||||
int32_t DistributedInputHandler::GetDeviceInfo(std::string &deviceId)
|
||||
{
|
||||
std::unique_lock<std::mutex> my_lock(operationMutex_);
|
||||
auto localNode = std::make_unique<NodeBasicInfo>();
|
||||
|
||||
Reference in New Issue
Block a user