diff --git a/interfaces/inner_kits/native_cpp/audio_sink/include/daudio_sink_handler.h b/interfaces/inner_kits/native_cpp/audio_sink/include/daudio_sink_handler.h index ab4725cefa09a94b33e126f7829709e430593ff1..890a60d49e41e8d111a7101cb900d0e122312ed5 100644 --- a/interfaces/inner_kits/native_cpp/audio_sink/include/daudio_sink_handler.h +++ b/interfaces/inner_kits/native_cpp/audio_sink/include/daudio_sink_handler.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Huawei Device Co., Ltd. + * Copyright (c) 2022-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 @@ -32,6 +32,10 @@ public: int32_t UnsubscribeLocalHardware(const std::string &dhId) override; void OnRemoteSinkSvrDied(const wptr &remote); void FinishStartSA(const std::string ¶m, const sptr &remoteObject); + int32_t RegisterPrivacyResources(std::shared_ptr listener) override; + int32_t PauseDistributedHardware(const std::string &networkId) override; + int32_t ResumeDistributedHardware(const std::string &networkId) override; + int32_t StopDistributedHardware(const std::string &networkId) override; private: class DAudioSinkSvrRecipient : public IRemoteObject::DeathRecipient { diff --git a/interfaces/inner_kits/native_cpp/audio_sink/src/daudio_sink_handler.cpp b/interfaces/inner_kits/native_cpp/audio_sink/src/daudio_sink_handler.cpp index 8361fa6a8d1f33d2d442a41a5511daa1903ba62d..5b758d603544d2129fd762399597aa8e2763f8b5 100644 --- a/interfaces/inner_kits/native_cpp/audio_sink/src/daudio_sink_handler.cpp +++ b/interfaces/inner_kits/native_cpp/audio_sink/src/daudio_sink_handler.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Huawei Device Co., Ltd. + * Copyright (c) 2022-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 @@ -158,6 +158,26 @@ void DAudioSinkHandler::DAudioSinkSvrRecipient::OnRemoteDied(const wptr listener) +{ + return DH_SUCCESS; +} + +int32_t DAudioSinkHandler::PauseDistributedHardware(const std::string &networkId) +{ + return DH_SUCCESS; +} + +int32_t DAudioSinkHandler::ResumeDistributedHardware(const std::string &networkId) +{ + return DH_SUCCESS; +} + +int32_t DAudioSinkHandler::StopDistributedHardware(const std::string &networkId) +{ + return DH_SUCCESS; +} + IDistributedHardwareSink *GetSinkHardwareHandler() { DHLOGD("Get sink hardware handler.");