winrt-Windows.Devices.Bluetooth.Background 2.3.0__tar.gz → 3.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (22) hide show
  1. {winrt_windows_devices_bluetooth_background-2.3.0 → winrt_windows_devices_bluetooth_background-3.1.0}/PKG-INFO +13 -13
  2. winrt_windows_devices_bluetooth_background-3.1.0/all-requirements.txt +10 -0
  3. {winrt_windows_devices_bluetooth_background-2.3.0 → winrt_windows_devices_bluetooth_background-3.1.0}/py.Windows.Devices.Bluetooth.Background.cpp +234 -98
  4. {winrt_windows_devices_bluetooth_background-2.3.0 → winrt_windows_devices_bluetooth_background-3.1.0}/pyproject.toml +4 -4
  5. winrt_windows_devices_bluetooth_background-3.1.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_devices_bluetooth_background-2.3.0 → winrt_windows_devices_bluetooth_background-3.1.0}/requirements.txt +2 -2
  7. {winrt_windows_devices_bluetooth_background-2.3.0 → winrt_windows_devices_bluetooth_background-3.1.0}/setup.py +1 -1
  8. winrt_windows_devices_bluetooth_background-3.1.0/winrt/_winrt_windows_devices_bluetooth_background.pyi +133 -0
  9. winrt_windows_devices_bluetooth_background-3.1.0/winrt/windows/devices/bluetooth/background/__init__.py +33 -0
  10. {winrt_windows_devices_bluetooth_background-2.3.0 → winrt_windows_devices_bluetooth_background-3.1.0}/winrt_Windows.Devices.Bluetooth.Background.egg-info/PKG-INFO +13 -13
  11. winrt_windows_devices_bluetooth_background-3.1.0/winrt_Windows.Devices.Bluetooth.Background.egg-info/requires.txt +11 -0
  12. winrt_windows_devices_bluetooth_background-2.3.0/all-requirements.txt +0 -10
  13. winrt_windows_devices_bluetooth_background-2.3.0/pywinrt-version.txt +0 -1
  14. winrt_windows_devices_bluetooth_background-2.3.0/winrt/_winrt_windows_devices_bluetooth_background.pyi +0 -120
  15. winrt_windows_devices_bluetooth_background-2.3.0/winrt/windows/devices/bluetooth/background/__init__.py +0 -32
  16. winrt_windows_devices_bluetooth_background-2.3.0/winrt_Windows.Devices.Bluetooth.Background.egg-info/requires.txt +0 -11
  17. {winrt_windows_devices_bluetooth_background-2.3.0 → winrt_windows_devices_bluetooth_background-3.1.0}/README.md +0 -0
  18. {winrt_windows_devices_bluetooth_background-2.3.0 → winrt_windows_devices_bluetooth_background-3.1.0}/setup.cfg +0 -0
  19. {winrt_windows_devices_bluetooth_background-2.3.0 → winrt_windows_devices_bluetooth_background-3.1.0}/winrt/windows/devices/bluetooth/background/py.typed +0 -0
  20. {winrt_windows_devices_bluetooth_background-2.3.0 → winrt_windows_devices_bluetooth_background-3.1.0}/winrt_Windows.Devices.Bluetooth.Background.egg-info/SOURCES.txt +0 -0
  21. {winrt_windows_devices_bluetooth_background-2.3.0 → winrt_windows_devices_bluetooth_background-3.1.0}/winrt_Windows.Devices.Bluetooth.Background.egg-info/dependency_links.txt +0 -0
  22. {winrt_windows_devices_bluetooth_background-2.3.0 → winrt_windows_devices_bluetooth_background-3.1.0}/winrt_Windows.Devices.Bluetooth.Background.egg-info/top_level.txt +0 -0
@@ -1,8 +1,8 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: winrt-Windows.Devices.Bluetooth.Background
3
- Version: 2.3.0
3
+ Version: 3.1.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
- License: MIT
5
+ License-Expression: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
7
7
  Project-URL: Repository, https://github.com/pywinrt/pywinrt
8
8
  Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
@@ -10,18 +10,18 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.14,>=3.9
13
+ Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.3.0
15
+ Requires-Dist: winrt-runtime==3.1.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Devices.Bluetooth[all]==2.3.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Devices.Bluetooth.Advertisement[all]==2.3.0; extra == "all"
19
- Requires-Dist: winrt-Windows.Devices.Bluetooth.GenericAttributeProfile[all]==2.3.0; extra == "all"
20
- Requires-Dist: winrt-Windows.Devices.Bluetooth.Rfcomm[all]==2.3.0; extra == "all"
21
- Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
22
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
23
- Requires-Dist: winrt-Windows.Networking.Sockets[all]==2.3.0; extra == "all"
24
- Requires-Dist: winrt-Windows.Storage.Streams[all]==2.3.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Devices.Bluetooth[all]==3.1.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Devices.Bluetooth.Advertisement[all]==3.1.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Devices.Bluetooth.GenericAttributeProfile[all]==3.1.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.Devices.Bluetooth.Rfcomm[all]==3.1.0; extra == "all"
21
+ Requires-Dist: winrt-Windows.Foundation[all]==3.1.0; extra == "all"
22
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.1.0; extra == "all"
23
+ Requires-Dist: winrt-Windows.Networking.Sockets[all]==3.1.0; extra == "all"
24
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==3.1.0; extra == "all"
25
25
 
26
26
  <!-- warning: Please don't edit this file. It was automatically generated. -->
27
27
 
@@ -0,0 +1,10 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
+
3
+ winrt-Windows.Devices.Bluetooth[all]==3.1.0
4
+ winrt-Windows.Devices.Bluetooth.Advertisement[all]==3.1.0
5
+ winrt-Windows.Devices.Bluetooth.GenericAttributeProfile[all]==3.1.0
6
+ winrt-Windows.Devices.Bluetooth.Rfcomm[all]==3.1.0
7
+ winrt-Windows.Foundation[all]==3.1.0
8
+ winrt-Windows.Foundation.Collections[all]==3.1.0
9
+ winrt-Windows.Networking.Sockets[all]==3.1.0
10
+ winrt-Windows.Storage.Streams[all]==3.1.0
@@ -1,4 +1,4 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
2
 
3
3
  #include "py.Windows.Devices.Bluetooth.Background.h"
4
4
 
@@ -38,7 +38,11 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
38
38
  return nullptr;
39
39
  }
40
40
 
41
- return py::convert(self->obj.Error());
41
+ return py::convert([&]()
42
+ {
43
+ auto _gil = release_gil();
44
+ return self->obj.Error();
45
+ }());
42
46
  }
43
47
  catch (...)
44
48
  {
@@ -64,7 +68,11 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
64
68
  return nullptr;
65
69
  }
66
70
 
67
- return py::convert(self->obj.Status());
71
+ return py::convert([&]()
72
+ {
73
+ auto _gil = release_gil();
74
+ return self->obj.Status();
75
+ }());
68
76
  }
69
77
  catch (...)
70
78
  {
@@ -90,7 +98,11 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
90
98
  return nullptr;
91
99
  }
92
100
 
93
- return py::convert(self->obj.SelectedTransmitPowerLevelInDBm());
101
+ return py::convert([&]()
102
+ {
103
+ auto _gil = release_gil();
104
+ return self->obj.SelectedTransmitPowerLevelInDBm();
105
+ }());
94
106
  }
95
107
  catch (...)
96
108
  {
@@ -126,23 +138,20 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
126
138
  static PyMethodDef _methods_BluetoothLEAdvertisementPublisherTriggerDetails[] = {
127
139
  { "_assign_array_", _assign_array_BluetoothLEAdvertisementPublisherTriggerDetails, METH_O | METH_STATIC, nullptr },
128
140
  { "_from", reinterpret_cast<PyCFunction>(_from_BluetoothLEAdvertisementPublisherTriggerDetails), METH_O | METH_STATIC, nullptr },
129
- { }
130
- };
141
+ { }};
131
142
 
132
143
  static PyGetSetDef _getset_BluetoothLEAdvertisementPublisherTriggerDetails[] = {
133
144
  { "error", reinterpret_cast<getter>(BluetoothLEAdvertisementPublisherTriggerDetails_get_Error), nullptr, nullptr, nullptr },
134
145
  { "status", reinterpret_cast<getter>(BluetoothLEAdvertisementPublisherTriggerDetails_get_Status), nullptr, nullptr, nullptr },
135
- { "selected_transmit_power_level_in_d_bm", reinterpret_cast<getter>(BluetoothLEAdvertisementPublisherTriggerDetails_get_SelectedTransmitPowerLevelInDBm), nullptr, nullptr, nullptr },
136
- { }
137
- };
146
+ { "selected_transmit_power_level_in_dbm", reinterpret_cast<getter>(BluetoothLEAdvertisementPublisherTriggerDetails_get_SelectedTransmitPowerLevelInDBm), nullptr, nullptr, nullptr },
147
+ { }};
138
148
 
