This MR is the first of at least three MRs adding support for the Bluetooth stack API in Wine:
1. The winebth.sys driver, which talks to BlueZ and implements several key IOCTLs for communicating with Bluetooth devices and radios.
2. A bthserv service, which is responsible for keeping track of the authentication agent, and relaying authentication requests and responses to and from the driver.
3. Userspace APIs (bluetoothapis.dll, bthprops.cpl, Windows.Devices.Bluetooth, etc).
winebth.sys is split into two "sub" drivers:
`winebth.sys`: The main entrypoint, loaded by winedevice. It listens for changes to Bluetooth devices and radios and authentication events on BlueZ, passing them on the bthenum. It also handles most IOCTL operations on Bluetooth radio PDOs.
`bthenum`: Responsible for creating nodes for discovered Bluetooth devices and associated services. It also tries to validate any IOCTLs relating to bluetooth devices before passing them to winebth.sys.
The unix code is split between dbus.c, unixlib.c and winebluetooth.c, where winebluetooth is a simple wrapper around unixlib for the sake of organization.
--
v9: dlls/winebth.sys: Implement IOCTL command IOCTL_BTH_DISCONNECT_DEVICE.
dlls/winebth.sys: Add support for RequestAuthorization requests from BlueZ.
dlls/winebth.sys: Add support for RequestPasskey requests from BlueZ.
dlls/winebth.sys: Add support for DisplayPasskey requests from BlueZ.
dlls/winebth.sys: Add support for AuthorizeService requests from BlueZ.
dlls/winebth.sys: Add support for DisplayPinCode requests from BlueZ.
dlls/winebth.sys: Add support for RequestPinCode requests from BlueZ.
dlls/winebth.sys: Add support for RequestConfirmation requests from BlueZ.
dlls/winebth.sys: Implement IOCTL_WINEBTH_SEND_AUTH_RESPONSE.
dlls/winebth.sys: Add IOCTLs IOCTL_WINEBTH_START_AUTH_AGENT and IOCTL_WINEBTH_STOP_AUTH_AGENT.
dlls/winebth.sys: Add support for BLUETOOTH_RADIO_IN_RANGE events (WM_DEVICECHANGE).
dlls/winebth.sys: Implement IOCTL commands IOCTL_WINEBTH_RADIO_SET_FLAG and IOCTL_WINEBTH_RADIO_UNSET_FLAG.
dlls/winebth.sys: Implement IOCTL commands IOCTL_WINEBTH_RADIO_START_DISCOVERY and IOCTL_WINEBTH_RADIO_STOP_DISCOVERY.
dlls/winebth.sys: Implement IOCTL_BTH_GET_LOCAL_INFO for radio devices.
dlls/winebth.sys: Create PDOs for Bluetooth services discovered on remote devices.
dlls/winebth.sys: Dispatch a BLUETOOTH_WATCHER_EVENT_TYPE_DEVICE_PROPERTIES_CHANGED event on receiving InterfacesAdded for a BlueZ device.
dlls/winebth.sys: Implement IOCTL_BTH_GET_DEVICE_INFO.
dlls/winebth.sys: Update radio PDO properties when BlueZ sends us a PropertiesChanged for an adapter.
This merge request has too many patches to be relayed via email.
Please visit the URL below to see the contents of the merge request.
https://gitlab.winehq.org/wine/wine/-/merge_requests/6621
This MR is the first of at least three MRs adding support for the Bluetooth stack API in Wine:
1. The winebth.sys driver, which talks to BlueZ and implements several key IOCTLs for communicating with Bluetooth devices and radios.
2. A bthserv service, which is responsible for keeping track of the authentication agent, and relaying authentication requests and responses to and from the driver.
3. Userspace APIs (bluetoothapis.dll, bthprops.cpl, Windows.Devices.Bluetooth, etc).
winebth.sys is split into two "sub" drivers:
`winebth.sys`: The main entrypoint, loaded by winedevice. It listens for changes to Bluetooth devices and radios and authentication events on BlueZ, passing them on the bthenum. It also handles most IOCTL operations on Bluetooth radio PDOs.
`bthenum`: Responsible for creating nodes for discovered Bluetooth devices and associated services. It also tries to validate any IOCTLs relating to bluetooth devices before passing them to winebth.sys.
The unix code is split between dbus.c, unixlib.c and winebluetooth.c, where winebluetooth is a simple wrapper around unixlib for the sake of organization.
--
v8: dlls/winebth.sys: Implement IOCTL command IOCTL_BTH_DISCONNECT_DEVICE.
This merge request has too many patches to be relayed via email.
Please visit the URL below to see the contents of the merge request.
https://gitlab.winehq.org/wine/wine/-/merge_requests/6621
This MR is the first of at least three MRs adding support for the Bluetooth stack API in Wine:
1. The winebth.sys driver, which talks to BlueZ and implements several key IOCTLs for communicating with Bluetooth devices and radios.
2. A bthserv service, which is responsible for keeping track of the authentication agent, and relaying authentication requests and responses to and from the driver.
3. Userspace APIs (bluetoothapis.dll, bthprops.cpl, Windows.Devices.Bluetooth, etc).
winebth.sys is split into two "sub" drivers:
`winebth.sys`: The main entrypoint, loaded by winedevice. It listens for changes to Bluetooth devices and radios and authentication events on BlueZ, passing them on the bthenum. It also handles most IOCTL operations on Bluetooth radio PDOs.
`bthenum`: Responsible for creating nodes for discovered Bluetooth devices and associated services. It also tries to validate any IOCTLs relating to bluetooth devices before passing them to winebth.sys.
The unix code is split between dbus.c, unixlib.c and winebluetooth.c, where winebluetooth is a simple wrapper around unixlib for the sake of organization.
--
v7: dlls/winebth.sys: Implement IOCTL command IOCTL_BTH_DISCONNECT_DEVICE.
dlls/winebth.sys: Add support for RequestAuthorization requests from BlueZ.
dlls/winebth.sys: Add support for RequestPasskey requests from BlueZ.
dlls/winebth.sys: Add support for DisplayPasskey requests from BlueZ.
dlls/winebth.sys: Add support for AuthorizeService requests from BlueZ.
dlls/winebth.sys: Add support for DisplayPinCode requests from BlueZ.
dlls/winebth.sys: Add support for RequestPinCode requests from BlueZ.
dlls/winebth.sys: Add support for RequestConfirmation requests from BlueZ.
dlls/winebth.sys: Implement IOCTL_WINEBTH_SEND_AUTH_RESPONSE.
dlls/winebth.sys: Add IOCTLs IOCTL_WINEBTH_START_AUTH_AGENT and IOCTL_WINEBTH_STOP_AUTH_AGENT.
dlls/winebth.sys: Add support for BLUETOOTH_RADIO_IN_RANGE events (WM_DEVICECHANGE).
dlls/winebth.sys: Implement IOCTL commands IOCTL_WINEBTH_RADIO_SET_FLAG and IOCTL_WINEBTH_RADIO_UNSET_FLAG.
dlls/winebth.sys: Implement IOCTL commands IOCTL_WINEBTH_RADIO_START_DISCOVERY and IOCTL_WINEBTH_RADIO_STOP_DISCOVERY.
dlls/winebth.sys: Implement IOCTL_BTH_GET_LOCAL_INFO for radio devices.
dlls/winebth.sys: Update radio PDO properties when BlueZ sends us a PropertiesChanged for an adapter.
dlls/winebth.sys: Create PDOs for Bluetooth services discovered on remote devices.
dlls/winebth.sys: Dispatch a BLUETOOTH_WATCHER_EVENT_TYPE_DEVICE_PROPERTIES_CHANGED event on receiving InterfacesAdded for a BlueZ device.
dlls/winebth.sys: Implement IOCTL_BTH_GET_DEVICE_INFO.
dlls/winebth.sys: Set properties for Bluetooth devices PDOs.
dlls/winebth.sys: Remove Bluetooth device PDOs on receiving InterfaceRemoved for a BlueZ device.
dlls/winebth.sys: Create PDOs for newly discovered remote Bluetooth devices.
dlls/winebth.sys: Remove radio PDOs on receiving InterfacesRemoved for a BlueZ adapter.
dlls/winebth.sys: Dispatch a BLUETOOTH_WATCHER_EVENT_TYPE_RADIO_ADDED event on receiving InterfacesAdded for a BlueZ adapter.
dlls/winebth.sys: Add radio device properties from BlueZ.
dlls/winebth.sys: Register and enable BTHPORT_DEVICE and BLUETOOTH_RADIO interfaces for radio PDOs.
dlls/winebth.sys: Derive a unique hardware ID for radio PDOs from their corresponding BlueZ object path.
dlls/winebth.sys: Create PDOs for newly discovered Bluetooth radios.
dlls/winebth.sys: Add base winebth.sys driver.
This merge request has too many patches to be relayed via email.
Please visit the URL below to see the contents of the merge request.
https://gitlab.winehq.org/wine/wine/-/merge_requests/6621
--
v3: shlwapi: Output unrecognized format symbol in wvnsprintf().
shlwapi: Skip duplicate '#' in WPRINTF_ParseFormat().
shlwapi: Skip some spaces in WPRINTF_ParseFormat().
shlwapi: Handle ll in WPRINTF_ParseFormat().
shlwapi: Fix char width modifiers handling in WPRINTF_ParseFormat().
shlwapi: Handle repeated modifiers in WPRINTF_ParseFormat().
shlwapi/tests: Add some tests for printf format.
https://gitlab.winehq.org/wine/wine/-/merge_requests/6639