Skip to content

Commit 3dc6630

Browse files
[BLUETOOTHAPIS][BTHPROPS][WINUSB] Import from wine-10.0 (reactos#8801)
* [WINUSB] Import wine-10.0 * [BLUETOOTHAPIS][BTHPROPS] Import wine-10.0 Import wine bluetooth and usb stubs. Needed for modern applications. These dlls were added in XP sp2.
1 parent 752f99e commit 3dc6630

15 files changed

Lines changed: 1275 additions & 0 deletions

File tree

dll/cpl/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

22
add_subdirectory(access)
33
add_subdirectory(appwiz)
4+
add_subdirectory(bthprops)
45
add_subdirectory(console)
56
add_subdirectory(desk)
67
add_subdirectory(hdwwiz)

dll/cpl/bthprops/CMakeLists.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
spec2def(bthprops.cpl bthprops.cpl.spec)
3+
4+
list(APPEND SOURCE
5+
${CMAKE_CURRENT_BINARY_DIR}/bthprops_stubs.c
6+
${CMAKE_CURRENT_BINARY_DIR}/bthprops.def)
7+
8+
add_library(bthprops MODULE ${SOURCE})
9+
set_module_type(bthprops cpl UNICODE)
10+
target_link_libraries(bthprops wine wine_dll_canunload)
11+
add_importlibs(bthprops bluetoothapis msvcrt kernel32 ntdll)
12+
add_cd_file(TARGET bthprops DESTINATION reactos/system32 FOR all)
13+
set_wine_module(bthprops)

dll/cpl/bthprops/bthprops.cpl.spec

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
@ stub BluetoothAddressToString
2+
@ stub BluetoothAuthenticateDevice
3+
@ stub BluetoothAuthenticateDeviceEx
4+
@ stub BluetoothAuthenticateMultipleDevices
5+
@ stub BluetoothAuthenticationAgent
6+
@ stub BluetoothDisconnectDevice
7+
@ stub BluetoothDisplayDeviceProperties
8+
@ stub BluetoothEnableDiscovery
9+
@ stub BluetoothEnableIncomingConnections
10+
@ stub BluetoothEnumerateInstalledServices
11+
@ stub BluetoothEnumerateInstalledServicesEx
12+
@ stub BluetoothFindBrowseGroupClose
13+
@ stub BluetoothFindClassIdClose
14+
@ stdcall -import BluetoothFindDeviceClose(ptr)
15+
@ stub BluetoothFindFirstBrowseGroup
16+
@ stub BluetoothFindFirstClassId
17+
@ stdcall -import BluetoothFindFirstDevice(ptr ptr)
18+
@ stub BluetoothFindFirstProfileDescriptor
19+
@ stub BluetoothFindFirstProtocolDescriptorStack
20+
@ stub BluetoothFindFirstProtocolEntry
21+
@ stdcall -import BluetoothFindFirstRadio(ptr ptr)
22+
@ stub BluetoothFindFirstService
23+
@ stub BluetoothFindFirstServiceEx
24+
@ stub BluetoothFindNextBrowseGroup
25+
@ stub BluetoothFindNextClassId
26+
@ stdcall -import BluetoothFindNextDevice(ptr ptr)
27+
@ stub BluetoothFindNextProfileDescriptor
28+
@ stub BluetoothFindNextProtocolDescriptorStack
29+
@ stub BluetoothFindNextProtocolEntry
30+
@ stdcall -import BluetoothFindNextRadio(ptr ptr)
31+
@ stub BluetoothFindNextService
32+
@ stub BluetoothFindProfileDescriptorClose
33+
@ stub BluetoothFindProtocolDescriptorStackClose
34+
@ stub BluetoothFindProtocolEntryClose
35+
@ stdcall -import BluetoothFindRadioClose(ptr)
36+
@ stub BluetoothFindServiceClose
37+
@ stub BluetoothGetDeviceInfo
38+
@ stdcall -import BluetoothGetRadioInfo(ptr ptr)
39+
@ stub BluetoothIsConnectable
40+
@ stub BluetoothIsDiscoverable
41+
@ stub BluetoothIsVersionAvailable
42+
@ stub BluetoothMapClassOfDeviceToImageIndex
43+
@ stub BluetoothMapClassOfDeviceToString
44+
@ stub BluetoothRegisterForAuthentication
45+
@ stdcall -import BluetoothRegisterForAuthenticationEx(ptr ptr ptr ptr)
46+
@ stub BluetoothRemoveDevice
47+
@ stdcall -import BluetoothSdpEnumAttributes(ptr long ptr ptr)
48+
@ stdcall -import BluetoothSdpGetAttributeValue(ptr long long ptr)
49+
@ stdcall -import BluetoothSdpGetContainerElementData(ptr long ptr ptr)
50+
@ stdcall -import BluetoothSdpGetElementData(ptr long ptr)
51+
@ stub BluetoothSdpGetString
52+
@ stub BluetoothSelectDevices
53+
@ stub BluetoothSelectDevicesFree
54+
@ stub BluetoothSendAuthenticationResponse
55+
@ stub BluetoothSendAuthenticationResponseEx
56+
@ stub BluetoothSetLocalServiceInfo
57+
@ stub BluetoothSetServiceState
58+
@ stdcall -import BluetoothUnregisterAuthentication(long)
59+
@ stub BluetoothUpdateDeviceRecord
60+
@ stub BthpEnableAllServices
61+
@ stub BthpFindPnpInfo
62+
@ stub BthpMapStatusToErr
63+
#@ stub CPlApplet
64+
@ stdcall -private DllCanUnloadNow()
65+
@ stub DllGetClassObject

dll/win32/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ add_subdirectory(avifil32)
1515
add_subdirectory(batt)
1616
add_subdirectory(bcrypt)
1717
add_subdirectory(beepmidi)
18+
add_subdirectory(bluetoothapis)
1819
add_subdirectory(browseui)
1920
add_subdirectory(bthci)
2021
add_subdirectory(cabinet)
@@ -246,6 +247,7 @@ add_subdirectory(winmm)
246247
add_subdirectory(winscard)
247248
add_subdirectory(winsta)
248249
add_subdirectory(wintrust)
250+
add_subdirectory(winusb)
249251
add_subdirectory(wlanapi)
250252
add_subdirectory(wldap32)
251253
add_subdirectory(wlnotify)
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
spec2def(bluetoothapis.dll bluetoothapis.spec ADD_IMPORTLIB)
3+
4+
list(APPEND SOURCE
5+
main.c
6+
sdp.c
7+
${CMAKE_CURRENT_BINARY_DIR}/bluetoothapis_stubs.c
8+
${CMAKE_CURRENT_BINARY_DIR}/bluetoothapis.def)
9+
10+
add_library(bluetoothapis MODULE ${SOURCE})
11+
set_module_type(bluetoothapis win32dll UNICODE)
12+
13+
if(CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
14+
target_compile_options(bluetoothapis PRIVATE -Wno-old-style-declaration)
15+
endif()
16+
17+
target_link_libraries(bluetoothapis wine wine_dll_canunload)
18+
add_importlibs(bluetoothapis setupapi msvcrt kernel32 ntdll)
19+
add_cd_file(TARGET bluetoothapis DESTINATION reactos/system32 FOR all)
20+
set_wine_module(bluetoothapis)
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
@ stub BluetoothAddressToString
2+
@ stub BluetoothDisconnectDevice
3+
@ stub BluetoothEnableDiscovery
4+
@ stub BluetoothEnableIncomingConnections
5+
@ stub BluetoothEnumerateInstalledServices
6+
@ stub BluetoothEnumerateInstalledServicesEx
7+
@ stub BluetoothEnumerateLocalServices
8+
@ stub BluetoothFindBrowseGroupClose
9+
@ stub BluetoothFindClassIdClose
10+
@ stdcall BluetoothFindDeviceClose(ptr)
11+
@ stub BluetoothFindFirstBrowseGroup
12+
@ stub BluetoothFindFirstClassId
13+
@ stdcall BluetoothFindFirstDevice(ptr ptr)
14+
@ stub BluetoothFindFirstProfileDescriptor
15+
@ stub BluetoothFindFirstProtocolDescriptorStack
16+
@ stub BluetoothFindFirstProtocolEntry
17+
@ stdcall BluetoothFindFirstRadio(ptr ptr)
18+
@ stub BluetoothFindFirstService
19+
@ stub BluetoothFindFirstServiceEx
20+
@ stub BluetoothFindNextBrowseGroup
21+
@ stub BluetoothFindNextClassId
22+
@ stdcall BluetoothFindNextDevice(ptr ptr)
23+
@ stub BluetoothFindNextProfileDescriptor
24+
@ stub BluetoothFindNextProtocolDescriptorStack
25+
@ stub BluetoothFindNextProtocolEntry
26+
@ stdcall BluetoothFindNextRadio(ptr ptr)
27+
@ stub BluetoothFindNextService
28+
@ stub BluetoothFindProfileDescriptorClose
29+
@ stub BluetoothFindProtocolDescriptorStackClose
30+
@ stub BluetoothFindProtocolEntryClose
31+
@ stdcall BluetoothFindRadioClose(ptr)
32+
@ stub BluetoothFindServiceClose
33+
@ stub BluetoothGATTAbortReliableWrite
34+
@ stub BluetoothGATTBeginReliableWrite
35+
@ stub BluetoothGATTEndReliableWrite
36+
@ stub BluetoothGATTGetCharacteristicValue
37+
@ stub BluetoothGATTGetCharacteristics
38+
@ stub BluetoothGATTGetDescriptorValue
39+
@ stub BluetoothGATTGetDescriptors
40+
@ stub BluetoothGATTGetIncludedServices
41+
@ stub BluetoothGATTGetServices
42+
@ stub BluetoothGATTRegisterEvent
43+
@ stub BluetoothGATTSetCharacteristicValue
44+
@ stub BluetoothGATTSetDescriptorValue
45+
@ stub BluetoothGATTUnregisterEvent
46+
@ stub BluetoothGetDeviceInfo
47+
@ stub BluetoothGetLocalServiceInfo
48+
@ stdcall BluetoothGetRadioInfo(ptr ptr)
49+
@ stub BluetoothGetServicePnpInstance
50+
@ stub BluetoothIsConnectable
51+
@ stub BluetoothIsDiscoverable
52+
@ stub BluetoothIsVersionAvailable
53+
@ stub BluetoothRegisterForAuthentication
54+
@ stdcall BluetoothRegisterForAuthenticationEx(ptr ptr ptr ptr)
55+
@ stub BluetoothRemoveDevice
56+
@ stdcall BluetoothSdpEnumAttributes(ptr long ptr ptr)
57+
@ stdcall BluetoothSdpGetAttributeValue(ptr long long ptr)
58+
@ stdcall BluetoothSdpGetContainerElementData(ptr long ptr ptr)
59+
@ stdcall BluetoothSdpGetElementData(ptr long ptr)
60+
@ stub BluetoothSdpGetString
61+
@ stub BluetoothSendAuthenticationResponse
62+
@ stub BluetoothSendAuthenticationResponseEx
63+
@ stub BluetoothSetLocalServiceInfo
64+
@ stub BluetoothSetServiceState
65+
@ stub BluetoothSetServiceStateEx
66+
@ stdcall BluetoothUnregisterAuthentication(long)
67+
@ stub BluetoothUpdateDeviceRecord
68+
@ stub BthpCheckForUnsupportedGuid
69+
@ stub BthpCleanupBRDeviceNode
70+
@ stub BthpCleanupDeviceLocalServices
71+
@ stub BthpCleanupDeviceRemoteServices
72+
@ stub BthpCleanupLEDeviceNodes
73+
@ stub BthpEnableAllServices
74+
@ stub BthpEnableConnectableAndDiscoverable
75+
@ stub BthpEnableRadioSoftware
76+
@ stub BthpFindPnpInfo
77+
@ stub BthpGATTCloseSession
78+
@ stub BthpInnerRecord
79+
@ stub BthpIsBluetoothServiceRunning
80+
@ stub BthpIsConnectableByDefault
81+
@ stub BthpIsDiscoverable
82+
@ stub BthpIsDiscoverableByDefault
83+
@ stub BthpIsRadioSoftwareEnabled
84+
@ stub BthpIsTopOfServiceGroup
85+
@ stub BthpMapStatusToErr
86+
@ stub BthpNextRecord
87+
@ stub BthpRegisterForAuthentication
88+
@ stub BthpSetServiceState
89+
@ stub BthpSetServiceStateEx
90+
@ stub BthpTranspose16Bits
91+
@ stub BthpTranspose32Bits
92+
@ stub BthpTransposeAndExtendBytes
93+
@ stdcall -private DllCanUnloadNow()
94+
@ stub FindNextOpenVCOMPort
95+
@ stub InstallIncomingComPort
96+
@ stub ShouldForceAuthentication

0 commit comments

Comments
 (0)