139
149
  static PyType_Slot _type_slots_BluetoothLEAdvertisementPublisherTriggerDetails[] = {
140
150
  { Py_tp_new, reinterpret_cast<void*>(_new_BluetoothLEAdvertisementPublisherTriggerDetails) },
141
151
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_BluetoothLEAdvertisementPublisherTriggerDetails) },
142
152
  { Py_tp_methods, reinterpret_cast<void*>(_methods_BluetoothLEAdvertisementPublisherTriggerDetails) },
143
153
  { Py_tp_getset, reinterpret_cast<void*>(_getset_BluetoothLEAdvertisementPublisherTriggerDetails) },
144
- { }
145
- };
154
+ { }};
146
155
 
147
156
  static PyType_Spec type_spec_BluetoothLEAdvertisementPublisherTriggerDetails = {
148
157
  "winrt._winrt_windows_devices_bluetooth_background.BluetoothLEAdvertisementPublisherTriggerDetails",
@@ -185,7 +194,11 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
185
194
  return nullptr;
186
195
  }
187
196
 
188
- return py::convert(self->obj.Advertisements());
197
+ return py::convert([&]()
198
+ {
199
+ auto _gil = release_gil();
200
+ return self->obj.Advertisements();
201
+ }());
189
202
  }
190
203
  catch (...)
191
204
  {
@@ -211,7 +224,11 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
211
224
  return nullptr;
212
225
  }
213
226
 
214
- return py::convert(self->obj.Error());
227
+ return py::convert([&]()
228
+ {
229
+ auto _gil = release_gil();
230
+ return self->obj.Error();
231
+ }());
215
232
  }
216
233
  catch (...)
217
234
  {
@@ -237,7 +254,11 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
237
254
  return nullptr;
238
255
  }
239
256
 
240
- return py::convert(self->obj.SignalStrengthFilter());
257
+ return py::convert([&]()
258
+ {
259
+ auto _gil = release_gil();
260
+ return self->obj.SignalStrengthFilter();
261
+ }());
241
262
  }
242
263
  catch (...)
243
264
  {
@@ -273,23 +294,20 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
273
294
  static PyMethodDef _methods_BluetoothLEAdvertisementWatcherTriggerDetails[] = {
274
295
  { "_assign_array_", _assign_array_BluetoothLEAdvertisementWatcherTriggerDetails, METH_O | METH_STATIC, nullptr },
275
296
  { "_from", reinterpret_cast<PyCFunction>(_from_BluetoothLEAdvertisementWatcherTriggerDetails), METH_O | METH_STATIC, nullptr },
276
- { }
277
- };
297
+ { }};
278
298
 
279
299
  static PyGetSetDef _getset_BluetoothLEAdvertisementWatcherTriggerDetails[] = {
280
300
  { "advertisements", reinterpret_cast<getter>(BluetoothLEAdvertisementWatcherTriggerDetails_get_Advertisements), nullptr, nullptr, nullptr },
281
301
  { "error", reinterpret_cast<getter>(BluetoothLEAdvertisementWatcherTriggerDetails_get_Error), nullptr, nullptr, nullptr },
282
302
  { "signal_strength_filter", reinterpret_cast<getter>(BluetoothLEAdvertisementWatcherTriggerDetails_get_SignalStrengthFilter), nullptr, nullptr, nullptr },
283
- { }
284
- };
303
+ { }};
285
304
 
286
305
  static PyType_Slot _type_slots_BluetoothLEAdvertisementWatcherTriggerDetails[] = {
287
306
  { Py_tp_new, reinterpret_cast<void*>(_new_BluetoothLEAdvertisementWatcherTriggerDetails) },
288
307
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_BluetoothLEAdvertisementWatcherTriggerDetails) },
289
308
  { Py_tp_methods, reinterpret_cast<void*>(_methods_BluetoothLEAdvertisementWatcherTriggerDetails) },
290
309
  { Py_tp_getset, reinterpret_cast<void*>(_getset_BluetoothLEAdvertisementWatcherTriggerDetails) },
291
- { }
292
- };
310
+ { }};
293
311
 
294
312
  static PyType_Spec type_spec_BluetoothLEAdvertisementWatcherTriggerDetails = {
295
313
  "winrt._winrt_windows_devices_bluetooth_background.BluetoothLEAdvertisementWatcherTriggerDetails",
@@ -332,7 +350,11 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
332
350
  return nullptr;
333
351
  }
334
352
 
335
- return py::convert(self->obj.Characteristic());
353
+ return py::convert([&]()
354
+ {
355
+ auto _gil = release_gil();
356
+ return self->obj.Characteristic();
357
+ }());
336
358
  }
337
359
  catch (...)
338
360
  {
@@ -358,7 +380,11 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
358
380
  return nullptr;
359
381
  }
360
382
 
361
- return py::convert(self->obj.Value());
383
+ return py::convert([&]()
384
+ {
385
+ auto _gil = release_gil();
386
+ return self->obj.Value();
387
+ }());
362
388
  }
363
389
  catch (...)
364
390
  {
@@ -384,7 +410,11 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
384
410
  return nullptr;
385
411
  }
386
412
 
387
- return py::convert(self->obj.Error());
413
+ return py::convert([&]()
414
+ {
415
+ auto _gil = release_gil();
416
+ return self->obj.Error();
417
+ }());
388
418
  }
389
419
  catch (...)
390
420
  {
@@ -410,7 +440,11 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
410
440
  return nullptr;
411
441
  }
412
442
 
413
- return py::convert(self->obj.EventTriggeringMode());
443
+ return py::convert([&]()
444
+ {
445
+ auto _gil = release_gil();
446
+ return self->obj.EventTriggeringMode();
447
+ }());
414
448
  }
415
449
  catch (...)
416
450
  {
@@ -436,7 +470,11 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
436
470
  return nullptr;
437
471
  }
438
472
 
439
- return py::convert(self->obj.ValueChangedEvents());
473
+ return py::convert([&]()
474
+ {
475
+ auto _gil = release_gil();
476
+ return self->obj.ValueChangedEvents();
477
+ }());
440
478
  }
441
479
  catch (...)
442
480
  {
@@ -472,8 +510,7 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
472
510
  static PyMethodDef _methods_GattCharacteristicNotificationTriggerDetails[] = {
473
511
  { "_assign_array_", _assign_array_GattCharacteristicNotificationTriggerDetails, METH_O | METH_STATIC, nullptr },
474
512
  { "_from", reinterpret_cast<PyCFunction>(_from_GattCharacteristicNotificationTriggerDetails), METH_O | METH_STATIC, nullptr },
475
- { }
476
- };
513
+ { }};
477
514
 
478
515
  static PyGetSetDef _getset_GattCharacteristicNotificationTriggerDetails[] = {
479
516
  { "characteristic", reinterpret_cast<getter>(GattCharacteristicNotificationTriggerDetails_get_Characteristic), nullptr, nullptr, nullptr },
@@ -481,16 +518,14 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
481
518
  { "error", reinterpret_cast<getter>(GattCharacteristicNotificationTriggerDetails_get_Error), nullptr, nullptr, nullptr },
482
519
  { "event_triggering_mode", reinterpret_cast<getter>(GattCharacteristicNotificationTriggerDetails_get_EventTriggeringMode), nullptr, nullptr, nullptr },
483
520
  { "value_changed_events", reinterpret_cast<getter>(GattCharacteristicNotificationTriggerDetails_get_ValueChangedEvents), nullptr, nullptr, nullptr },
484
- { }
485
- };
521
+ { }};
486
522
 
487
523
  static PyType_Slot _type_slots_GattCharacteristicNotificationTriggerDetails[] = {
488
524
  { Py_tp_new, reinterpret_cast<void*>(_new_GattCharacteristicNotificationTriggerDetails) },
489
525
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_GattCharacteristicNotificationTriggerDetails) },
490
526
  { Py_tp_methods, reinterpret_cast<void*>(_methods_GattCharacteristicNotificationTriggerDetails) },
491
527
  { Py_tp_getset, reinterpret_cast<void*>(_getset_GattCharacteristicNotificationTriggerDetails) },
492
- { }
493
- };
528
+ { }};
494
529
 
