• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2024 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6# http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14{
15  global:
16    extern "C++" {
17        "OHOS::HDI::Usb::V1_2::LibusbAdapter::GetInstance()";
18        "OHOS::HDI::Usb::V1_2::LibusbAdapter::LibusbAdapter()";
19        "OHOS::HDI::Usb::V1_2::LibusbAdapter::~LibusbAdapter()";
20        "OHOS::HDI::Usb::V1_2::LibusbAdapter::ManageInterface(OHOS::HDI::Usb::V1_0::UsbDev const&, unsigned char, bool)";
21        "OHOS::HDI::Usb::V1_2::LibusbAdapter::OpenDevice(OHOS::HDI::Usb::V1_0::UsbDev const&)";
22        "OHOS::HDI::Usb::V1_2::LibusbAdapter::CloseDevice(OHOS::HDI::Usb::V1_0::UsbDev const&)";
23        "OHOS::HDI::Usb::V1_2::LibusbAdapter::GetDeviceDescriptor(OHOS::HDI::Usb::V1_0::UsbDev const&, std::__h::vector<unsigned char, std::__h::allocator<unsigned char>>&)";
24        "OHOS::HDI::Usb::V1_2::LibusbAdapter::GetStringDescriptor(OHOS::HDI::Usb::V1_0::UsbDev const&, unsigned char, std::__h::vector<unsigned char, std::__h::allocator<unsigned char>>&)";
25        "OHOS::HDI::Usb::V1_2::LibusbAdapter::GetConfigDescriptor(OHOS::HDI::Usb::V1_0::UsbDev const&, unsigned char, std::__h::vector<unsigned char, std::__h::allocator<unsigned char>>&)";
26        "OHOS::HDI::Usb::V1_2::LibusbAdapter::SetConfig(OHOS::HDI::Usb::V1_0::UsbDev const&, unsigned char)";
27        "OHOS::HDI::Usb::V1_2::LibusbAdapter::GetConfig(OHOS::HDI::Usb::V1_0::UsbDev const&, unsigned char&)";
28        "OHOS::HDI::Usb::V1_2::LibusbAdapter::ClaimInterface(OHOS::HDI::Usb::V1_0::UsbDev const&, unsigned char, unsigned char)";
29        "OHOS::HDI::Usb::V1_2::LibusbAdapter::ReleaseInterface(OHOS::HDI::Usb::V1_0::UsbDev const&, unsigned char)";
30        "OHOS::HDI::Usb::V1_2::LibusbAdapter::BulkTransferRead(OHOS::HDI::Usb::V1_0::UsbDev const&, OHOS::HDI::Usb::V1_0::UsbPipe const&, int, std::__h::vector<unsigned char, std::__h::allocator<unsigned char>>&)";
31        "OHOS::HDI::Usb::V1_2::LibusbAdapter::BulkTransferWrite(OHOS::HDI::Usb::V1_0::UsbDev const&, OHOS::HDI::Usb::V1_0::UsbPipe const&, int, std::__h::vector<unsigned char, std::__h::allocator<unsigned char>> const&)";
32        "OHOS::HDI::Usb::V1_2::LibusbAdapter::ControlTransferRead(OHOS::HDI::Usb::V1_0::UsbDev const&, OHOS::HDI::Usb::V1_0::UsbCtrlTransfer const&, std::__h::vector<unsigned char, std::__h::allocator<unsigned char>>&)";
33        "OHOS::HDI::Usb::V1_2::LibusbAdapter::ControlTransferWrite(OHOS::HDI::Usb::V1_0::UsbDev const&, OHOS::HDI::Usb::V1_0::UsbCtrlTransfer const&, std::__h::vector<unsigned char, std::__h::allocator<unsigned char>> const&)";
34        "OHOS::HDI::Usb::V1_2::LibusbAdapter::InterruptTransferRead(OHOS::HDI::Usb::V1_0::UsbDev const&, OHOS::HDI::Usb::V1_0::UsbPipe const&, int, std::__h::vector<unsigned char, std::__h::allocator<unsigned char>>&)";
35        "OHOS::HDI::Usb::V1_2::LibusbAdapter::InterruptTransferWrite(OHOS::HDI::Usb::V1_0::UsbDev const&, OHOS::HDI::Usb::V1_0::UsbPipe const&, int, std::__h::vector<unsigned char, std::__h::allocator<unsigned char>> const&)";
36        "OHOS::HDI::Usb::V1_2::LibusbAdapter::IsoTransferRead(OHOS::HDI::Usb::V1_0::UsbDev const&, OHOS::HDI::Usb::V1_0::UsbPipe const&, int, std::__h::vector<unsigned char, std::__h::allocator<unsigned char>>&)";
37        "OHOS::HDI::Usb::V1_2::LibusbAdapter::IsoTransferWrite(OHOS::HDI::Usb::V1_0::UsbDev const&, OHOS::HDI::Usb::V1_0::UsbPipe const&, int, std::__h::vector<unsigned char, std::__h::allocator<unsigned char>> const&)";
38        "OHOS::HDI::Usb::V1_2::LibusbAdapter::GetDeviceFileDescriptor(OHOS::HDI::Usb::V1_0::UsbDev const&, int&)";
39        "OHOS::HDI::Usb::V1_2::LibusbAdapter::BulkTransferReadwithLength(OHOS::HDI::Usb::V1_0::UsbDev const&, OHOS::HDI::Usb::V1_0::UsbPipe const&, int, int, std::__h::vector<unsigned char, std::__h::allocator<unsigned char>>&)";
40        "OHOS::HDI::Usb::V1_2::LibusbAdapter::ClearHalt(OHOS::HDI::Usb::V1_0::UsbDev const&, OHOS::HDI::Usb::V1_0::UsbPipe const&)";
41        "OHOS::HDI::Usb::V1_2::LibusbAdapter::ResetDevice(OHOS::HDI::Usb::V1_0::UsbDev const&)";
42        "OHOS::HDI::Usb::V1_2::LibusbAdapter::ControlTransferReadwithLength(OHOS::HDI::Usb::V1_0::UsbDev const&, OHOS::HDI::Usb::V1_1::UsbCtrlTransferParams const&, std::__h::vector<unsigned char, std::__h::allocator<unsigned char>>&)";
43        "OHOS::HDI::Usb::V1_2::LibusbAdapter::SetInterface(OHOS::HDI::Usb::V1_0::UsbDev const&, unsigned char, unsigned char)";
44        "OHOS::HDI::Usb::V1_2::LibusbAdapter::GetFileDescriptor(OHOS::HDI::Usb::V1_0::UsbDev const&, int&)";
45        "OHOS::HDI::Usb::V1_2::LibusbAdapter::GetInterfaceActiveStatus(OHOS::HDI::Usb::V1_0::UsbDev const&, unsigned char, bool&)";
46        "OHOS::HDI::Usb::V1_2::LibusbAdapter::GetDeviceSpeed(OHOS::HDI::Usb::V1_0::UsbDev const&, unsigned char&)";
47        "OHOS::HDI::Usb::V1_2::LibusbAdapter::GetCurrentInterfaceSetting(OHOS::HDI::Usb::V1_0::UsbDev const&, unsigned char&)";
48        "OHOS::HDI::Usb::V1_2::LibusbAdapter::SendPipeRequest(OHOS::HDI::Usb::V1_0::UsbDev const&, unsigned char, unsigned int, unsigned int&, unsigned int)";
49        "OHOS::HDI::Usb::V1_2::LibusbAdapter::SendPipeRequestWithAshmem(OHOS::HDI::Usb::V1_0::UsbDev const&, unsigned char, OHOS::HDI::Usb::V1_2::SendRequestAshmemParameter, unsigned int&, unsigned int)";
50        "OHOS::HDI::Usb::V1_2::LibusbAdapter::GetRawDescriptor(OHOS::HDI::Usb::V1_0::UsbDev const&, std::__h::vector<unsigned char, std::__h::allocator<unsigned char>>&)";
51        "OHOS::HDI::Usb::V1_2::LibusbAdapter::AllocateUsbDescriptorsMemory(unsigned int)";
52        "OHOS::HDI::Usb::V1_2::LibusbAdapter::FreeUsbDescriptorsMemory(void*)";
53        "OHOS::HDI::Usb::V1_2::LibusbAdapter::AdapterRealloc(void*, unsigned int, unsigned int)";
54        "OHOS::HDI::Usb::V1_2::LibusbAdapter::GetDeviceMemMapFd(OHOS::HDI::Usb::V1_0::UsbDev const&, int&)";
55        "OHOS::HDI::Usb::V1_2::LibusbAdapter::AsyncSubmitTransfer(OHOS::HDI::Usb::V1_0::UsbDev const&, OHOS::HDI::Usb::V1_2::USBTransferInfo const&, OHOS::sptr<OHOS::HDI::Usb::V1_2::IUsbdTransferCallback> const&, OHOS::sptr<OHOS::Ashmem> const&)";
56        "OHOS::HDI::Usb::V1_2::LibusbAdapter::AsyncCancelTransfer(OHOS::HDI::Usb::V1_0::UsbDev const&, int)";
57        "OHOS::HDI::Usb::V1_2::LibusbAdapter::GetDevices(std::__h::vector<OHOS::HDI::Usb::V1_2::DeviceInfo, std::__h::allocator<OHOS::HDI::Usb::V1_2::DeviceInfo>>&)";
58        "OHOS::HDI::Usb::V1_2::LibusbAdapter::BulkRead(OHOS::HDI::Usb::V1_0::UsbDev const&, OHOS::HDI::Usb::V1_0::UsbPipe const&, OHOS::sptr<OHOS::Ashmem> const&)";
59        "OHOS::HDI::Usb::V1_2::LibusbAdapter::BulkWrite(OHOS::HDI::Usb::V1_0::UsbDev const&, OHOS::HDI::Usb::V1_0::UsbPipe const&, OHOS::sptr<OHOS::Ashmem> const&)";
60        "OHOS::HDI::Usb::V1_2::LibusbAdapter::BulkCancel(OHOS::HDI::Usb::V1_0::UsbDev const&, OHOS::HDI::Usb::V1_0::UsbPipe const&)";
61        "OHOS::HDI::Usb::V1_2::LibusbAdapter::RegBulkCallback(OHOS::HDI::Usb::V1_0::UsbDev const&, OHOS::HDI::Usb::V1_0::UsbPipe const&, OHOS::sptr<OHOS::HDI::Usb::V2_0::IUsbdBulkCallback> const&)";
62        "OHOS::HDI::Usb::V1_2::LibusbAdapter::UnRegBulkCallback(OHOS::HDI::Usb::V1_0::UsbDev const&, OHOS::HDI::Usb::V1_0::UsbPipe const&)";
63        "OHOS::HDI::Usb::V1_2::LibusbAdapter::SetSubscriber(OHOS::sptr<OHOS::HDI::Usb::V2_0::IUsbdSubscriber>)";
64        "OHOS::HDI::Usb::V1_2::LibusbAdapter::RemoveSubscriber(OHOS::sptr<OHOS::HDI::Usb::V2_0::IUsbdSubscriber>)";
65        "OHOS::HDI::Usb::V1_2::LibusbAdapter::SetLoadUsbSaSubscriber(OHOS::sptr<OHOS::HDI::Usb::V1_2::LibUsbSaSubscriber>)";
66    };
67  local:
68    *;
69};