mirror of
https://gitee.com/openharmony/msdp_device_status
synced 2025-02-21 08:14:07 +00:00
add interface RegisterThumbnailDraw UnregisterThumbnailDraw
Signed-off-by: mayunteng_1 <mayunteng@huawei.com> Change-Id: I37461926db66c2b7cd6e010203604b491fca1797
This commit is contained in:
parent
65d96186e2
commit
f5d40beab0
@ -241,6 +241,10 @@ int32_t DeviceStatusClient::RegisterThumbnailDraw()
|
||||
{
|
||||
CALL_DEBUG_ENTER;
|
||||
DEV_RET_IF_NULL_WITH_RET((Connect() != RET_OK), RET_ERR);
|
||||
if (devicestatusProxy_ == nullptr) {
|
||||
FI_HILOGE("Client has not connect server");
|
||||
return RET_ERR;
|
||||
}
|
||||
return devicestatusProxy_->RegisterThumbnailDraw();
|
||||
}
|
||||
|
||||
@ -248,6 +252,10 @@ int32_t DeviceStatusClient::UnregisterThumbnailDraw()
|
||||
{
|
||||
CALL_DEBUG_ENTER;
|
||||
DEV_RET_IF_NULL_WITH_RET((Connect() != RET_OK), RET_ERR);
|
||||
if (devicestatusProxy_ == nullptr) {
|
||||
FI_HILOGE("Client has not connect server");
|
||||
return RET_ERR;
|
||||
}
|
||||
return devicestatusProxy_->UnregisterThumbnailDraw();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user