495
530
  static PyType_Spec type_spec_GattCharacteristicNotificationTriggerDetails = {
496
531
  "winrt._winrt_windows_devices_bluetooth_background.GattCharacteristicNotificationTriggerDetails",
@@ -518,7 +553,7 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
518
553
 
519
554
  static PyObject* GattServiceProviderConnection_Start(py::wrapper::Windows::Devices::Bluetooth::Background::GattServiceProviderConnection* self, PyObject* args) noexcept
520
555
  {
521
- auto arg_count = PyTuple_Size(args);
556
+ auto arg_count = PyTuple_GET_SIZE(args);
522
557
 
523
558
  if (arg_count == 0)
524
559
  {
@@ -537,7 +572,54 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
537
572
  return nullptr;
538
573
  }
539
574
 
540
- self->obj.Start();
575
+ {
576
+ auto _gil = release_gil();
577
+ self->obj.Start();
578
+ }
579
+
580
+ Py_RETURN_NONE;
581
+ }
582
+ catch (...)
583
+ {
584
+ py::to_PyErr();
585
+ return nullptr;
586
+ }
587
+ }
588
+ else
589
+ {
590
+ py::set_invalid_arg_count_error(arg_count);
591
+ return nullptr;
592
+ }
593
+ }
594
+
595
+ static PyObject* GattServiceProviderConnection_UpdateAdvertisingParameters(py::wrapper::Windows::Devices::Bluetooth::Background::GattServiceProviderConnection* self, PyObject* args) noexcept
596
+ {
597
+ auto arg_count = PyTuple_GET_SIZE(args);
598
+
599
+ if (arg_count == 1)
600
+ {
601
+ try
602
+ {
603
+ static std::optional<bool> is_overload_present{};
604
+
605
+ if (!is_overload_present.has_value())
606
+ {
607
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Bluetooth.Background.GattServiceProviderConnection", L"UpdateAdvertisingParameters", 1);
608
+ }
609
+
610
+ if (!is_overload_present.value())
611
+ {
612
+ py::set_arg_count_version_error(1);
613
+ return nullptr;
614
+ }
615
+
616
+ auto param0 = py::convert_to<winrt::Windows::Devices::Bluetooth::GenericAttributeProfile::GattServiceProviderAdvertisingParameters>(args, 0);
617
+
618
+ {
619
+ auto _gil = release_gil();
620
+ self->obj.UpdateAdvertisingParameters(param0);
621
+ }
622
+
541
623
  Py_RETURN_NONE;
542
624
  }
543
625
  catch (...)
@@ -570,7 +652,11 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
570
652
  return nullptr;
571
653
  }
572
654
 
573
- return py::convert(self->obj.Service());
655
+ return py::convert([&]()
656
+ {
657
+ auto _gil = release_gil();
658
+ return self->obj.Service();
659
+ }());
574
660
  }
575
661
  catch (...)
576
662
  {
@@ -596,7 +682,11 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
596
682
  return nullptr;
597
683
  }
598
684
 
599
- return py::convert(self->obj.TriggerId());
685
+ return py::convert([&]()
686
+ {
687
+ auto _gil = release_gil();
688
+ return self->obj.TriggerId();
689
+ }());
600
690
  }
601
691
  catch (...)
602
692
  {
@@ -622,7 +712,11 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
622
712
  return nullptr;
623
713
  }
624
714
 
625
- return py::convert(winrt::Windows::Devices::Bluetooth::Background::GattServiceProviderConnection::AllServices());
715
+ return py::convert([&]()
716
+ {
717
+ auto _gil = release_gil();
718
+ return winrt::Windows::Devices::Bluetooth::Background::GattServiceProviderConnection::AllServices();
719
+ }());
626
720
  }
627
721
  catch (...)
628
722
  {
@@ -657,24 +751,22 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
657
751
 
658
752
  static PyMethodDef _methods_GattServiceProviderConnection[] = {
659
753
  { "start", reinterpret_cast<PyCFunction>(GattServiceProviderConnection_Start), METH_VARARGS, nullptr },
754
+ { "update_advertising_parameters", reinterpret_cast<PyCFunction>(GattServiceProviderConnection_UpdateAdvertisingParameters), METH_VARARGS, nullptr },
660
755
  { "_assign_array_", _assign_array_GattServiceProviderConnection, METH_O | METH_STATIC, nullptr },
661
756
  { "_from", reinterpret_cast<PyCFunction>(_from_GattServiceProviderConnection), METH_O | METH_STATIC, nullptr },
662
- { }
663
- };
757
+ { }};
664
758
 
665
759
  static PyGetSetDef _getset_GattServiceProviderConnection[] = {
666
760
  { "service", reinterpret_cast<getter>(GattServiceProviderConnection_get_Service), nullptr, nullptr, nullptr },
667
761
  { "trigger_id", reinterpret_cast<getter>(GattServiceProviderConnection_get_TriggerId), nullptr, nullptr, nullptr },
668
- { }
669
- };
762
+ { }};
670
763
 
671
764
  static PyType_Slot _type_slots_GattServiceProviderConnection[] = {
672
765
  { Py_tp_new, reinterpret_cast<void*>(_new_GattServiceProviderConnection) },
673
766
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_GattServiceProviderConnection) },
674
767
  { Py_tp_methods, reinterpret_cast<void*>(_methods_GattServiceProviderConnection) },
675
768
  { Py_tp_getset, reinterpret_cast<void*>(_getset_GattServiceProviderConnection) },
676
- { }
677
- };
769
+ { }};
678
770
 
679
771
  static PyType_Spec type_spec_GattServiceProviderConnection = {
680
772
  "winrt._winrt_windows_devices_bluetooth_background.GattServiceProviderConnection",
@@ -685,12 +777,10 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
685
777
 
686
778
  static PyGetSetDef getset_GattServiceProviderConnection_Static[] = {
687
779
  { "all_services", reinterpret_cast<getter>(GattServiceProviderConnection_get_AllServices), nullptr, nullptr, nullptr },
688
- { }
689
- };
780
+ { }};
690
781
 
691
782
  static PyMethodDef methods_GattServiceProviderConnection_Static[] = {
692
- { }
693
- };
783
+ { }};
694
784
 
695
785
  static PyType_Slot type_slots_GattServiceProviderConnection_Static[] =
696
786
  {
@@ -700,14 +790,12 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
700
790
  { }
701
791
  };
702
792
 
703
- static PyType_Spec type_spec_GattServiceProviderConnection_Static =
704
- {
793
+ static PyType_Spec type_spec_GattServiceProviderConnection_Static = {
705
794
  "winrt._winrt_windows_devices_bluetooth_background.GattServiceProviderConnection_Static",
706
795
  static_cast<int>(PyType_Type.tp_basicsize),
707
796
  static_cast<int>(PyType_Type.tp_itemsize),
708
797
  Py_TPFLAGS_DEFAULT,
709
- type_slots_GattServiceProviderConnection_Static
710
- };
798
+ type_slots_GattServiceProviderConnection_Static};
711
799
 
712
800
  // ----- GattServiceProviderTriggerDetails class --------------------
713
801
 
@@ -743,7 +831,11 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
743
831
  return nullptr;
744
832
  }
745
833
 
746
- return py::convert(self->obj.Connection());
834
+ return py::convert([&]()
835
+ {
836
+ auto _gil = release_gil();
837
+ return self->obj.Connection();
838
+ }());
747
839
  }
748
840
  catch (...)
749
841
  {
@@ -779,21 +871,18 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
779
871
  static PyMethodDef _methods_GattServiceProviderTriggerDetails[] = {
780
872
  { "_assign_array_", _assign_array_GattServiceProviderTriggerDetails, METH_O | METH_STATIC, nullptr },
781
873
  { "_from", reinterpret_cast<PyCFunction>(_from_GattServiceProviderTriggerDetails), METH_O | METH_STATIC, nullptr },
782
- { }
783
- };
874
+ { }};
784
875
 
785
876
  static PyGetSetDef _getset_GattServiceProviderTriggerDetails[] = {
786
877
  { "connection", reinterpret_cast<getter>(GattServiceProviderTriggerDetails_get_Connection), nullptr, nullptr, nullptr },
787
- { }
788
- };
878
+ { }};
789
879
 
790
880
  static PyType_Slot _type_slots_GattServiceProviderTriggerDetails[] = {
791
881
  { Py_tp_new, reinterpret_cast<void*>(_new_GattServiceProviderTriggerDetails) },
792
882
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_GattServiceProviderTriggerDetails) },
793
883
  { Py_tp_methods, reinterpret_cast<void*>(_methods_GattServiceProviderTriggerDetails) },
794
884
  { Py_tp_getset, reinterpret_cast<void*>(_getset_GattServiceProviderTriggerDetails) },
795
- { }
796
- };
885
+ { }};
797
886
 
798
887
  static PyType_Spec type_spec_GattServiceProviderTriggerDetails = {
799
888
  "winrt._winrt_windows_devices_bluetooth_background.GattServiceProviderTriggerDetails",
@@ -836,7 +925,11 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
836
925
  return nullptr;
837
926
  }
838
927
 
839
- return py::convert(self->obj.Incoming());
928
+ return py::convert([&]()
929
+ {
930
+ auto _gil = release_gil();
931
+ return self->obj.Incoming();
932
+ }());
840
933
  }
841
934
  catch (...)
842
935
  {
@@ -862,7 +955,11 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
862
955
  return nullptr;
863
956
  }
864
957
 
865
- return py::convert(self->obj.RemoteDevice());
958
+ return py::convert([&]()
959
+ {
960
+ auto _gil = release_gil();
961
+ return self->obj.RemoteDevice();
962
+ }());
866
963
  }
867
964
  catch (...)
868
965
  {
@@ -888,7 +985,11 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
888
985
  return nullptr;
889
986
  }
890
987
 
