diff --git a/usb/hdi_service/BUILD.gn b/usb/hdi_service/BUILD.gn index 63cab792d2980e57af879dcfdfb62c3acab8cad5..dd29eda6e866c4668f2aa43b2d9300180c359aef 100644 --- a/usb/hdi_service/BUILD.gn +++ b/usb/hdi_service/BUILD.gn @@ -36,6 +36,8 @@ config("usbd_public_config") { } ohos_shared_library("libusb_interface_service_1.1") { + shlib_type = "hdi" + version_script = "usb_interface_service.map" sanitize = { integer_overflow = true ubsan = true diff --git a/usb/hdi_service/usb_interface_service.map b/usb/hdi_service/usb_interface_service.map new file mode 100644 index 0000000000000000000000000000000000000000..2d19731d0f42b7204a0b886c8ef1be02f6f838bb --- /dev/null +++ b/usb/hdi_service/usb_interface_service.map @@ -0,0 +1,23 @@ +# Copyright (c) 2024 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 +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +1.0 { + global: + *UsbInterfaceImplGetInstance*; + extern "C++" { + *UsbImpl::UsbdEventHandle*; + *UsbImpl::UsbdEventHandleRelease*; + }; + local: + *; +}; \ No newline at end of file