From b533632c0337c05260e189a08d7547913c04711f Mon Sep 17 00:00:00 2001 From: Austin English Date: Tue, 10 Nov 2015 12:02:40 -0600 Subject: [PATCH] bluetoothapis: Add stub dll. Signed-off-by: Austin English Signed-off-by: Alexandre Julliard --- configure | 2 + configure.ac | 1 + dlls/bluetoothapis/Makefile.in | 4 ++ dlls/bluetoothapis/bluetoothapis.spec | 96 +++++++++++++++++++++++++++ dlls/bluetoothapis/main.c | 40 +++++++++++ 5 files changed, 143 insertions(+) create mode 100644 dlls/bluetoothapis/Makefile.in create mode 100644 dlls/bluetoothapis/bluetoothapis.spec create mode 100644 dlls/bluetoothapis/main.c diff --git a/configure b/configure index 71610773511..af5d7cf6770 100755 --- a/configure +++ b/configure @@ -963,6 +963,7 @@ enable_avicap32 enable_avifil32 enable_avrt enable_bcrypt +enable_bluetoothapis enable_browseui enable_bthprops_cpl enable_cabinet @@ -17465,6 +17466,7 @@ wine_fn_config_dll avifile.dll16 enable_win16 wine_fn_config_dll avrt enable_avrt implib wine_fn_config_dll bcrypt enable_bcrypt wine_fn_config_test dlls/bcrypt/tests bcrypt_test +wine_fn_config_dll bluetoothapis enable_bluetoothapis wine_fn_config_dll browseui enable_browseui clean,po wine_fn_config_test dlls/browseui/tests browseui_test wine_fn_config_dll bthprops.cpl enable_bthprops_cpl diff --git a/configure.ac b/configure.ac index 84420a90e97..74800a55e52 100644 --- a/configure.ac +++ b/configure.ac @@ -2820,6 +2820,7 @@ WINE_CONFIG_DLL(avifile.dll16,enable_win16) WINE_CONFIG_DLL(avrt,,[implib]) WINE_CONFIG_DLL(bcrypt) WINE_CONFIG_TEST(dlls/bcrypt/tests) +WINE_CONFIG_DLL(bluetoothapis) WINE_CONFIG_DLL(browseui,,[clean,po]) WINE_CONFIG_TEST(dlls/browseui/tests) WINE_CONFIG_DLL(bthprops.cpl) diff --git a/dlls/bluetoothapis/Makefile.in b/dlls/bluetoothapis/Makefile.in new file mode 100644 index 00000000000..5050cffdbe6 --- /dev/null +++ b/dlls/bluetoothapis/Makefile.in @@ -0,0 +1,4 @@ +MODULE = bluetoothapis.dll + +C_SRCS = \ + main.c diff --git a/dlls/bluetoothapis/bluetoothapis.spec b/dlls/bluetoothapis/bluetoothapis.spec new file mode 100644 index 00000000000..fc24cb374ba --- /dev/null +++ b/dlls/bluetoothapis/bluetoothapis.spec @@ -0,0 +1,96 @@ +@ stub BluetoothAddressToString +@ stub BluetoothDisconnectDevice +@ stub BluetoothEnableDiscovery +@ stub BluetoothEnableIncomingConnections +@ stub BluetoothEnumerateInstalledServices +@ stub BluetoothEnumerateInstalledServicesEx +@ stub BluetoothEnumerateLocalServices +@ stub BluetoothFindBrowseGroupClose +@ stub BluetoothFindClassIdClose +@ stub BluetoothFindDeviceClose +@ stub BluetoothFindFirstBrowseGroup +@ stub BluetoothFindFirstClassId +@ stub BluetoothFindFirstDevice +@ stub BluetoothFindFirstProfileDescriptor +@ stub BluetoothFindFirstProtocolDescriptorStack +@ stub BluetoothFindFirstProtocolEntry +@ stub BluetoothFindFirstRadio +@ stub BluetoothFindFirstService +@ stub BluetoothFindFirstServiceEx +@ stub BluetoothFindNextBrowseGroup +@ stub BluetoothFindNextClassId +@ stub BluetoothFindNextDevice +@ stub BluetoothFindNextProfileDescriptor +@ stub BluetoothFindNextProtocolDescriptorStack +@ stub BluetoothFindNextProtocolEntry +@ stub BluetoothFindNextRadio +@ stub BluetoothFindNextService +@ stub BluetoothFindProfileDescriptorClose +@ stub BluetoothFindProtocolDescriptorStackClose +@ stub BluetoothFindProtocolEntryClose +@ stub BluetoothFindRadioClose +@ stub BluetoothFindServiceClose +@ stub BluetoothGATTAbortReliableWrite +@ stub BluetoothGATTBeginReliableWrite +@ stub BluetoothGATTEndReliableWrite +@ stub BluetoothGATTGetCharacteristicValue +@ stub BluetoothGATTGetCharacteristics +@ stub BluetoothGATTGetDescriptorValue +@ stub BluetoothGATTGetDescriptors +@ stub BluetoothGATTGetIncludedServices +@ stub BluetoothGATTGetServices +@ stub BluetoothGATTRegisterEvent +@ stub BluetoothGATTSetCharacteristicValue +@ stub BluetoothGATTSetDescriptorValue +@ stub BluetoothGATTUnregisterEvent +@ stub BluetoothGetDeviceInfo +@ stub BluetoothGetLocalServiceInfo +@ stub BluetoothGetRadioInfo +@ stub BluetoothGetServicePnpInstance +@ stub BluetoothIsConnectable +@ stub BluetoothIsDiscoverable +@ stub BluetoothIsVersionAvailable +@ stub BluetoothRegisterForAuthentication +@ stub BluetoothRegisterForAuthenticationEx +@ stub BluetoothRemoveDevice +@ stub BluetoothSdpEnumAttributes +@ stub BluetoothSdpGetAttributeValue +@ stub BluetoothSdpGetContainerElementData +@ stub BluetoothSdpGetElementData +@ stub BluetoothSdpGetString +@ stub BluetoothSendAuthenticationResponse +@ stub BluetoothSendAuthenticationResponseEx +@ stub BluetoothSetLocalServiceInfo +@ stub BluetoothSetServiceState +@ stub BluetoothSetServiceStateEx +@ stub BluetoothUnregisterAuthentication +@ stub BluetoothUpdateDeviceRecord +@ stub BthpCheckForUnsupportedGuid +@ stub BthpCleanupBRDeviceNode +@ stub BthpCleanupDeviceLocalServices +@ stub BthpCleanupDeviceRemoteServices +@ stub BthpCleanupLEDeviceNodes +@ stub BthpEnableAllServices +@ stub BthpEnableConnectableAndDiscoverable +@ stub BthpEnableRadioSoftware +@ stub BthpFindPnpInfo +@ stub BthpGATTCloseSession +@ stub BthpInnerRecord +@ stub BthpIsBluetoothServiceRunning +@ stub BthpIsConnectableByDefault +@ stub BthpIsDiscoverable +@ stub BthpIsDiscoverableByDefault +@ stub BthpIsRadioSoftwareEnabled +@ stub BthpIsTopOfServiceGroup +@ stub BthpMapStatusToErr +@ stub BthpNextRecord +@ stub BthpRegisterForAuthentication +@ stub BthpSetServiceState +@ stub BthpSetServiceStateEx +@ stub BthpTranspose16Bits +@ stub BthpTranspose32Bits +@ stub BthpTransposeAndExtendBytes +@ stub DllCanUnloadNow +@ stub FindNextOpenVCOMPort +@ stub InstallIncomingComPort +@ stub ShouldForceAuthentication diff --git a/dlls/bluetoothapis/main.c b/dlls/bluetoothapis/main.c new file mode 100644 index 00000000000..2ff8f67ff79 --- /dev/null +++ b/dlls/bluetoothapis/main.c @@ -0,0 +1,40 @@ +/* + * Bluetooth APIs + * + * Copyright 2015 Austin English + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#include "config.h" + +#include + +#include "windef.h" +#include "winbase.h" + +BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void *reserved) +{ + switch (reason) + { + case DLL_WINE_PREATTACH: + return FALSE; /* prefer native version */ + case DLL_PROCESS_ATTACH: + DisableThreadLibraryCalls(instance); + break; + } + + return TRUE; +}