891
- return py::convert(self->obj.Socket());
988
+ return py::convert([&]()
989
+ {
990
+ auto _gil = release_gil();
991
+ return self->obj.Socket();
992
+ }());
892
993
  }
893
994
  catch (...)
894
995
  {
@@ -924,23 +1025,20 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
924
1025
  static PyMethodDef _methods_RfcommConnectionTriggerDetails[] = {
925
1026
  { "_assign_array_", _assign_array_RfcommConnectionTriggerDetails, METH_O | METH_STATIC, nullptr },
926
1027
  { "_from", reinterpret_cast<PyCFunction>(_from_RfcommConnectionTriggerDetails), METH_O | METH_STATIC, nullptr },
927
- { }
928
- };
1028
+ { }};
929
1029
 
930
1030
  static PyGetSetDef _getset_RfcommConnectionTriggerDetails[] = {
931
1031
  { "incoming", reinterpret_cast<getter>(RfcommConnectionTriggerDetails_get_Incoming), nullptr, nullptr, nullptr },
932
1032
  { "remote_device", reinterpret_cast<getter>(RfcommConnectionTriggerDetails_get_RemoteDevice), nullptr, nullptr, nullptr },
933
1033
  { "socket", reinterpret_cast<getter>(RfcommConnectionTriggerDetails_get_Socket), nullptr, nullptr, nullptr },
934
- { }
935
- };
1034
+ { }};
936
1035
 
937
1036
  static PyType_Slot _type_slots_RfcommConnectionTriggerDetails[] = {
938
1037
  { Py_tp_new, reinterpret_cast<void*>(_new_RfcommConnectionTriggerDetails) },
939
1038
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_RfcommConnectionTriggerDetails) },
940
1039
  { Py_tp_methods, reinterpret_cast<void*>(_methods_RfcommConnectionTriggerDetails) },
941
1040
  { Py_tp_getset, reinterpret_cast<void*>(_getset_RfcommConnectionTriggerDetails) },
942
- { }
943
- };
1041
+ { }};
944
1042
 
945
1043
  static PyType_Spec type_spec_RfcommConnectionTriggerDetails = {
946
1044
  "winrt._winrt_windows_devices_bluetooth_background.RfcommConnectionTriggerDetails",
@@ -983,7 +1081,11 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
983
1081
  return nullptr;
984
1082
  }
985
1083
 
986
- return py::convert(self->obj.ServiceCapabilities());
1084
+ return py::convert([&]()
1085
+ {
1086
+ auto _gil = release_gil();
1087
+ return self->obj.ServiceCapabilities();
1088
+ }());
987
1089
  }
988
1090
  catch (...)
989
1091
  {
@@ -994,7 +1096,7 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
994
1096
 
995
1097
  static int RfcommInboundConnectionInformation_put_ServiceCapabilities(py::wrapper::Windows::Devices::Bluetooth::Background::RfcommInboundConnectionInformation* self, PyObject* arg, void* /*unused*/) noexcept
996
1098
  {
997
- if (arg == nullptr)
1099
+ if (!arg)
998
1100
  {
999
1101
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
1000
1102
  return -1;
@@ -1017,7 +1119,11 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
1017
1119
 
1018
1120
  auto param0 = py::convert_to<winrt::Windows::Devices::Bluetooth::BluetoothServiceCapabilities>(arg);
1019
1121
 
1020
- self->obj.ServiceCapabilities(param0);
1122
+ {
1123
+ auto _gil = release_gil();
1124
+ self->obj.ServiceCapabilities(param0);
1125
+ }
1126
+
1021
1127
  return 0;
1022
1128
  }
1023
1129
  catch (...)
@@ -1044,7 +1150,11 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
1044
1150
  return nullptr;
1045
1151
  }
1046
1152
 
1047
- return py::convert(self->obj.SdpRecord());
1153
+ return py::convert([&]()
1154
+ {
1155
+ auto _gil = release_gil();
1156
+ return self->obj.SdpRecord();
1157
+ }());
1048
1158
  }
1049
1159
  catch (...)
1050
1160
  {
@@ -1055,7 +1165,7 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
1055
1165
 
1056
1166
  static int RfcommInboundConnectionInformation_put_SdpRecord(py::wrapper::Windows::Devices::Bluetooth::Background::RfcommInboundConnectionInformation* self, PyObject* arg, void* /*unused*/) noexcept
1057
1167
  {
1058
- if (arg == nullptr)
1168
+ if (!arg)
1059
1169
  {
1060
1170
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
1061
1171
  return -1;
@@ -1078,7 +1188,11 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
1078
1188
 
1079
1189
  auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(arg);
1080
1190
 
1081
- self->obj.SdpRecord(param0);
1191
+ {
1192
+ auto _gil = release_gil();
1193
+ self->obj.SdpRecord(param0);
1194
+ }
1195
+
1082
1196
  return 0;
1083
1197
  }
1084
1198
  catch (...)
@@ -1105,7 +1219,11 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
1105
1219
  return nullptr;
1106
1220
  }
1107
1221
 
1108
- return py::convert(self->obj.LocalServiceId());
1222
+ return py::convert([&]()
1223
+ {
1224
+ auto _gil = release_gil();
1225
+ return self->obj.LocalServiceId();
1226
+ }());
1109
1227
  }
1110
1228
  catch (...)
1111
1229
  {
@@ -1116,7 +1234,7 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
1116
1234
 
1117
1235
  static int RfcommInboundConnectionInformation_put_LocalServiceId(py::wrapper::Windows::Devices::Bluetooth::Background::RfcommInboundConnectionInformation* self, PyObject* arg, void* /*unused*/) noexcept
1118
1236
  {
1119
- if (arg == nullptr)
1237
+ if (!arg)
1120
1238
  {
1121
1239
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
1122
1240
  return -1;
@@ -1139,7 +1257,11 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
1139
1257
 
1140
1258
  auto param0 = py::convert_to<winrt::Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId>(arg);
1141
1259
 
1142
- self->obj.LocalServiceId(param0);
1260
+ {
1261
+ auto _gil = release_gil();
1262
+ self->obj.LocalServiceId(param0);
1263
+ }
1264
+
1143
1265
  return 0;
1144
1266
  }
1145
1267
  catch (...)
@@ -1176,23 +1298,20 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
1176
1298
  static PyMethodDef _methods_RfcommInboundConnectionInformation[] = {
1177
1299
  { "_assign_array_", _assign_array_RfcommInboundConnectionInformation, METH_O | METH_STATIC, nullptr },
1178
1300
  { "_from", reinterpret_cast<PyCFunction>(_from_RfcommInboundConnectionInformation), METH_O | METH_STATIC, nullptr },
1179
- { }
1180
- };
1301
+ { }};
1181
1302
 
1182
1303
  static PyGetSetDef _getset_RfcommInboundConnectionInformation[] = {
1183
1304
  { "service_capabilities", reinterpret_cast<getter>(RfcommInboundConnectionInformation_get_ServiceCapabilities), reinterpret_cast<setter>(RfcommInboundConnectionInformation_put_ServiceCapabilities), nullptr, nullptr },
1184
1305
  { "sdp_record", reinterpret_cast<getter>(RfcommInboundConnectionInformation_get_SdpRecord), reinterpret_cast<setter>(RfcommInboundConnectionInformation_put_SdpRecord), nullptr, nullptr },
1185
1306
  { "local_service_id", reinterpret_cast<getter>(RfcommInboundConnectionInformation_get_LocalServiceId), reinterpret_cast<setter>(RfcommInboundConnectionInformation_put_LocalServiceId), nullptr, nullptr },
1186
- { }
1187
- };
1307
+ { }};
1188
1308
 
1189
1309
  static PyType_Slot _type_slots_RfcommInboundConnectionInformation[] = {
1190
1310
  { Py_tp_new, reinterpret_cast<void*>(_new_RfcommInboundConnectionInformation) },
1191
1311
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_RfcommInboundConnectionInformation) },
1192
1312
  { Py_tp_methods, reinterpret_cast<void*>(_methods_RfcommInboundConnectionInformation) },
1193
1313
  { Py_tp_getset, reinterpret_cast<void*>(_getset_RfcommInboundConnectionInformation) },
1194
- { }
1195
- };
1314
+ { }};
1196
1315
 
1197
1316
  static PyType_Spec type_spec_RfcommInboundConnectionInformation = {
1198
1317
  "winrt._winrt_windows_devices_bluetooth_background.RfcommInboundConnectionInformation",
@@ -1235,7 +1354,11 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
1235
1354
  return nullptr;
1236
1355
  }
1237
1356
 
1238
- return py::convert(self->obj.RemoteServiceId());
1357
+ return py::convert([&]()
1358
+ {
1359
+ auto _gil = release_gil();
1360
+ return self->obj.RemoteServiceId();
1361
+ }());
1239
1362
  }
1240
1363
  catch (...)
1241
1364
  {
@@ -1246,7 +1369,7 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
1246
1369
 
1247
1370
  static int RfcommOutboundConnectionInformation_put_RemoteServiceId(py::wrapper::Windows::Devices::Bluetooth::Background::RfcommOutboundConnectionInformation* self, PyObject* arg, void* /*unused*/) noexcept
1248
1371
  {
1249
- if (arg == nullptr)
1372
+ if (!arg)
1250
1373
  {
1251
1374
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
1252
1375
  return -1;
@@ -1269,7 +1392,11 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
1269
1392
 
1270
1393
  auto param0 = py::convert_to<winrt::Windows::Devices::Bluetooth::Rfcomm::RfcommServiceId>(arg);
1271
1394
 
1272
- self->obj.RemoteServiceId(param0);
1395
+ {
1396
+ auto _gil = release_gil();
1397
+ self->obj.RemoteServiceId(param0);
1398
+ }
1399
+
1273
1400
  return 0;
1274
1401
  }
1275
1402
  catch (...)
@@ -1306,21 +1433,18 @@ namespace py::cpp::Windows::Devices::Bluetooth::Background
1306
1433
  static PyMethodDef _methods_RfcommOutboundConnectionInformation[] = {
1307
1434
  { "_assign_array_", _assign_array_RfcommOutboundConnectionInformation, METH_O | METH_STATIC, nullptr },
1308
1435
  { "_from", reinterpret_cast<PyCFunction>(_from_RfcommOutboundConnectionInformation), METH_O | METH_STATIC, nullptr },
1309
- { }
1310
- };
1436
+ { }};
1311
1437
 
1312
1438
  static PyGetSetDef _getset_RfcommOutboundConnectionInformation[] = {
1313
1439
  { "remote_service_id", reinterpret_cast<getter>(RfcommOutboundConnectionInformation_get_RemoteServiceId), reinterpret_cast<setter>(RfcommOutboundConnectionInformation_put_RemoteServiceId), nullptr, nullptr },
1314
- { }
1315
- };
1440
+ { }};
1316
1441
 
1317
1442
  static PyType_Slot _type_slots_RfcommOutboundConnectionInformation[] = {
1318
1443
  { Py_tp_new, reinterpret_cast<void*>(_new_RfcommOutboundConnectionInformation) },
1319
1444
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_RfcommOutboundConnectionInformation) },
1320
1445
  { Py_tp_methods, reinterpret_cast<void*>(_methods_RfcommOutboundConnectionInformation) },
1321
1446
  { Py_tp_getset, reinterpret_cast<void*>(_getset_RfcommOutboundConnectionInformation) },
1322
- { }
1323
- };
1447
+ { }};
1324
1448
 
1325
1449
  static PyType_Spec type_spec_RfcommOutboundConnectionInformation = {
1326
1450
  "winrt._winrt_windows_devices_bluetooth_background.RfcommOutboundConnectionInformation",
@@ -1361,6 +1485,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_devices_bluetooth_background(void) noexcept
1361
1485
  return nullptr;
1362
1486
  }
1363
1487
 
1488
+ auto inspectable_meta_type = py::get_inspectable_meta_type();
1489
+ if (!inspectable_meta_type)
1490
+ {
1491
+ return nullptr;
1492
+ }
1493
+
1364
1494
  auto object_type = py::get_object_type();
1365
1495
  if (!object_type)
1366
1496
  {
@@ -1374,25 +1504,31 @@ PyMODINIT_FUNC PyInit__winrt_windows_devices_bluetooth_background(void) noexcept
1374
1504
  return nullptr;
1375
1505
  }
1376
1506
 
1377
- py::pytype_handle BluetoothLEAdvertisementPublisherTriggerDetails_type{py::register_python_type(module.get(), &type_spec_BluetoothLEAdvertisementPublisherTriggerDetails, object_bases.get(), nullptr)};
1507
+ py::pytype_handle BluetoothLEAdvertisementPublisherTriggerDetails_type{py::register_python_type(module.get(), &type_spec_BluetoothLEAdvertisementPublisherTriggerDetails, object_bases.get(), inspectable_meta_type)};
1378
1508
  if (!BluetoothLEAdvertisementPublisherTriggerDetails_type)
1379
1509
  {
1380
1510
  return nullptr;
1381
1511
  }
1382
1512
 
1383
- py::pytype_handle BluetoothLEAdvertisementWatcherTriggerDetails_type{py::register_python_type(module.get(), &type_spec_BluetoothLEAdvertisementWatcherTriggerDetails, object_bases.get(), nullptr)};
1513
+ py::pytype_handle BluetoothLEAdvertisementWatcherTriggerDetails_type{py::register_python_type(module.get(), &type_spec_BluetoothLEAdvertisementWatcherTriggerDetails, object_bases.get(), inspectable_meta_type)};
1384
1514
  if (!BluetoothLEAdvertisementWatcherTriggerDetails_type)
1385
1515
  {
1386
1516
  return nullptr;
1387
1517
  }
1388
1518
 
1389
- py::pytype_handle GattCharacteristicNotificationTriggerDetails_type{py::register_python_type(module.get(), &type_spec_GattCharacteristicNotificationTriggerDetails, object_bases.get(), nullptr)};
1519
+ py::pytype_handle GattCharacteristicNotificationTriggerDetails_type{py::register_python_type(module.get(), &type_spec_GattCharacteristicNotificationTriggerDetails, object_bases.get(), inspectable_meta_type)};
1390
1520
  if (!GattCharacteristicNotificationTriggerDetails_type)
1391
1521
  {
1392
1522
  return nullptr;
1393
1523
  }
1394
1524
 
1395
- py::pyobj_handle type_GattServiceProviderConnection_Static{PyType_FromSpec(&type_spec_GattServiceProviderConnection_Static)};
1525
+ py::pyobj_handle GattServiceProviderConnection_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
1526
+ if (!GattServiceProviderConnection_Static_bases)
1527
+ {
1528
+ return nullptr;
1529
+ }
1530
+
1531
+ py::pyobj_handle type_GattServiceProviderConnection_Static{PyType_FromSpecWithBases(&type_spec_GattServiceProviderConnection_Static, GattServiceProviderConnection_Static_bases.get())};
1396
1532
  if (!type_GattServiceProviderConnection_Static)
1397
1533
  {
1398
1534
  return nullptr;
@@ -1404,25 +1540,25 @@ PyMODINIT_FUNC PyInit__winrt_windows_devices_bluetooth_background(void) noexcept
1404
1540
  return nullptr;
1405
1541
  }
1406
1542
 
1407
- py::pytype_handle GattServiceProviderTriggerDetails_type{py::register_python_type(module.get(), &type_spec_GattServiceProviderTriggerDetails, object_bases.get(), nullptr)};
1543
+ py::pytype_handle GattServiceProviderTriggerDetails_type{py::register_python_type(module.get(), &type_spec_GattServiceProviderTriggerDetails, object_bases.get(), inspectable_meta_type)};
1408
1544
  if (!GattServiceProviderTriggerDetails_type)
1409
1545
  {
1410
1546
  return nullptr;
1411
1547
  }
1412
1548
 
1413
- py::pytype_handle RfcommConnectionTriggerDetails_type{py::register_python_type(module.get(), &type_spec_RfcommConnectionTriggerDetails, object_bases.get(), nullptr)};
1549
+ py::pytype_handle RfcommConnectionTriggerDetails_type{py::register_python_type(module.get(), &type_spec_RfcommConnectionTriggerDetails, object_bases.get(), inspectable_meta_type)};
1414
1550
  if (!RfcommConnectionTriggerDetails_type)
1415
1551
  {
1416
1552
  return nullptr;
1417
1553
  }
1418
1554
 
1419
- py::pytype_handle RfcommInboundConnectionInformation_type{py::register_python_type(module.get(), &type_spec_RfcommInboundConnectionInformation, object_bases.get(), nullptr)};
1555
+ py::pytype_handle RfcommInboundConnectionInformation_type{py::register_python_type(module.get(), &type_spec_RfcommInboundConnectionInformation, object_bases.get(), inspectable_meta_type)};
1420
1556
  if (!RfcommInboundConnectionInformation_type)
1421
1557
  {
1422
1558
  return nullptr;
1423
1559
  }
1424
1560
 
1425
- py::pytype_handle RfcommOutboundConnectionInformation_type{py::register_python_type(module.get(), &type_spec_RfcommOutboundConnectionInformation, object_bases.get(), nullptr)};
1561
+ py::pytype_handle RfcommOutboundConnectionInformation_type{py::register_python_type(module.get(), &type_spec_RfcommOutboundConnectionInformation, object_bases.get(), inspectable_meta_type)};
1426
1562
  if (!RfcommOutboundConnectionInformation_type)
1427
1563
  {
1428
1564
  return nullptr;
@@ -1,14 +1,14 @@
1
1
  # WARNING: Please don't edit this file. It was automatically generated.
2
2
 
3
3
  [build-system]
4
- requires = ["setuptools", "winrt-sdk"]
4
+ requires = ["setuptools>=78", "winrt-sdk"]
5
5
  build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
8
8
  name = "winrt-Windows.Devices.Bluetooth.Background"
9
9
  description = "Python projection of Windows Runtime (WinRT) APIs"
10
10
  readme = "README.md"
11
- license = { text = "MIT" }
11
+ license = "MIT"
12
12
  classifiers = [
13
13
  "Operating System :: Microsoft :: Windows",
14
14
  "Programming Language :: Python :: 3",
@@ -16,7 +16,7 @@ classifiers = [
16
16
  "Intended Audience :: Developers",
17
17
  ]
18
18
  dynamic = ["version", "dependencies", "optional-dependencies"]
19
- requires-python = ">=3.9,<3.14"
19
+ requires-python = ">=3.9"
20
20
 
21
21
  [project.urls]
22
22
  # Homepage = "https://github.com/pywinrt/pywinrt"
@@ -34,7 +34,7 @@ optional-dependencies.all = { file = "all-requirements.txt" }
34
34
 
35
35
  [tool.cibuildwheel]
36
36
  # use local winrt-sdk build dependency
37
- environment = { PYTHONPATH="../winrt-sdk/src" }
37
+ environment = { PYTHONPATH="../../winrt-sdk/src" }
38
38
  # don't install winrt-sdk from PyPI
39
39
  build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
40
40
  before-build = "uv pip install setuptools"
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
2
 
3
- winrt-runtime==2.3.0
3
+ winrt-runtime==3.1.0
@@ -19,7 +19,7 @@ class build_ext_ex(build_ext):
19
19
 
20
20
 
21
21
  setup(
22
- cmdclass = {'build_ext': build_ext_ex},
22
+ cmdclass={"build_ext": build_ext_ex},
23
23
  ext_modules=[
24
24
  Extension(
25
25
  "winrt._winrt_windows_devices_bluetooth_background",
@@ -0,0 +1,133 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
+
3
+ import datetime
4
+ import sys
5
+ import types
6
+ import typing
7
+ import uuid as _uuid
8
+ from builtins import property as _property
9
+
10
+ import winrt._winrt
11
+ import winrt.system
12
+ import winrt.windows.devices.bluetooth as windows_devices_bluetooth
13
+ import winrt.windows.devices.bluetooth.advertisement as windows_devices_bluetooth_advertisement
14
+ import winrt.windows.devices.bluetooth.genericattributeprofile as windows_devices_bluetooth_genericattributeprofile
15
+ import winrt.windows.devices.bluetooth.rfcomm as windows_devices_bluetooth_rfcomm
16
+ import winrt.windows.foundation as windows_foundation
17
+ import winrt.windows.foundation.collections as windows_foundation_collections
18
+ import winrt.windows.networking.sockets as windows_networking_sockets
19
+ import winrt.windows.storage.streams as windows_storage_streams
20
+
21
+ from winrt.windows.devices.bluetooth.background import BluetoothEventTriggeringMode
22
+
23
+ Self = typing.TypeVar('Self')
24
+
25
+ @typing.final
26
+ class BluetoothLEAdvertisementPublisherTriggerDetails(winrt.system.Object):
27
+ # Windows.Devices.Bluetooth.BluetoothError Windows.Devices.Bluetooth.Background.BluetoothLEAdvertisementPublisherTriggerDetails::get_Error()
28
+ @_property
29
+ def error(self) -> windows_devices_bluetooth.BluetoothError: ...
30
+ # Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementPublisherStatus Windows.Devices.Bluetooth.Background.BluetoothLEAdvertisementPublisherTriggerDetails::get_Status()
31
+ @_property
32
+ def status(self) -> windows_devices_bluetooth_advertisement.BluetoothLEAdvertisementPublisherStatus: ...
33
+ # Windows.Foundation.IReference`1<System.Int16> Windows.Devices.Bluetooth.Background.BluetoothLEAdvertisementPublisherTriggerDetails::get_SelectedTransmitPowerLevelInDBm()
34
+ @_property
35
+ def selected_transmit_power_level_in_dbm(self) -> typing.Optional[winrt.system.Int16]: ...
36
+
37
+ @typing.final
38
+ class BluetoothLEAdvertisementWatcherTriggerDetails(winrt.system.Object):
39
+ # Windows.Foundation.Collections.IVectorView`1<Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementReceivedEventArgs> Windows.Devices.Bluetooth.Background.BluetoothLEAdvertisementWatcherTriggerDetails::get_Advertisements()
40
+ @_property
41
+ def advertisements(self) -> typing.Sequence[windows_devices_bluetooth_advertisement.BluetoothLEAdvertisementReceivedEventArgs]: ...
42
+ # Windows.Devices.Bluetooth.BluetoothError Windows.Devices.Bluetooth.Background.BluetoothLEAdvertisementWatcherTriggerDetails::get_Error()
43
+ @_property
44
+ def error(self) -> windows_devices_bluetooth.BluetoothError: ...
45
+ # Windows.Devices.Bluetooth.BluetoothSignalStrengthFilter Windows.Devices.Bluetooth.Background.BluetoothLEAdvertisementWatcherTriggerDetails::get_SignalStrengthFilter()
46
+ @_property
47
+ def signal_strength_filter(self) -> windows_devices_bluetooth.BluetoothSignalStrengthFilter: ...
48
+
49
+ @typing.final
50
+ class GattCharacteristicNotificationTriggerDetails(winrt.system.Object):
51
+ # Windows.Devices.Bluetooth.GenericAttributeProfile.GattCharacteristic Windows.Devices.Bluetooth.Background.GattCharacteristicNotificationTriggerDetails::get_Characteristic()
52
+ @_property
53
+ def characteristic(self) -> windows_devices_bluetooth_genericattributeprofile.GattCharacteristic: ...
54
+ # Windows.Storage.Streams.IBuffer Windows.Devices.Bluetooth.Background.GattCharacteristicNotificationTriggerDetails::get_Value()
55
+ @_property
56
+ def value(self) -> windows_storage_streams.IBuffer: ...
57
+ # Windows.Devices.Bluetooth.BluetoothError Windows.Devices.Bluetooth.Background.GattCharacteristicNotificationTriggerDetails::get_Error()
58
+ @_property
59
+ def error(self) -> windows_devices_bluetooth.BluetoothError: ...
60
+ # Windows.Devices.Bluetooth.Background.BluetoothEventTriggeringMode Windows.Devices.Bluetooth.Background.GattCharacteristicNotificationTriggerDetails::get_EventTriggeringMode()
61
+ @_property
62
+ def event_triggering_mode(self) -> BluetoothEventTriggeringMode: ...
63
+ # Windows.Foundation.Collections.IVectorView`1<Windows.Devices.Bluetooth.GenericAttributeProfile.GattValueChangedEventArgs> Windows.Devices.Bluetooth.Background.GattCharacteristicNotificationTriggerDetails::get_ValueChangedEvents()
64
+ @_property
65
+ def value_changed_events(self) -> typing.Sequence[windows_devices_bluetooth_genericattributeprofile.GattValueChangedEventArgs]: ...
66
+
67
+ @typing.final
68
+ class GattServiceProviderConnection_Static(winrt._winrt.IInspectable_Static):
69
+ # Windows.Foundation.Collections.IMapView`2<System.String,Windows.Devices.Bluetooth.Background.GattServiceProviderConnection> Windows.Devices.Bluetooth.Background.GattServiceProviderConnection::get_AllServices()
70
+ @_property
71
+ def all_services(cls) -> typing.Mapping[str, GattServiceProviderConnection]: ...
72
+
73
+ @typing.final
74
+ class GattServiceProviderConnection(winrt.system.Object, metaclass=GattServiceProviderConnection_Static):
75
+ # System.Void Windows.Devices.Bluetooth.Background.GattServiceProviderConnection::Start()
76
+ def start(self) -> None: ...
77
+ # System.Void Windows.Devices.Bluetooth.Background.GattServiceProviderConnection::UpdateAdvertisingParameters(Windows.Devices.Bluetooth.GenericAttributeProfile.GattServiceProviderAdvertisingParameters)
78
+ def update_advertising_parameters(self, parameters: windows_devices_bluetooth_genericattributeprofile.GattServiceProviderAdvertisingParameters, /) -> None: ...
79
+ # Windows.Devices.Bluetooth.GenericAttributeProfile.GattLocalService Windows.Devices.Bluetooth.Background.GattServiceProviderConnection::get_Service()
80
+ @_property
81
+ def service(self) -> windows_devices_bluetooth_genericattributeprofile.GattLocalService: ...
82
+ # System.String Windows.Devices.Bluetooth.Background.GattServiceProviderConnection::get_TriggerId()
83
+ @_property
84
+ def trigger_id(self) -> str: ...
85
+
86
+ @typing.final
87
+ class GattServiceProviderTriggerDetails(winrt.system.Object):
88
+ # Windows.Devices.Bluetooth.Background.GattServiceProviderConnection Windows.Devices.Bluetooth.Background.GattServiceProviderTriggerDetails::get_Connection()
89
+ @_property
90
+ def connection(self) -> GattServiceProviderConnection: ...
91
+
92
+ @typing.final
93
+ class RfcommConnectionTriggerDetails(winrt.system.Object):
94
+ # System.Boolean Windows.Devices.Bluetooth.Background.RfcommConnectionTriggerDetails::get_Incoming()
95
+ @_property
96
+ def incoming(self) -> bool: ...
97
+ # Windows.Devices.Bluetooth.BluetoothDevice Windows.Devices.Bluetooth.Background.RfcommConnectionTriggerDetails::get_RemoteDevice()
98
+ @_property
99
+ def remote_device(self) -> windows_devices_bluetooth.BluetoothDevice: ...
100
+ # Windows.Networking.Sockets.StreamSocket Windows.Devices.Bluetooth.Background.RfcommConnectionTriggerDetails::get_Socket()
101
+ @_property
102
+ def socket(self) -> windows_networking_sockets.StreamSocket: ...
103
+
104
+ @typing.final
105
+ class RfcommInboundConnectionInformation(winrt.system.Object):
106
+ # Windows.Devices.Bluetooth.BluetoothServiceCapabilities Windows.Devices.Bluetooth.Background.RfcommInboundConnectionInformation::get_ServiceCapabilities()
107
+ @_property
108
+ def service_capabilities(self) -> windows_devices_bluetooth.BluetoothServiceCapabilities: ...
109
+ # System.Void Windows.Devices.Bluetooth.Background.RfcommInboundConnectionInformation::put_ServiceCapabilities(Windows.Devices.Bluetooth.BluetoothServiceCapabilities)
110
+ @service_capabilities.setter
111
+ def service_capabilities(self, value: windows_devices_bluetooth.BluetoothServiceCapabilities) -> None: ...
112
+ # Windows.Storage.Streams.IBuffer Windows.Devices.Bluetooth.Background.RfcommInboundConnectionInformation::get_SdpRecord()
113
+ @_property
114
+ def sdp_record(self) -> windows_storage_streams.IBuffer: ...
115
+ # System.Void Windows.Devices.Bluetooth.Background.RfcommInboundConnectionInformation::put_SdpRecord(Windows.Storage.Streams.IBuffer)
116
+ @sdp_record.setter
117
+ def sdp_record(self, value: windows_storage_streams.IBuffer) -> None: ...
118
+ # Windows.Devices.Bluetooth.Rfcomm.RfcommServiceId Windows.Devices.Bluetooth.Background.RfcommInboundConnectionInformation::get_LocalServiceId()
119
+ @_property
120
+ def local_service_id(self) -> windows_devices_bluetooth_rfcomm.RfcommServiceId: ...
121
+ # System.Void Windows.Devices.Bluetooth.Background.RfcommInboundConnectionInformation::put_LocalServiceId(Windows.Devices.Bluetooth.Rfcomm.RfcommServiceId)
122
+ @local_service_id.setter
123
+ def local_service_id(self, value: windows_devices_bluetooth_rfcomm.RfcommServiceId) -> None: ...
124
+
125
+ @typing.final
126
+ class RfcommOutboundConnectionInformation(winrt.system.Object):
127
+ # Windows.Devices.Bluetooth.Rfcomm.RfcommServiceId Windows.Devices.Bluetooth.Background.RfcommOutboundConnectionInformation::get_RemoteServiceId()
128
+ @_property
129
+ def remote_service_id(self) -> windows_devices_bluetooth_rfcomm.RfcommServiceId: ...
130
+ # System.Void Windows.Devices.Bluetooth.Background.RfcommOutboundConnectionInformation::put_RemoteServiceId(Windows.Devices.Bluetooth.Rfcomm.RfcommServiceId)
131
+ @remote_service_id.setter
132
+ def remote_service_id(self, value: windows_devices_bluetooth_rfcomm.RfcommServiceId) -> None: ...
133
+
@@ -0,0 +1,33 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
+
3
+ import enum
4
+
5
+ import winrt.system
6
+ from winrt._winrt_windows_devices_bluetooth_background import (
7
+ BluetoothLEAdvertisementPublisherTriggerDetails,
8
+ BluetoothLEAdvertisementWatcherTriggerDetails,
9
+ GattCharacteristicNotificationTriggerDetails,
10
+ GattServiceProviderConnection,
11
+ GattServiceProviderTriggerDetails,
12
+ RfcommConnectionTriggerDetails,
13
+ RfcommInboundConnectionInformation,
14
+ RfcommOutboundConnectionInformation,
15
+ )
16
+
17
+ __all__ = [
18
+ "BluetoothEventTriggeringMode",
19
+ "BluetoothLEAdvertisementPublisherTriggerDetails",
20
+ "BluetoothLEAdvertisementWatcherTriggerDetails",
21
+ "GattCharacteristicNotificationTriggerDetails",
22
+ "GattServiceProviderConnection",
23
+ "GattServiceProviderTriggerDetails",
24
+ "RfcommConnectionTriggerDetails",
25
+ "RfcommInboundConnectionInformation",
26
+ "RfcommOutboundConnectionInformation",
27
+ ]
28
+
29
+ class BluetoothEventTriggeringMode(enum.IntEnum):
30
+ SERIAL = 0
31
+ BATCH = 1
32
+ KEEP_LATEST = 2
33
+
@@ -1,8 +1,8 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: winrt-Windows.Devices.Bluetooth.Background
3
- Version: 2.3.0
3
+ Version: 3.1.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
- License: MIT
5
+ License-Expression: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
7
7
  Project-URL: Repository, https://github.com/pywinrt/pywinrt
8
8
  Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
@@ -10,18 +10,18 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.14,>=3.9
13
+ Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.3.0
15
+ Requires-Dist: winrt-runtime==3.1.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Devices.Bluetooth[all]==2.3.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Devices.Bluetooth.Advertisement[all]==2.3.0; extra == "all"
19
- Requires-Dist: winrt-Windows.Devices.Bluetooth.GenericAttributeProfile[all]==2.3.0; extra == "all"
20
- Requires-Dist: winrt-Windows.Devices.Bluetooth.Rfcomm[all]==2.3.0; extra == "all"
21
- Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
22
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
23
- Requires-Dist: winrt-Windows.Networking.Sockets[all]==2.3.0; extra == "all"
24
- Requires-Dist: winrt-Windows.Storage.Streams[all]==2.3.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Devices.Bluetooth[all]==3.1.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Devices.Bluetooth.Advertisement[all]==3.1.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Devices.Bluetooth.GenericAttributeProfile[all]==3.1.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.Devices.Bluetooth.Rfcomm[all]==3.1.0; extra == "all"
21
+ Requires-Dist: winrt-Windows.Foundation[all]==3.1.0; extra == "all"
22
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.1.0; extra == "all"
23
+ Requires-Dist: winrt-Windows.Networking.Sockets[all]==3.1.0; extra == "all"
24
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==3.1.0; extra == "all"
25
25
 
26
26
  <!-- warning: Please don't edit this file. It was automatically generated. -->
27
27
 
@@ -0,0 +1,11 @@
1
+ winrt-runtime==3.1.0
2
+
3
+ [all]
4
+ winrt-Windows.Devices.Bluetooth[all]==3.1.0
5
+ winrt-Windows.Devices.Bluetooth.Advertisement[all]==3.1.0
6
+ winrt-Windows.Devices.Bluetooth.GenericAttributeProfile[all]==3.1.0
7
+ winrt-Windows.Devices.Bluetooth.Rfcomm[all]==3.1.0
8
+ winrt-Windows.Foundation[all]==3.1.0
9
+ winrt-Windows.Foundation.Collections[all]==3.1.0
10
+ winrt-Windows.Networking.Sockets[all]==3.1.0
11
+ winrt-Windows.Storage.Streams[all]==3.1.0
@@ -1,10 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
-
3
- winrt-Windows.Devices.Bluetooth[all]==2.3.0
4
- winrt-Windows.Devices.Bluetooth.Advertisement[all]==2.3.0
5
- winrt-Windows.Devices.Bluetooth.GenericAttributeProfile[all]==2.3.0
6
- winrt-Windows.Devices.Bluetooth.Rfcomm[all]==2.3.0
7
- winrt-Windows.Foundation[all]==2.3.0
8
- winrt-Windows.Foundation.Collections[all]==2.3.0
9
- winrt-Windows.Networking.Sockets[all]==2.3.0
10
- winrt-Windows.Storage.Streams[all]==2.3.0
@@ -1,120 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
-
3
- import datetime
4
- import sys
5
- import types
6
- import typing
7
- import uuid as _uuid
8
- from builtins import property as _property
9
-
10
- import winrt._winrt
11
- import winrt.system
12
- import winrt.windows.devices.bluetooth as windows_devices_bluetooth
13
- import winrt.windows.devices.bluetooth.advertisement as windows_devices_bluetooth_advertisement
14
- import winrt.windows.devices.bluetooth.genericattributeprofile as windows_devices_bluetooth_genericattributeprofile
15
- import winrt.windows.devices.bluetooth.rfcomm as windows_devices_bluetooth_rfcomm
16
- import winrt.windows.foundation as windows_foundation
17
- import winrt.windows.foundation.collections as windows_foundation_collections
18
- import winrt.windows.networking.sockets as windows_networking_sockets
19
- import winrt.windows.storage.streams as windows_storage_streams
20
-
21
- from winrt.windows.devices.bluetooth.background import BluetoothEventTriggeringMode
22
-
23
- Self = typing.TypeVar('Self')
24
-
25
- @typing.final
26
- class BluetoothLEAdvertisementPublisherTriggerDetails(winrt.system.Object):
27
- @staticmethod
28
- def _from(obj: winrt.system.Object, /) -> BluetoothLEAdvertisementPublisherTriggerDetails: ...
29
- @_property
30
- def error(self) -> windows_devices_bluetooth.BluetoothError: ...
31
- @_property
32
- def status(self) -> windows_devices_bluetooth_advertisement.BluetoothLEAdvertisementPublisherStatus: ...
33
- @_property
34
- def selected_transmit_power_level_in_d_bm(self) -> typing.Optional[typing.Optional[winrt.system.Int16]]: ...
35
-
36
- @typing.final
37
- class BluetoothLEAdvertisementWatcherTriggerDetails(winrt.system.Object):
38
- @staticmethod
39
- def _from(obj: winrt.system.Object, /) -> BluetoothLEAdvertisementWatcherTriggerDetails: ...
40
- @_property
41
- def advertisements(self) -> typing.Optional[windows_foundation_collections.IVectorView[windows_devices_bluetooth_advertisement.BluetoothLEAdvertisementReceivedEventArgs]]: ...
42
- @_property
43
- def error(self) -> windows_devices_bluetooth.BluetoothError: ...
44
- @_property
45
- def signal_strength_filter(self) -> typing.Optional[windows_devices_bluetooth.BluetoothSignalStrengthFilter]: ...
46
-
47
- @typing.final
48
- class GattCharacteristicNotificationTriggerDetails(winrt.system.Object):
49
- @staticmethod
50
- def _from(obj: winrt.system.Object, /) -> GattCharacteristicNotificationTriggerDetails: ...
51
- @_property
52
- def characteristic(self) -> typing.Optional[windows_devices_bluetooth_genericattributeprofile.GattCharacteristic]: ...
53
- @_property
54
- def value(self) -> typing.Optional[windows_storage_streams.IBuffer]: ...
55
- @_property
56
- def error(self) -> windows_devices_bluetooth.BluetoothError: ...
57
- @_property
58
- def event_triggering_mode(self) -> BluetoothEventTriggeringMode: ...
59
- @_property
60
- def value_changed_events(self) -> typing.Optional[windows_foundation_collections.IVectorView[windows_devices_bluetooth_genericattributeprofile.GattValueChangedEventArgs]]: ...
61
-
62
- @typing.final
63
- class GattServiceProviderConnection_Static(type):
64
- @_property
65
- def all_services(cls) -> typing.Optional[windows_foundation_collections.IMapView[str, GattServiceProviderConnection]]: ...
66
-
67
- @typing.final
68
- class GattServiceProviderConnection(winrt.system.Object, metaclass=GattServiceProviderConnection_Static):
69
- @staticmethod
70
- def _from(obj: winrt.system.Object, /) -> GattServiceProviderConnection: ...
71
- def start(self) -> None: ...
72
- @_property
73
- def service(self) -> typing.Optional[windows_devices_bluetooth_genericattributeprofile.GattLocalService]: ...
74
- @_property
75
- def trigger_id(self) -> str: ...
76
-
77
- @typing.final
78
- class GattServiceProviderTriggerDetails(winrt.system.Object):
79
- @staticmethod
80
- def _from(obj: winrt.system.Object, /) -> GattServiceProviderTriggerDetails: ...
81
- @_property
82
- def connection(self) -> typing.Optional[GattServiceProviderConnection]: ...
83
-
84
- @typing.final
85
- class RfcommConnectionTriggerDetails(winrt.system.Object):
86
- @staticmethod
87
- def _from(obj: winrt.system.Object, /) -> RfcommConnectionTriggerDetails: ...
88
- @_property
89
- def incoming(self) -> bool: ...
90
- @_property
91
- def remote_device(self) -> typing.Optional[windows_devices_bluetooth.BluetoothDevice]: ...
92
- @_property
93
- def socket(self) -> typing.Optional[windows_networking_sockets.StreamSocket]: ...
94
-
95
- @typing.final
96
- class RfcommInboundConnectionInformation(winrt.system.Object):
97
- @staticmethod
98
- def _from(obj: winrt.system.Object, /) -> RfcommInboundConnectionInformation: ...
99
- @_property
100
- def service_capabilities(self) -> windows_devices_bluetooth.BluetoothServiceCapabilities: ...
101
- @service_capabilities.setter
102
- def service_capabilities(self, value: windows_devices_bluetooth.BluetoothServiceCapabilities) -> None: ...
103
- @_property
104
- def sdp_record(self) -> typing.Optional[windows_storage_streams.IBuffer]: ...
105
- @sdp_record.setter
106
- def sdp_record(self, value: typing.Optional[windows_storage_streams.IBuffer]) -> None: ...
107
- @_property
108
- def local_service_id(self) -> typing.Optional[windows_devices_bluetooth_rfcomm.RfcommServiceId]: ...
109
- @local_service_id.setter
110
- def local_service_id(self, value: typing.Optional[windows_devices_bluetooth_rfcomm.RfcommServiceId]) -> None: ...
111
-
112
- @typing.final
113
- class RfcommOutboundConnectionInformation(winrt.system.Object):
114
- @staticmethod
115
- def _from(obj: winrt.system.Object, /) -> RfcommOutboundConnectionInformation: ...
116
- @_property
117
- def remote_service_id(self) -> typing.Optional[windows_devices_bluetooth_rfcomm.RfcommServiceId]: ...
118
- @remote_service_id.setter
119
- def remote_service_id(self, value: typing.Optional[windows_devices_bluetooth_rfcomm.RfcommServiceId]) -> None: ...
120
-
@@ -1,32 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
-
3
- import enum
4
-
5
- import winrt.system
6
- from winrt import _winrt_windows_devices_bluetooth_background
7
-
8
- __all__ = [
9
- "BluetoothEventTriggeringMode",
10
- "BluetoothLEAdvertisementPublisherTriggerDetails",
11
- "BluetoothLEAdvertisementWatcherTriggerDetails",
12
- "GattCharacteristicNotificationTriggerDetails",
13
- "GattServiceProviderConnection",
14
- "GattServiceProviderTriggerDetails",
15
- "RfcommConnectionTriggerDetails",
16
- "RfcommInboundConnectionInformation",
17
- "RfcommOutboundConnectionInformation",
18
- ]
19
-
20
- class BluetoothEventTriggeringMode(enum.IntEnum):
21
- SERIAL = 0
22
- BATCH = 1
23
- KEEP_LATEST = 2
24
-
25
- BluetoothLEAdvertisementPublisherTriggerDetails = _winrt_windows_devices_bluetooth_background.BluetoothLEAdvertisementPublisherTriggerDetails
26
- BluetoothLEAdvertisementWatcherTriggerDetails = _winrt_windows_devices_bluetooth_background.BluetoothLEAdvertisementWatcherTriggerDetails
27
- GattCharacteristicNotificationTriggerDetails = _winrt_windows_devices_bluetooth_background.GattCharacteristicNotificationTriggerDetails
28
- GattServiceProviderConnection = _winrt_windows_devices_bluetooth_background.GattServiceProviderConnection
29
- GattServiceProviderTriggerDetails = _winrt_windows_devices_bluetooth_background.GattServiceProviderTriggerDetails
30
- RfcommConnectionTriggerDetails = _winrt_windows_devices_bluetooth_background.RfcommConnectionTriggerDetails
31
- RfcommInboundConnectionInformation = _winrt_windows_devices_bluetooth_background.RfcommInboundConnectionInformation
32
- RfcommOutboundConnectionInformation = _winrt_windows_devices_bluetooth_background.RfcommOutboundConnectionInformation
@@ -1,11 +0,0 @@
1
- winrt-runtime==2.3.0
2
-
3
- [all]
4
- winrt-Windows.Devices.Bluetooth[all]==2.3.0
5
- winrt-Windows.Devices.Bluetooth.Advertisement[all]==2.3.0
6
- winrt-Windows.Devices.Bluetooth.GenericAttributeProfile[all]==2.3.0
7
- winrt-Windows.Devices.Bluetooth.Rfcomm[all]==2.3.0
8
- winrt-Windows.Foundation[all]==2.3.0
9
- winrt-Windows.Foundation.Collections[all]==2.3.0
10
- winrt-Windows.Networking.Sockets[all]==2.3.0
11
- winrt-Windows.Storage.Streams[all]==2.3.0