winrt-Windows.Devices.Enumeration.Pnp 2.2.0__tar.gz → 3.0.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.
- {winrt_windows_devices_enumeration_pnp-2.2.0 → winrt_windows_devices_enumeration_pnp-3.0.0}/PKG-INFO +6 -6
- winrt_windows_devices_enumeration_pnp-3.0.0/all-requirements.txt +5 -0
- {winrt_windows_devices_enumeration_pnp-2.2.0 → winrt_windows_devices_enumeration_pnp-3.0.0}/py.Windows.Devices.Enumeration.Pnp.cpp +242 -83
- {winrt_windows_devices_enumeration_pnp-2.2.0 → winrt_windows_devices_enumeration_pnp-3.0.0}/pyproject.toml +2 -2
- winrt_windows_devices_enumeration_pnp-3.0.0/pywinrt-version.txt +1 -0
- {winrt_windows_devices_enumeration_pnp-2.2.0 → winrt_windows_devices_enumeration_pnp-3.0.0}/requirements.txt +2 -2
- {winrt_windows_devices_enumeration_pnp-2.2.0 → winrt_windows_devices_enumeration_pnp-3.0.0}/setup.py +1 -1
- winrt_windows_devices_enumeration_pnp-3.0.0/winrt/_winrt_windows_devices_enumeration_pnp.pyi +108 -0
- {winrt_windows_devices_enumeration_pnp-2.2.0 → winrt_windows_devices_enumeration_pnp-3.0.0}/winrt/windows/devices/enumeration/pnp/__init__.py +8 -6
- {winrt_windows_devices_enumeration_pnp-2.2.0 → winrt_windows_devices_enumeration_pnp-3.0.0}/winrt_Windows.Devices.Enumeration.Pnp.egg-info/PKG-INFO +6 -6
- winrt_windows_devices_enumeration_pnp-3.0.0/winrt_Windows.Devices.Enumeration.Pnp.egg-info/requires.txt +6 -0
- winrt_windows_devices_enumeration_pnp-2.2.0/all-requirements.txt +0 -5
- winrt_windows_devices_enumeration_pnp-2.2.0/pywinrt-version.txt +0 -1
- winrt_windows_devices_enumeration_pnp-2.2.0/winrt/_winrt_windows_devices_enumeration_pnp.pyi +0 -90
- winrt_windows_devices_enumeration_pnp-2.2.0/winrt_Windows.Devices.Enumeration.Pnp.egg-info/requires.txt +0 -6
- {winrt_windows_devices_enumeration_pnp-2.2.0 → winrt_windows_devices_enumeration_pnp-3.0.0}/README.md +0 -0
- {winrt_windows_devices_enumeration_pnp-2.2.0 → winrt_windows_devices_enumeration_pnp-3.0.0}/setup.cfg +0 -0
- {winrt_windows_devices_enumeration_pnp-2.2.0 → winrt_windows_devices_enumeration_pnp-3.0.0}/winrt/windows/devices/enumeration/pnp/py.typed +0 -0
- {winrt_windows_devices_enumeration_pnp-2.2.0 → winrt_windows_devices_enumeration_pnp-3.0.0}/winrt_Windows.Devices.Enumeration.Pnp.egg-info/SOURCES.txt +0 -0
- {winrt_windows_devices_enumeration_pnp-2.2.0 → winrt_windows_devices_enumeration_pnp-3.0.0}/winrt_Windows.Devices.Enumeration.Pnp.egg-info/dependency_links.txt +0 -0
- {winrt_windows_devices_enumeration_pnp-2.2.0 → winrt_windows_devices_enumeration_pnp-3.0.0}/winrt_Windows.Devices.Enumeration.Pnp.egg-info/top_level.txt +0 -0
{winrt_windows_devices_enumeration_pnp-2.2.0 → winrt_windows_devices_enumeration_pnp-3.0.0}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Devices.Enumeration.Pnp
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.0.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -10,13 +10,13 @@ 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:
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==
|
|
15
|
+
Requires-Dist: winrt-runtime==3.0.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Devices.Enumeration[all]==
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation[all]==
|
|
19
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==
|
|
17
|
+
Requires-Dist: winrt-Windows.Devices.Enumeration[all]==3.0.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.0.0; extra == "all"
|
|
20
20
|
|
|
21
21
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
22
22
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.Devices.Enumeration.Pnp.h"
|
|
4
4
|
|
|
@@ -23,7 +23,7 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
23
23
|
|
|
24
24
|
static PyObject* PnpObject_CreateFromIdAsync(PyObject* /*unused*/, PyObject* args) noexcept
|
|
25
25
|
{
|
|
26
|
-
auto arg_count =
|
|
26
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
27
27
|
|
|
28
28
|
if (arg_count == 3)
|
|
29
29
|
{
|
|
@@ -46,7 +46,11 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
46
46
|
auto param1 = py::convert_to<winrt::hstring>(args, 1);
|
|
47
47
|
auto param2 = py::convert_to<winrt::Windows::Foundation::Collections::IIterable<winrt::hstring>>(args, 2);
|
|
48
48
|
|
|
49
|
-
return py::convert(
|
|
49
|
+
return py::convert([&]()
|
|
50
|
+
{
|
|
51
|
+
auto _gil = release_gil();
|
|
52
|
+
return winrt::Windows::Devices::Enumeration::Pnp::PnpObject::CreateFromIdAsync(param0, param1, param2);
|
|
53
|
+
}());
|
|
50
54
|
}
|
|
51
55
|
catch (...)
|
|
52
56
|
{
|
|
@@ -63,7 +67,7 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
63
67
|
|
|
64
68
|
static PyObject* PnpObject_CreateWatcher(PyObject* /*unused*/, PyObject* args) noexcept
|
|
65
69
|
{
|
|
66
|
-
auto arg_count =
|
|
70
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
67
71
|
|
|
68
72
|
if (arg_count == 2)
|
|
69
73
|
{
|
|
@@ -85,7 +89,11 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
85
89
|
auto param0 = py::convert_to<winrt::Windows::Devices::Enumeration::Pnp::PnpObjectType>(args, 0);
|
|
86
90
|
auto param1 = py::convert_to<winrt::Windows::Foundation::Collections::IIterable<winrt::hstring>>(args, 1);
|
|
87
91
|
|
|
88
|
-
return py::convert(
|
|
92
|
+
return py::convert([&]()
|
|
93
|
+
{
|
|
94
|
+
auto _gil = release_gil();
|
|
95
|
+
return winrt::Windows::Devices::Enumeration::Pnp::PnpObject::CreateWatcher(param0, param1);
|
|
96
|
+
}());
|
|
89
97
|
}
|
|
90
98
|
catch (...)
|
|
91
99
|
{
|
|
@@ -93,7 +101,18 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
93
101
|
return nullptr;
|
|
94
102
|
}
|
|
95
103
|
}
|
|
96
|
-
else
|
|
104
|
+
else
|
|
105
|
+
{
|
|
106
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
107
|
+
return nullptr;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
static PyObject* PnpObject_CreateWatcherAqsFilter(PyObject* /*unused*/, PyObject* args) noexcept
|
|
112
|
+
{
|
|
113
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
114
|
+
|
|
115
|
+
if (arg_count == 3)
|
|
97
116
|
{
|
|
98
117
|
try
|
|
99
118
|
{
|
|
@@ -114,7 +133,11 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
114
133
|
auto param1 = py::convert_to<winrt::Windows::Foundation::Collections::IIterable<winrt::hstring>>(args, 1);
|
|
115
134
|
auto param2 = py::convert_to<winrt::hstring>(args, 2);
|
|
116
135
|
|
|
117
|
-
return py::convert(
|
|
136
|
+
return py::convert([&]()
|
|
137
|
+
{
|
|
138
|
+
auto _gil = release_gil();
|
|
139
|
+
return winrt::Windows::Devices::Enumeration::Pnp::PnpObject::CreateWatcher(param0, param1, param2);
|
|
140
|
+
}());
|
|
118
141
|
}
|
|
119
142
|
catch (...)
|
|
120
143
|
{
|
|
@@ -131,7 +154,7 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
131
154
|
|
|
132
155
|
static PyObject* PnpObject_FindAllAsync(PyObject* /*unused*/, PyObject* args) noexcept
|
|
133
156
|
{
|
|
134
|
-
auto arg_count =
|
|
157
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
135
158
|
|
|
136
159
|
if (arg_count == 2)
|
|
137
160
|
{
|
|
@@ -153,7 +176,11 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
153
176
|
auto param0 = py::convert_to<winrt::Windows::Devices::Enumeration::Pnp::PnpObjectType>(args, 0);
|
|
154
177
|
auto param1 = py::convert_to<winrt::Windows::Foundation::Collections::IIterable<winrt::hstring>>(args, 1);
|
|
155
178
|
|
|
156
|
-
return py::convert(
|
|
179
|
+
return py::convert([&]()
|
|
180
|
+
{
|
|
181
|
+
auto _gil = release_gil();
|
|
182
|
+
return winrt::Windows::Devices::Enumeration::Pnp::PnpObject::FindAllAsync(param0, param1);
|
|
183
|
+
}());
|
|
157
184
|
}
|
|
158
185
|
catch (...)
|
|
159
186
|
{
|
|
@@ -161,7 +188,18 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
161
188
|
return nullptr;
|
|
162
189
|
}
|
|
163
190
|
}
|
|
164
|
-
else
|
|
191
|
+
else
|
|
192
|
+
{
|
|
193
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
194
|
+
return nullptr;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
static PyObject* PnpObject_FindAllAsyncAqsFilter(PyObject* /*unused*/, PyObject* args) noexcept
|
|
199
|
+
{
|
|
200
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
201
|
+
|
|
202
|
+
if (arg_count == 3)
|
|
165
203
|
{
|
|
166
204
|
try
|
|
167
205
|
{
|
|
@@ -182,7 +220,11 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
182
220
|
auto param1 = py::convert_to<winrt::Windows::Foundation::Collections::IIterable<winrt::hstring>>(args, 1);
|
|
183
221
|
auto param2 = py::convert_to<winrt::hstring>(args, 2);
|
|
184
222
|
|
|
185
|
-
return py::convert(
|
|
223
|
+
return py::convert([&]()
|
|
224
|
+
{
|
|
225
|
+
auto _gil = release_gil();
|
|
226
|
+
return winrt::Windows::Devices::Enumeration::Pnp::PnpObject::FindAllAsync(param0, param1, param2);
|
|
227
|
+
}());
|
|
186
228
|
}
|
|
187
229
|
catch (...)
|
|
188
230
|
{
|
|
@@ -199,7 +241,7 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
199
241
|
|
|
200
242
|
static PyObject* PnpObject_Update(py::wrapper::Windows::Devices::Enumeration::Pnp::PnpObject* self, PyObject* args) noexcept
|
|
201
243
|
{
|
|
202
|
-
auto arg_count =
|
|
244
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
203
245
|
|
|
204
246
|
if (arg_count == 1)
|
|
205
247
|
{
|
|
@@ -220,7 +262,11 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
220
262
|
|
|
221
263
|
auto param0 = py::convert_to<winrt::Windows::Devices::Enumeration::Pnp::PnpObjectUpdate>(args, 0);
|
|
222
264
|
|
|
223
|
-
|
|
265
|
+
{
|
|
266
|
+
auto _gil = release_gil();
|
|
267
|
+
self->obj.Update(param0);
|
|
268
|
+
}
|
|
269
|
+
|
|
224
270
|
Py_RETURN_NONE;
|
|
225
271
|
}
|
|
226
272
|
catch (...)
|
|
@@ -253,7 +299,11 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
253
299
|
return nullptr;
|
|
254
300
|
}
|
|
255
301
|
|
|
256
|
-
return py::convert(
|
|
302
|
+
return py::convert([&]()
|
|
303
|
+
{
|
|
304
|
+
auto _gil = release_gil();
|
|
305
|
+
return self->obj.Id();
|
|
306
|
+
}());
|
|
257
307
|
}
|
|
258
308
|
catch (...)
|
|
259
309
|
{
|
|
@@ -279,7 +329,11 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
279
329
|
return nullptr;
|
|
280
330
|
}
|
|
281
331
|
|
|
282
|
-
return py::convert(
|
|
332
|
+
return py::convert([&]()
|
|
333
|
+
{
|
|
334
|
+
auto _gil = release_gil();
|
|
335
|
+
return self->obj.Properties();
|
|
336
|
+
}());
|
|
283
337
|
}
|
|
284
338
|
catch (...)
|
|
285
339
|
{
|
|
@@ -305,7 +359,11 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
305
359
|
return nullptr;
|
|
306
360
|
}
|
|
307
361
|
|
|
308
|
-
return py::convert(
|
|
362
|
+
return py::convert([&]()
|
|
363
|
+
{
|
|
364
|
+
auto _gil = release_gil();
|
|
365
|
+
return self->obj.Type();
|
|
366
|
+
}());
|
|
309
367
|
}
|
|
310
368
|
catch (...)
|
|
311
369
|
{
|
|
@@ -342,23 +400,20 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
342
400
|
{ "update", reinterpret_cast<PyCFunction>(PnpObject_Update), METH_VARARGS, nullptr },
|
|
343
401
|
{ "_assign_array_", _assign_array_PnpObject, METH_O | METH_STATIC, nullptr },
|
|
344
402
|
{ "_from", reinterpret_cast<PyCFunction>(_from_PnpObject), METH_O | METH_STATIC, nullptr },
|
|
345
|
-
{ }
|
|
346
|
-
};
|
|
403
|
+
{ }};
|
|
347
404
|
|
|
348
405
|
static PyGetSetDef _getset_PnpObject[] = {
|
|
349
406
|
{ "id", reinterpret_cast<getter>(PnpObject_get_Id), nullptr, nullptr, nullptr },
|
|
350
407
|
{ "properties", reinterpret_cast<getter>(PnpObject_get_Properties), nullptr, nullptr, nullptr },
|
|
351
408
|
{ "type", reinterpret_cast<getter>(PnpObject_get_Type), nullptr, nullptr, nullptr },
|
|
352
|
-
{ }
|
|
353
|
-
};
|
|
409
|
+
{ }};
|
|
354
410
|
|
|
355
411
|
static PyType_Slot _type_slots_PnpObject[] = {
|
|
356
412
|
{ Py_tp_new, reinterpret_cast<void*>(_new_PnpObject) },
|
|
357
413
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PnpObject) },
|
|
358
414
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_PnpObject) },
|
|
359
415
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_PnpObject) },
|
|
360
|
-
{ }
|
|
361
|
-
};
|
|
416
|
+
{ }};
|
|
362
417
|
|
|
363
418
|
static PyType_Spec type_spec_PnpObject = {
|
|
364
419
|
"winrt._winrt_windows_devices_enumeration_pnp.PnpObject",
|
|
@@ -368,15 +423,15 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
368
423
|
_type_slots_PnpObject};
|
|
369
424
|
|
|
370
425
|
static PyGetSetDef getset_PnpObject_Static[] = {
|
|
371
|
-
{ }
|
|
372
|
-
};
|
|
426
|
+
{ }};
|
|
373
427
|
|
|
374
428
|
static PyMethodDef methods_PnpObject_Static[] = {
|
|
375
429
|
{ "create_from_id_async", reinterpret_cast<PyCFunction>(PnpObject_CreateFromIdAsync), METH_VARARGS, nullptr },
|
|
376
430
|
{ "create_watcher", reinterpret_cast<PyCFunction>(PnpObject_CreateWatcher), METH_VARARGS, nullptr },
|
|
431
|
+
{ "create_watcher_aqs_filter", reinterpret_cast<PyCFunction>(PnpObject_CreateWatcherAqsFilter), METH_VARARGS, nullptr },
|
|
377
432
|
{ "find_all_async", reinterpret_cast<PyCFunction>(PnpObject_FindAllAsync), METH_VARARGS, nullptr },
|
|
378
|
-
{ }
|
|
379
|
-
|
|
433
|
+
{ "find_all_async_aqs_filter", reinterpret_cast<PyCFunction>(PnpObject_FindAllAsyncAqsFilter), METH_VARARGS, nullptr },
|
|
434
|
+
{ }};
|
|
380
435
|
|
|
381
436
|
static PyType_Slot type_slots_PnpObject_Static[] =
|
|
382
437
|
{
|
|
@@ -386,14 +441,12 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
386
441
|
{ }
|
|
387
442
|
};
|
|
388
443
|
|
|
389
|
-
static PyType_Spec type_spec_PnpObject_Static =
|
|
390
|
-
{
|
|
444
|
+
static PyType_Spec type_spec_PnpObject_Static = {
|
|
391
445
|
"winrt._winrt_windows_devices_enumeration_pnp.PnpObject_Static",
|
|
392
446
|
static_cast<int>(PyType_Type.tp_basicsize),
|
|
393
447
|
static_cast<int>(PyType_Type.tp_itemsize),
|
|
394
448
|
Py_TPFLAGS_DEFAULT,
|
|
395
|
-
type_slots_PnpObject_Static
|
|
396
|
-
};
|
|
449
|
+
type_slots_PnpObject_Static};
|
|
397
450
|
|
|
398
451
|
// ----- PnpObjectCollection class --------------------
|
|
399
452
|
|
|
@@ -414,7 +467,7 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
414
467
|
|
|
415
468
|
static PyObject* PnpObjectCollection_First(py::wrapper::Windows::Devices::Enumeration::Pnp::PnpObjectCollection* self, PyObject* args) noexcept
|
|
416
469
|
{
|
|
417
|
-
auto arg_count =
|
|
470
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
418
471
|
|
|
419
472
|
if (arg_count == 0)
|
|
420
473
|
{
|
|
@@ -433,7 +486,11 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
433
486
|
return nullptr;
|
|
434
487
|
}
|
|
435
488
|
|
|
436
|
-
return py::convert(
|
|
489
|
+
return py::convert([&]()
|
|
490
|
+
{
|
|
491
|
+
auto _gil = release_gil();
|
|
492
|
+
return self->obj.First();
|
|
493
|
+
}());
|
|
437
494
|
}
|
|
438
495
|
catch (...)
|
|
439
496
|
{
|
|
@@ -450,7 +507,7 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
450
507
|
|
|
451
508
|
static PyObject* PnpObjectCollection_GetAt(py::wrapper::Windows::Devices::Enumeration::Pnp::PnpObjectCollection* self, PyObject* args) noexcept
|
|
452
509
|
{
|
|
453
|
-
auto arg_count =
|
|
510
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
454
511
|
|
|
455
512
|
if (arg_count == 1)
|
|
456
513
|
{
|
|
@@ -471,7 +528,11 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
471
528
|
|
|
472
529
|
auto param0 = py::convert_to<uint32_t>(args, 0);
|
|
473
530
|
|
|
474
|
-
return py::convert(
|
|
531
|
+
return py::convert([&]()
|
|
532
|
+
{
|
|
533
|
+
auto _gil = release_gil();
|
|
534
|
+
return self->obj.GetAt(param0);
|
|
535
|
+
}());
|
|
475
536
|
}
|
|
476
537
|
catch (...)
|
|
477
538
|
{
|
|
@@ -488,7 +549,7 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
488
549
|
|
|
489
550
|
static PyObject* PnpObjectCollection_GetMany(py::wrapper::Windows::Devices::Enumeration::Pnp::PnpObjectCollection* self, PyObject* args) noexcept
|
|
490
551
|
{
|
|
491
|
-
auto arg_count =
|
|
552
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
492
553
|
|
|
493
554
|
if (arg_count == 2)
|
|
494
555
|
{
|
|
@@ -510,7 +571,11 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
510
571
|
auto param0 = py::convert_to<uint32_t>(args, 0);
|
|
511
572
|
auto param1 = py::convert_to<py::pybuf_view<winrt::Windows::Devices::Enumeration::Pnp::PnpObject, true>>(args, 1);
|
|
512
573
|
|
|
513
|
-
return py::convert(
|
|
574
|
+
return py::convert([&]()
|
|
575
|
+
{
|
|
576
|
+
auto _gil = release_gil();
|
|
577
|
+
return self->obj.GetMany(param0, param1);
|
|
578
|
+
}());
|
|
514
579
|
}
|
|
515
580
|
catch (...)
|
|
516
581
|
{
|
|
@@ -527,7 +592,7 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
527
592
|
|
|
528
593
|
static PyObject* PnpObjectCollection_IndexOf(py::wrapper::Windows::Devices::Enumeration::Pnp::PnpObjectCollection* self, PyObject* args) noexcept
|
|
529
594
|
{
|
|
530
|
-
auto arg_count =
|
|
595
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
531
596
|
|
|
532
597
|
if (arg_count == 1)
|
|
533
598
|
{
|
|
@@ -549,7 +614,11 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
549
614
|
auto param0 = py::convert_to<winrt::Windows::Devices::Enumeration::Pnp::PnpObject>(args, 0);
|
|
550
615
|
uint32_t param1{};
|
|
551
616
|
|
|
552
|
-
auto return_value =
|
|
617
|
+
auto return_value = [&]()
|
|
618
|
+
{
|
|
619
|
+
auto _gil = release_gil();
|
|
620
|
+
return self->obj.IndexOf(param0, param1);
|
|
621
|
+
}();
|
|
553
622
|
|
|
554
623
|
py::pyobj_handle out_return_value{ py::convert(return_value) };
|
|
555
624
|
if (!out_return_value)
|
|
@@ -561,6 +630,7 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
561
630
|
{
|
|
562
631
|
return nullptr;
|
|
563
632
|
}
|
|
633
|
+
|
|
564
634
|
return PyTuple_Pack(2, out_return_value.get(), out1.get());
|
|
565
635
|
}
|
|
566
636
|
catch (...)
|
|
@@ -593,7 +663,11 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
593
663
|
return nullptr;
|
|
594
664
|
}
|
|
595
665
|
|
|
596
|
-
return py::convert(
|
|
666
|
+
return py::convert([&]()
|
|
667
|
+
{
|
|
668
|
+
auto _gil = release_gil();
|
|
669
|
+
return self->obj.Size();
|
|
670
|
+
}());
|
|
597
671
|
}
|
|
598
672
|
catch (...)
|
|
599
673
|
{
|
|
@@ -630,7 +704,11 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
630
704
|
{
|
|
631
705
|
try
|
|
632
706
|
{
|
|
633
|
-
return py::convert(
|
|
707
|
+
return py::convert([&]()
|
|
708
|
+
{
|
|
709
|
+
auto _gil = py::release_gil();
|
|
710
|
+
return self->obj.First();
|
|
711
|
+
}());
|
|
634
712
|
}
|
|
635
713
|
catch (...)
|
|
636
714
|
{
|
|
@@ -643,6 +721,7 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
643
721
|
{
|
|
644
722
|
try
|
|
645
723
|
{
|
|
724
|
+
auto _gil = py::release_gil();
|
|
646
725
|
return static_cast<Py_ssize_t>(self->obj.Size());
|
|
647
726
|
}
|
|
648
727
|
catch (...)
|
|
@@ -656,7 +735,11 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
656
735
|
{
|
|
657
736
|
try
|
|
658
737
|
{
|
|
659
|
-
return py::convert(
|
|
738
|
+
return py::convert([&]()
|
|
739
|
+
{
|
|
740
|
+
auto _gil = py::release_gil();
|
|
741
|
+
return self->obj.GetAt(static_cast<uint32_t>(i));
|
|
742
|
+
}());
|
|
660
743
|
}
|
|
661
744
|
catch (...)
|
|
662
745
|
{
|
|
@@ -695,7 +778,12 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
695
778
|
|
|
696
779
|
Py_ssize_t start, stop, step, length;
|
|
697
780
|
|
|
698
|
-
|
|
781
|
+
auto size = [&]()
|
|
782
|
+
{
|
|
783
|
+
auto _gil = py::release_gil();
|
|
784
|
+
return self->obj.Size();
|
|
785
|
+
}();
|
|
786
|
+
if (PySlice_GetIndicesEx(slice, size, &start, &stop, &step, &length) < 0)
|
|
699
787
|
{
|
|
700
788
|
return nullptr;
|
|
701
789
|
}
|
|
@@ -708,7 +796,11 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
708
796
|
|
|
709
797
|
winrt::com_array<winrt::Windows::Devices::Enumeration::Pnp::PnpObject> items(static_cast<uint32_t>(length), empty_instance<winrt::Windows::Devices::Enumeration::Pnp::PnpObject>::get());
|
|
710
798
|
|
|
711
|
-
auto count =
|
|
799
|
+
auto count = [&]()
|
|
800
|
+
{
|
|
801
|
+
auto _gil = py::release_gil();
|
|
802
|
+
return self->obj.GetMany(static_cast<uint32_t>(start), items);
|
|
803
|
+
}();
|
|
712
804
|
|
|
713
805
|
if (count != static_cast<uint32_t>(length))
|
|
714
806
|
{
|
|
@@ -732,13 +824,11 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
732
824
|
{ "index_of", reinterpret_cast<PyCFunction>(PnpObjectCollection_IndexOf), METH_VARARGS, nullptr },
|
|
733
825
|
{ "_assign_array_", _assign_array_PnpObjectCollection, METH_O | METH_STATIC, nullptr },
|
|
734
826
|
{ "_from", reinterpret_cast<PyCFunction>(_from_PnpObjectCollection), METH_O | METH_STATIC, nullptr },
|
|
735
|
-
{ }
|
|
736
|
-
};
|
|
827
|
+
{ }};
|
|
737
828
|
|
|
738
829
|
static PyGetSetDef _getset_PnpObjectCollection[] = {
|
|
739
830
|
{ "size", reinterpret_cast<getter>(PnpObjectCollection_get_Size), nullptr, nullptr, nullptr },
|
|
740
|
-
{ }
|
|
741
|
-
};
|
|
831
|
+
{ }};
|
|
742
832
|
|
|
743
833
|
static PyType_Slot _type_slots_PnpObjectCollection[] = {
|
|
744
834
|
{ Py_tp_new, reinterpret_cast<void*>(_new_PnpObjectCollection) },
|
|
@@ -749,8 +839,7 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
749
839
|
{ Py_sq_length, reinterpret_cast<void*>(_seq_length_PnpObjectCollection) },
|
|
750
840
|
{ Py_sq_item, reinterpret_cast<void*>(_seq_item_PnpObjectCollection) },
|
|
751
841
|
{ Py_mp_subscript, reinterpret_cast<void*>(_seq_subscript_PnpObjectCollection) },
|
|
752
|
-
{ }
|
|
753
|
-
};
|
|
842
|
+
{ }};
|
|
754
843
|
|
|
755
844
|
static PyType_Spec type_spec_PnpObjectCollection = {
|
|
756
845
|
"winrt._winrt_windows_devices_enumeration_pnp.PnpObjectCollection",
|
|
@@ -793,7 +882,11 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
793
882
|
return nullptr;
|
|
794
883
|
}
|
|
795
884
|
|
|
796
|
-
return py::convert(
|
|
885
|
+
return py::convert([&]()
|
|
886
|
+
{
|
|
887
|
+
auto _gil = release_gil();
|
|
888
|
+
return self->obj.Id();
|
|
889
|
+
}());
|
|
797
890
|
}
|
|
798
891
|
catch (...)
|
|
799
892
|
{
|
|
@@ -819,7 +912,11 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
819
912
|
return nullptr;
|
|
820
913
|
}
|
|
821
914
|
|
|
822
|
-
return py::convert(
|
|
915
|
+
return py::convert([&]()
|
|
916
|
+
{
|
|
917
|
+
auto _gil = release_gil();
|
|
918
|
+
return self->obj.Properties();
|
|
919
|
+
}());
|
|
823
920
|
}
|
|
824
921
|
catch (...)
|
|
825
922
|
{
|
|
@@ -845,7 +942,11 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
845
942
|
return nullptr;
|
|
846
943
|
}
|
|
847
944
|
|
|
848
|
-
return py::convert(
|
|
945
|
+
return py::convert([&]()
|
|
946
|
+
{
|
|
947
|
+
auto _gil = release_gil();
|
|
948
|
+
return self->obj.Type();
|
|
949
|
+
}());
|
|
849
950
|
}
|
|
850
951
|
catch (...)
|
|
851
952
|
{
|
|
@@ -881,23 +982,20 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
881
982
|
static PyMethodDef _methods_PnpObjectUpdate[] = {
|
|
882
983
|
{ "_assign_array_", _assign_array_PnpObjectUpdate, METH_O | METH_STATIC, nullptr },
|
|
883
984
|
{ "_from", reinterpret_cast<PyCFunction>(_from_PnpObjectUpdate), METH_O | METH_STATIC, nullptr },
|
|
884
|
-
{ }
|
|
885
|
-
};
|
|
985
|
+
{ }};
|
|
886
986
|
|
|
887
987
|
static PyGetSetDef _getset_PnpObjectUpdate[] = {
|
|
888
988
|
{ "id", reinterpret_cast<getter>(PnpObjectUpdate_get_Id), nullptr, nullptr, nullptr },
|
|
889
989
|
{ "properties", reinterpret_cast<getter>(PnpObjectUpdate_get_Properties), nullptr, nullptr, nullptr },
|
|
890
990
|
{ "type", reinterpret_cast<getter>(PnpObjectUpdate_get_Type), nullptr, nullptr, nullptr },
|
|
891
|
-
{ }
|
|
892
|
-
};
|
|
991
|
+
{ }};
|
|
893
992
|
|
|
894
993
|
static PyType_Slot _type_slots_PnpObjectUpdate[] = {
|
|
895
994
|
{ Py_tp_new, reinterpret_cast<void*>(_new_PnpObjectUpdate) },
|
|
896
995
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PnpObjectUpdate) },
|
|
897
996
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_PnpObjectUpdate) },
|
|
898
997
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_PnpObjectUpdate) },
|
|
899
|
-
{ }
|
|
900
|
-
};
|
|
998
|
+
{ }};
|
|
901
999
|
|
|
902
1000
|
static PyType_Spec type_spec_PnpObjectUpdate = {
|
|
903
1001
|
"winrt._winrt_windows_devices_enumeration_pnp.PnpObjectUpdate",
|
|
@@ -925,7 +1023,7 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
925
1023
|
|
|
926
1024
|
static PyObject* PnpObjectWatcher_Start(py::wrapper::Windows::Devices::Enumeration::Pnp::PnpObjectWatcher* self, PyObject* args) noexcept
|
|
927
1025
|
{
|
|
928
|
-
auto arg_count =
|
|
1026
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
929
1027
|
|
|
930
1028
|
if (arg_count == 0)
|
|
931
1029
|
{
|
|
@@ -944,7 +1042,11 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
944
1042
|
return nullptr;
|
|
945
1043
|
}
|
|
946
1044
|
|
|
947
|
-
|
|
1045
|
+
{
|
|
1046
|
+
auto _gil = release_gil();
|
|
1047
|
+
self->obj.Start();
|
|
1048
|
+
}
|
|
1049
|
+
|
|
948
1050
|
Py_RETURN_NONE;
|
|
949
1051
|
}
|
|
950
1052
|
catch (...)
|
|
@@ -962,7 +1064,7 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
962
1064
|
|
|
963
1065
|
static PyObject* PnpObjectWatcher_Stop(py::wrapper::Windows::Devices::Enumeration::Pnp::PnpObjectWatcher* self, PyObject* args) noexcept
|
|
964
1066
|
{
|
|
965
|
-
auto arg_count =
|
|
1067
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
966
1068
|
|
|
967
1069
|
if (arg_count == 0)
|
|
968
1070
|
{
|
|
@@ -981,7 +1083,11 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
981
1083
|
return nullptr;
|
|
982
1084
|
}
|
|
983
1085
|
|
|
984
|
-
|
|
1086
|
+
{
|
|
1087
|
+
auto _gil = release_gil();
|
|
1088
|
+
self->obj.Stop();
|
|
1089
|
+
}
|
|
1090
|
+
|
|
985
1091
|
Py_RETURN_NONE;
|
|
986
1092
|
}
|
|
987
1093
|
catch (...)
|
|
@@ -1014,7 +1120,11 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
1014
1120
|
return nullptr;
|
|
1015
1121
|
}
|
|
1016
1122
|
|
|
1017
|
-
return py::convert(
|
|
1123
|
+
return py::convert([&]()
|
|
1124
|
+
{
|
|
1125
|
+
auto _gil = release_gil();
|
|
1126
|
+
return self->obj.Status();
|
|
1127
|
+
}());
|
|
1018
1128
|
}
|
|
1019
1129
|
catch (...)
|
|
1020
1130
|
{
|
|
@@ -1042,7 +1152,11 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
1042
1152
|
|
|
1043
1153
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Devices::Enumeration::Pnp::PnpObjectWatcher, winrt::Windows::Devices::Enumeration::Pnp::PnpObject>>(arg);
|
|
1044
1154
|
|
|
1045
|
-
return py::convert(
|
|
1155
|
+
return py::convert([&]()
|
|
1156
|
+
{
|
|
1157
|
+
auto _gil = release_gil();
|
|
1158
|
+
return self->obj.Added(param0);
|
|
1159
|
+
}());
|
|
1046
1160
|
}
|
|
1047
1161
|
catch (...)
|
|
1048
1162
|
{
|
|
@@ -1070,7 +1184,11 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
1070
1184
|
|
|
1071
1185
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
1072
1186
|
|
|
1073
|
-
|
|
1187
|
+
{
|
|
1188
|
+
auto _gil = release_gil();
|
|
1189
|
+
self->obj.Added(param0);
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1074
1192
|
Py_RETURN_NONE;
|
|
1075
1193
|
}
|
|
1076
1194
|
catch (...)
|
|
@@ -1099,7 +1217,11 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
1099
1217
|
|
|
1100
1218
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Devices::Enumeration::Pnp::PnpObjectWatcher, winrt::Windows::Foundation::IInspectable>>(arg);
|
|
1101
1219
|
|
|
1102
|
-
return py::convert(
|
|
1220
|
+
return py::convert([&]()
|
|
1221
|
+
{
|
|
1222
|
+
auto _gil = release_gil();
|
|
1223
|
+
return self->obj.EnumerationCompleted(param0);
|
|
1224
|
+
}());
|
|
1103
1225
|
}
|
|
1104
1226
|
catch (...)
|
|
1105
1227
|
{
|
|
@@ -1127,7 +1249,11 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
1127
1249
|
|
|
1128
1250
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
1129
1251
|
|
|
1130
|
-
|
|
1252
|
+
{
|
|
1253
|
+
auto _gil = release_gil();
|
|
1254
|
+
self->obj.EnumerationCompleted(param0);
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1131
1257
|
Py_RETURN_NONE;
|
|
1132
1258
|
}
|
|
1133
1259
|
catch (...)
|
|
@@ -1156,7 +1282,11 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
1156
1282
|
|
|
1157
1283
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Devices::Enumeration::Pnp::PnpObjectWatcher, winrt::Windows::Devices::Enumeration::Pnp::PnpObjectUpdate>>(arg);
|
|
1158
1284
|
|
|
1159
|
-
return py::convert(
|
|
1285
|
+
return py::convert([&]()
|
|
1286
|
+
{
|
|
1287
|
+
auto _gil = release_gil();
|
|
1288
|
+
return self->obj.Removed(param0);
|
|
1289
|
+
}());
|
|
1160
1290
|
}
|
|
1161
1291
|
catch (...)
|
|
1162
1292
|
{
|
|
@@ -1184,7 +1314,11 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
1184
1314
|
|
|
1185
1315
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
1186
1316
|
|
|
1187
|
-
|
|
1317
|
+
{
|
|
1318
|
+
auto _gil = release_gil();
|
|
1319
|
+
self->obj.Removed(param0);
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1188
1322
|
Py_RETURN_NONE;
|
|
1189
1323
|
}
|
|
1190
1324
|
catch (...)
|
|
@@ -1213,7 +1347,11 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
1213
1347
|
|
|
1214
1348
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Devices::Enumeration::Pnp::PnpObjectWatcher, winrt::Windows::Foundation::IInspectable>>(arg);
|
|
1215
1349
|
|
|
1216
|
-
return py::convert(
|
|
1350
|
+
return py::convert([&]()
|
|
1351
|
+
{
|
|
1352
|
+
auto _gil = release_gil();
|
|
1353
|
+
return self->obj.Stopped(param0);
|
|
1354
|
+
}());
|
|
1217
1355
|
}
|
|
1218
1356
|
catch (...)
|
|
1219
1357
|
{
|
|
@@ -1241,7 +1379,11 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
1241
1379
|
|
|
1242
1380
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
1243
1381
|
|
|
1244
|
-
|
|
1382
|
+
{
|
|
1383
|
+
auto _gil = release_gil();
|
|
1384
|
+
self->obj.Stopped(param0);
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1245
1387
|
Py_RETURN_NONE;
|
|
1246
1388
|
}
|
|
1247
1389
|
catch (...)
|
|
@@ -1270,7 +1412,11 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
1270
1412
|
|
|
1271
1413
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Devices::Enumeration::Pnp::PnpObjectWatcher, winrt::Windows::Devices::Enumeration::Pnp::PnpObjectUpdate>>(arg);
|
|
1272
1414
|
|
|
1273
|
-
return py::convert(
|
|
1415
|
+
return py::convert([&]()
|
|
1416
|
+
{
|
|
1417
|
+
auto _gil = release_gil();
|
|
1418
|
+
return self->obj.Updated(param0);
|
|
1419
|
+
}());
|
|
1274
1420
|
}
|
|
1275
1421
|
catch (...)
|
|
1276
1422
|
{
|
|
@@ -1298,7 +1444,11 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
1298
1444
|
|
|
1299
1445
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
1300
1446
|
|
|
1301
|
-
|
|
1447
|
+
{
|
|
1448
|
+
auto _gil = release_gil();
|
|
1449
|
+
self->obj.Updated(param0);
|
|
1450
|
+
}
|
|
1451
|
+
|
|
1302
1452
|
Py_RETURN_NONE;
|
|
1303
1453
|
}
|
|
1304
1454
|
catch (...)
|
|
@@ -1347,21 +1497,18 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
1347
1497
|
{ "remove_updated", reinterpret_cast<PyCFunction>(PnpObjectWatcher_remove_Updated), METH_O, nullptr },
|
|
1348
1498
|
{ "_assign_array_", _assign_array_PnpObjectWatcher, METH_O | METH_STATIC, nullptr },
|
|
1349
1499
|
{ "_from", reinterpret_cast<PyCFunction>(_from_PnpObjectWatcher), METH_O | METH_STATIC, nullptr },
|
|
1350
|
-
{ }
|
|
1351
|
-
};
|
|
1500
|
+
{ }};
|
|
1352
1501
|
|
|
1353
1502
|
static PyGetSetDef _getset_PnpObjectWatcher[] = {
|
|
1354
1503
|
{ "status", reinterpret_cast<getter>(PnpObjectWatcher_get_Status), nullptr, nullptr, nullptr },
|
|
1355
|
-
{ }
|
|
1356
|
-
};
|
|
1504
|
+
{ }};
|
|
1357
1505
|
|
|
1358
1506
|
static PyType_Slot _type_slots_PnpObjectWatcher[] = {
|
|
1359
1507
|
{ Py_tp_new, reinterpret_cast<void*>(_new_PnpObjectWatcher) },
|
|
1360
1508
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PnpObjectWatcher) },
|
|
1361
1509
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_PnpObjectWatcher) },
|
|
1362
1510
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_PnpObjectWatcher) },
|
|
1363
|
-
{ }
|
|
1364
|
-
};
|
|
1511
|
+
{ }};
|
|
1365
1512
|
|
|
1366
1513
|
static PyType_Spec type_spec_PnpObjectWatcher = {
|
|
1367
1514
|
"winrt._winrt_windows_devices_enumeration_pnp.PnpObjectWatcher",
|
|
@@ -1402,6 +1549,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_devices_enumeration_pnp(void) noexcept
|
|
|
1402
1549
|
return nullptr;
|
|
1403
1550
|
}
|
|
1404
1551
|
|
|
1552
|
+
auto inspectable_meta_type = py::get_inspectable_meta_type();
|
|
1553
|
+
if (!inspectable_meta_type)
|
|
1554
|
+
{
|
|
1555
|
+
return nullptr;
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1405
1558
|
auto object_type = py::get_object_type();
|
|
1406
1559
|
if (!object_type)
|
|
1407
1560
|
{
|
|
@@ -1415,7 +1568,13 @@ PyMODINIT_FUNC PyInit__winrt_windows_devices_enumeration_pnp(void) noexcept
|
|
|
1415
1568
|
return nullptr;
|
|
1416
1569
|
}
|
|
1417
1570
|
|
|
1418
|
-
py::pyobj_handle
|
|
1571
|
+
py::pyobj_handle PnpObject_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
|
|
1572
|
+
if (!PnpObject_Static_bases)
|
|
1573
|
+
{
|
|
1574
|
+
return nullptr;
|
|
1575
|
+
}
|
|
1576
|
+
|
|
1577
|
+
py::pyobj_handle type_PnpObject_Static{PyType_FromSpecWithBases(&type_spec_PnpObject_Static, PnpObject_Static_bases.get())};
|
|
1419
1578
|
if (!type_PnpObject_Static)
|
|
1420
1579
|
{
|
|
1421
1580
|
return nullptr;
|
|
@@ -1427,19 +1586,19 @@ PyMODINIT_FUNC PyInit__winrt_windows_devices_enumeration_pnp(void) noexcept
|
|
|
1427
1586
|
return nullptr;
|
|
1428
1587
|
}
|
|
1429
1588
|
|
|
1430
|
-
py::pytype_handle PnpObjectCollection_type{py::register_python_type(module.get(), &type_spec_PnpObjectCollection, object_bases.get(),
|
|
1589
|
+
py::pytype_handle PnpObjectCollection_type{py::register_python_type(module.get(), &type_spec_PnpObjectCollection, object_bases.get(), inspectable_meta_type)};
|
|
1431
1590
|
if (!PnpObjectCollection_type)
|
|
1432
1591
|
{
|
|
1433
1592
|
return nullptr;
|
|
1434
1593
|
}
|
|
1435
1594
|
|
|
1436
|
-
py::pytype_handle PnpObjectUpdate_type{py::register_python_type(module.get(), &type_spec_PnpObjectUpdate, object_bases.get(),
|
|
1595
|
+
py::pytype_handle PnpObjectUpdate_type{py::register_python_type(module.get(), &type_spec_PnpObjectUpdate, object_bases.get(), inspectable_meta_type)};
|
|
1437
1596
|
if (!PnpObjectUpdate_type)
|
|
1438
1597
|
{
|
|
1439
1598
|
return nullptr;
|
|
1440
1599
|
}
|
|
1441
1600
|
|
|
1442
|
-
py::pytype_handle PnpObjectWatcher_type{py::register_python_type(module.get(), &type_spec_PnpObjectWatcher, object_bases.get(),
|
|
1601
|
+
py::pytype_handle PnpObjectWatcher_type{py::register_python_type(module.get(), &type_spec_PnpObjectWatcher, object_bases.get(), inspectable_meta_type)};
|
|
1443
1602
|
if (!PnpObjectWatcher_type)
|
|
1444
1603
|
{
|
|
1445
1604
|
return nullptr;
|
|
@@ -16,7 +16,7 @@ classifiers = [
|
|
|
16
16
|
"Intended Audience :: Developers",
|
|
17
17
|
]
|
|
18
18
|
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
19
|
-
requires-python = ">=3.9
|
|
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="
|
|
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"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.0.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==
|
|
3
|
+
winrt-runtime==3.0.0
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.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.enumeration as windows_devices_enumeration
|
|
13
|
+
import winrt.windows.foundation as windows_foundation
|
|
14
|
+
import winrt.windows.foundation.collections as windows_foundation_collections
|
|
15
|
+
|
|
16
|
+
from winrt.windows.devices.enumeration.pnp import PnpObjectType
|
|
17
|
+
|
|
18
|
+
Self = typing.TypeVar('Self')
|
|
19
|
+
|
|
20
|
+
@typing.final
|
|
21
|
+
class PnpObject_Static(winrt._winrt.IInspectable_Static):
|
|
22
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Devices.Enumeration.Pnp.PnpObject> Windows.Devices.Enumeration.Pnp.PnpObject::CreateFromIdAsync(Windows.Devices.Enumeration.Pnp.PnpObjectType,System.String,Windows.Foundation.Collections.IIterable`1<System.String>)
|
|
23
|
+
def create_from_id_async(cls, type: PnpObjectType, id: str, requested_properties: typing.Iterable[str], /) -> windows_foundation.IAsyncOperation[PnpObject]: ...
|
|
24
|
+
# Windows.Devices.Enumeration.Pnp.PnpObjectWatcher Windows.Devices.Enumeration.Pnp.PnpObject::CreateWatcher(Windows.Devices.Enumeration.Pnp.PnpObjectType,Windows.Foundation.Collections.IIterable`1<System.String>)
|
|
25
|
+
def create_watcher(cls, type: PnpObjectType, requested_properties: typing.Iterable[str], /) -> PnpObjectWatcher: ...
|
|
26
|
+
# Windows.Devices.Enumeration.Pnp.PnpObjectWatcher Windows.Devices.Enumeration.Pnp.PnpObject::CreateWatcher(Windows.Devices.Enumeration.Pnp.PnpObjectType,Windows.Foundation.Collections.IIterable`1<System.String>,System.String)
|
|
27
|
+
def create_watcher_aqs_filter(cls, type: PnpObjectType, requested_properties: typing.Iterable[str], aqs_filter: str, /) -> PnpObjectWatcher: ...
|
|
28
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Devices.Enumeration.Pnp.PnpObjectCollection> Windows.Devices.Enumeration.Pnp.PnpObject::FindAllAsync(Windows.Devices.Enumeration.Pnp.PnpObjectType,Windows.Foundation.Collections.IIterable`1<System.String>)
|
|
29
|
+
def find_all_async(cls, type: PnpObjectType, requested_properties: typing.Iterable[str], /) -> windows_foundation.IAsyncOperation[PnpObjectCollection]: ...
|
|
30
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Devices.Enumeration.Pnp.PnpObjectCollection> Windows.Devices.Enumeration.Pnp.PnpObject::FindAllAsync(Windows.Devices.Enumeration.Pnp.PnpObjectType,Windows.Foundation.Collections.IIterable`1<System.String>,System.String)
|
|
31
|
+
def find_all_async_aqs_filter(cls, type: PnpObjectType, requested_properties: typing.Iterable[str], aqs_filter: str, /) -> windows_foundation.IAsyncOperation[PnpObjectCollection]: ...
|
|
32
|
+
|
|
33
|
+
@typing.final
|
|
34
|
+
class PnpObject(winrt.system.Object, metaclass=PnpObject_Static):
|
|
35
|
+
# System.Void Windows.Devices.Enumeration.Pnp.PnpObject::Update(Windows.Devices.Enumeration.Pnp.PnpObjectUpdate)
|
|
36
|
+
def update(self, update_info: PnpObjectUpdate, /) -> None: ...
|
|
37
|
+
# System.String Windows.Devices.Enumeration.Pnp.PnpObject::get_Id()
|
|
38
|
+
@_property
|
|
39
|
+
def id(self) -> str: ...
|
|
40
|
+
# Windows.Foundation.Collections.IMapView`2<System.String,System.Object> Windows.Devices.Enumeration.Pnp.PnpObject::get_Properties()
|
|
41
|
+
@_property
|
|
42
|
+
def properties(self) -> typing.Mapping[str, winrt.system.Object]: ...
|
|
43
|
+
# Windows.Devices.Enumeration.Pnp.PnpObjectType Windows.Devices.Enumeration.Pnp.PnpObject::get_Type()
|
|
44
|
+
@_property
|
|
45
|
+
def type(self) -> PnpObjectType: ...
|
|
46
|
+
|
|
47
|
+
@typing.final
|
|
48
|
+
class PnpObjectCollection(winrt.system.Object, winrt._winrt.Sequence[PnpObject]):
|
|
49
|
+
def __len__(self) -> int: ...
|
|
50
|
+
def __iter__(self) -> typing.Iterator[PnpObject]: ...
|
|
51
|
+
@typing.overload
|
|
52
|
+
def __getitem__(self, index: typing.SupportsIndex) -> PnpObject: ...
|
|
53
|
+
@typing.overload
|
|
54
|
+
def __getitem__(self, index: slice) -> winrt.system.Array[PnpObject]: ...
|
|
55
|
+
# Windows.Foundation.Collections.IIterator`1<Windows.Devices.Enumeration.Pnp.PnpObject> Windows.Devices.Enumeration.Pnp.PnpObjectCollection::First()
|
|
56
|
+
def first(self) -> windows_foundation_collections.IIterator[PnpObject]: ...
|
|
57
|
+
# Windows.Devices.Enumeration.Pnp.PnpObject Windows.Devices.Enumeration.Pnp.PnpObjectCollection::GetAt(System.UInt32)
|
|
58
|
+
def get_at(self, index: winrt.system.UInt32, /) -> PnpObject: ...
|
|
59
|
+
# System.UInt32 Windows.Devices.Enumeration.Pnp.PnpObjectCollection::GetMany(System.UInt32,Windows.Devices.Enumeration.Pnp.PnpObject[])
|
|
60
|
+
def get_many(self, start_index: winrt.system.UInt32, items: typing.Union[winrt.system.Array[PnpObject], winrt.system.WriteableBuffer], /) -> winrt.system.UInt32: ...
|
|
61
|
+
# System.Boolean Windows.Devices.Enumeration.Pnp.PnpObjectCollection::IndexOf(Windows.Devices.Enumeration.Pnp.PnpObject,System.UInt32&)
|
|
62
|
+
def index_of(self, value: PnpObject, /) -> typing.Tuple[bool, winrt.system.UInt32]: ...
|
|
63
|
+
# System.UInt32 Windows.Devices.Enumeration.Pnp.PnpObjectCollection::get_Size()
|
|
64
|
+
@_property
|
|
65
|
+
def size(self) -> winrt.system.UInt32: ...
|
|
66
|
+
|
|
67
|
+
@typing.final
|
|
68
|
+
class PnpObjectUpdate(winrt.system.Object):
|
|
69
|
+
# System.String Windows.Devices.Enumeration.Pnp.PnpObjectUpdate::get_Id()
|
|
70
|
+
@_property
|
|
71
|
+
def id(self) -> str: ...
|
|
72
|
+
# Windows.Foundation.Collections.IMapView`2<System.String,System.Object> Windows.Devices.Enumeration.Pnp.PnpObjectUpdate::get_Properties()
|
|
73
|
+
@_property
|
|
74
|
+
def properties(self) -> typing.Mapping[str, winrt.system.Object]: ...
|
|
75
|
+
# Windows.Devices.Enumeration.Pnp.PnpObjectType Windows.Devices.Enumeration.Pnp.PnpObjectUpdate::get_Type()
|
|
76
|
+
@_property
|
|
77
|
+
def type(self) -> PnpObjectType: ...
|
|
78
|
+
|
|
79
|
+
@typing.final
|
|
80
|
+
class PnpObjectWatcher(winrt.system.Object):
|
|
81
|
+
# System.Void Windows.Devices.Enumeration.Pnp.PnpObjectWatcher::Start()
|
|
82
|
+
def start(self) -> None: ...
|
|
83
|
+
# System.Void Windows.Devices.Enumeration.Pnp.PnpObjectWatcher::Stop()
|
|
84
|
+
def stop(self) -> None: ...
|
|
85
|
+
# Windows.Foundation.EventRegistrationToken Windows.Devices.Enumeration.Pnp.PnpObjectWatcher::add_Added(Windows.Foundation.TypedEventHandler`2<Windows.Devices.Enumeration.Pnp.PnpObjectWatcher,Windows.Devices.Enumeration.Pnp.PnpObject>)
|
|
86
|
+
def add_added(self, handler: windows_foundation.TypedEventHandler[PnpObjectWatcher, PnpObject], /) -> windows_foundation.EventRegistrationToken: ...
|
|
87
|
+
# System.Void Windows.Devices.Enumeration.Pnp.PnpObjectWatcher::remove_Added(Windows.Foundation.EventRegistrationToken)
|
|
88
|
+
def remove_added(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
|
|
89
|
+
# Windows.Foundation.EventRegistrationToken Windows.Devices.Enumeration.Pnp.PnpObjectWatcher::add_EnumerationCompleted(Windows.Foundation.TypedEventHandler`2<Windows.Devices.Enumeration.Pnp.PnpObjectWatcher,System.Object>)
|
|
90
|
+
def add_enumeration_completed(self, handler: windows_foundation.TypedEventHandler[PnpObjectWatcher, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
91
|
+
# System.Void Windows.Devices.Enumeration.Pnp.PnpObjectWatcher::remove_EnumerationCompleted(Windows.Foundation.EventRegistrationToken)
|
|
92
|
+
def remove_enumeration_completed(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
|
|
93
|
+
# Windows.Foundation.EventRegistrationToken Windows.Devices.Enumeration.Pnp.PnpObjectWatcher::add_Removed(Windows.Foundation.TypedEventHandler`2<Windows.Devices.Enumeration.Pnp.PnpObjectWatcher,Windows.Devices.Enumeration.Pnp.PnpObjectUpdate>)
|
|
94
|
+
def add_removed(self, handler: windows_foundation.TypedEventHandler[PnpObjectWatcher, PnpObjectUpdate], /) -> windows_foundation.EventRegistrationToken: ...
|
|
95
|
+
# System.Void Windows.Devices.Enumeration.Pnp.PnpObjectWatcher::remove_Removed(Windows.Foundation.EventRegistrationToken)
|
|
96
|
+
def remove_removed(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
|
|
97
|
+
# Windows.Foundation.EventRegistrationToken Windows.Devices.Enumeration.Pnp.PnpObjectWatcher::add_Stopped(Windows.Foundation.TypedEventHandler`2<Windows.Devices.Enumeration.Pnp.PnpObjectWatcher,System.Object>)
|
|
98
|
+
def add_stopped(self, handler: windows_foundation.TypedEventHandler[PnpObjectWatcher, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
99
|
+
# System.Void Windows.Devices.Enumeration.Pnp.PnpObjectWatcher::remove_Stopped(Windows.Foundation.EventRegistrationToken)
|
|
100
|
+
def remove_stopped(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
|
|
101
|
+
# Windows.Foundation.EventRegistrationToken Windows.Devices.Enumeration.Pnp.PnpObjectWatcher::add_Updated(Windows.Foundation.TypedEventHandler`2<Windows.Devices.Enumeration.Pnp.PnpObjectWatcher,Windows.Devices.Enumeration.Pnp.PnpObjectUpdate>)
|
|
102
|
+
def add_updated(self, handler: windows_foundation.TypedEventHandler[PnpObjectWatcher, PnpObjectUpdate], /) -> windows_foundation.EventRegistrationToken: ...
|
|
103
|
+
# System.Void Windows.Devices.Enumeration.Pnp.PnpObjectWatcher::remove_Updated(Windows.Foundation.EventRegistrationToken)
|
|
104
|
+
def remove_updated(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
|
|
105
|
+
# Windows.Devices.Enumeration.DeviceWatcherStatus Windows.Devices.Enumeration.Pnp.PnpObjectWatcher::get_Status()
|
|
106
|
+
@_property
|
|
107
|
+
def status(self) -> windows_devices_enumeration.DeviceWatcherStatus: ...
|
|
108
|
+
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
2
2
|
|
|
3
3
|
import enum
|
|
4
4
|
|
|
5
5
|
import winrt.system
|
|
6
|
-
from winrt import
|
|
6
|
+
from winrt._winrt_windows_devices_enumeration_pnp import (
|
|
7
|
+
PnpObject,
|
|
8
|
+
PnpObjectCollection,
|
|
9
|
+
PnpObjectUpdate,
|
|
10
|
+
PnpObjectWatcher,
|
|
11
|
+
)
|
|
7
12
|
|
|
8
13
|
__all__ = [
|
|
9
14
|
"PnpObjectType",
|
|
@@ -23,9 +28,6 @@ class PnpObjectType(enum.IntEnum):
|
|
|
23
28
|
ASSOCIATION_ENDPOINT_CONTAINER = 6
|
|
24
29
|
ASSOCIATION_ENDPOINT_SERVICE = 7
|
|
25
30
|
DEVICE_PANEL = 8
|
|
31
|
+
ASSOCIATION_ENDPOINT_PROTOCOL = 9
|
|
26
32
|
|
|
27
|
-
PnpObject = _winrt_windows_devices_enumeration_pnp.PnpObject
|
|
28
|
-
PnpObjectCollection = _winrt_windows_devices_enumeration_pnp.PnpObjectCollection
|
|
29
33
|
winrt.system._mixin_sequence(PnpObjectCollection)
|
|
30
|
-
PnpObjectUpdate = _winrt_windows_devices_enumeration_pnp.PnpObjectUpdate
|
|
31
|
-
PnpObjectWatcher = _winrt_windows_devices_enumeration_pnp.PnpObjectWatcher
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Devices.Enumeration.Pnp
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.0.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -10,13 +10,13 @@ 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:
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==
|
|
15
|
+
Requires-Dist: winrt-runtime==3.0.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Devices.Enumeration[all]==
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation[all]==
|
|
19
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==
|
|
17
|
+
Requires-Dist: winrt-Windows.Devices.Enumeration[all]==3.0.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.0.0; extra == "all"
|
|
20
20
|
|
|
21
21
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
22
22
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.2.0
|
winrt_windows_devices_enumeration_pnp-2.2.0/winrt/_winrt_windows_devices_enumeration_pnp.pyi
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.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.enumeration as windows_devices_enumeration
|
|
13
|
-
import winrt.windows.foundation as windows_foundation
|
|
14
|
-
import winrt.windows.foundation.collections as windows_foundation_collections
|
|
15
|
-
|
|
16
|
-
from winrt.windows.devices.enumeration.pnp import PnpObjectType
|
|
17
|
-
|
|
18
|
-
Self = typing.TypeVar('Self')
|
|
19
|
-
|
|
20
|
-
@typing.final
|
|
21
|
-
class PnpObject_Static(type):
|
|
22
|
-
def create_from_id_async(cls, type: PnpObjectType, id: str, requested_properties: typing.Iterable[str], /) -> windows_foundation.IAsyncOperation[PnpObject]: ...
|
|
23
|
-
@typing.overload
|
|
24
|
-
def create_watcher(cls, type: PnpObjectType, requested_properties: typing.Iterable[str], /) -> typing.Optional[PnpObjectWatcher]: ...
|
|
25
|
-
@typing.overload
|
|
26
|
-
def create_watcher(cls, type: PnpObjectType, requested_properties: typing.Iterable[str], aqs_filter: str, /) -> typing.Optional[PnpObjectWatcher]: ...
|
|
27
|
-
@typing.overload
|
|
28
|
-
def find_all_async(cls, type: PnpObjectType, requested_properties: typing.Iterable[str], /) -> windows_foundation.IAsyncOperation[PnpObjectCollection]: ...
|
|
29
|
-
@typing.overload
|
|
30
|
-
def find_all_async(cls, type: PnpObjectType, requested_properties: typing.Iterable[str], aqs_filter: str, /) -> windows_foundation.IAsyncOperation[PnpObjectCollection]: ...
|
|
31
|
-
|
|
32
|
-
@typing.final
|
|
33
|
-
class PnpObject(winrt.system.Object, metaclass=PnpObject_Static):
|
|
34
|
-
@staticmethod
|
|
35
|
-
def _from(obj: winrt.system.Object, /) -> PnpObject: ...
|
|
36
|
-
def update(self, update_info: typing.Optional[PnpObjectUpdate], /) -> None: ...
|
|
37
|
-
@_property
|
|
38
|
-
def id(self) -> str: ...
|
|
39
|
-
@_property
|
|
40
|
-
def properties(self) -> typing.Optional[windows_foundation_collections.IMapView[str, winrt.system.Object]]: ...
|
|
41
|
-
@_property
|
|
42
|
-
def type(self) -> PnpObjectType: ...
|
|
43
|
-
|
|
44
|
-
@typing.final
|
|
45
|
-
class PnpObjectCollection(winrt.system.Object, winrt._winrt.Sequence[PnpObject]):
|
|
46
|
-
def __len__(self) -> int: ...
|
|
47
|
-
def __iter__(self) -> windows_foundation_collections.IIterator[PnpObject]: ...
|
|
48
|
-
@typing.overload
|
|
49
|
-
def __getitem__(self, index: typing.SupportsIndex) -> PnpObject: ...
|
|
50
|
-
@typing.overload
|
|
51
|
-
def __getitem__(self, index: slice) -> winrt.system.Array[PnpObject]: ...
|
|
52
|
-
@staticmethod
|
|
53
|
-
def _from(obj: winrt.system.Object, /) -> PnpObjectCollection: ...
|
|
54
|
-
def first(self) -> typing.Optional[windows_foundation_collections.IIterator[PnpObject]]: ...
|
|
55
|
-
def get_at(self, index: winrt.system.UInt32, /) -> typing.Optional[PnpObject]: ...
|
|
56
|
-
def get_many(self, start_index: winrt.system.UInt32, items: winrt.system.Array[PnpObject], /) -> winrt.system.UInt32: ...
|
|
57
|
-
def index_of(self, value: typing.Optional[PnpObject], /) -> typing.Tuple[bool, winrt.system.UInt32]: ...
|
|
58
|
-
@_property
|
|
59
|
-
def size(self) -> winrt.system.UInt32: ...
|
|
60
|
-
|
|
61
|
-
@typing.final
|
|
62
|
-
class PnpObjectUpdate(winrt.system.Object):
|
|
63
|
-
@staticmethod
|
|
64
|
-
def _from(obj: winrt.system.Object, /) -> PnpObjectUpdate: ...
|
|
65
|
-
@_property
|
|
66
|
-
def id(self) -> str: ...
|
|
67
|
-
@_property
|
|
68
|
-
def properties(self) -> typing.Optional[windows_foundation_collections.IMapView[str, winrt.system.Object]]: ...
|
|
69
|
-
@_property
|
|
70
|
-
def type(self) -> PnpObjectType: ...
|
|
71
|
-
|
|
72
|
-
@typing.final
|
|
73
|
-
class PnpObjectWatcher(winrt.system.Object):
|
|
74
|
-
@staticmethod
|
|
75
|
-
def _from(obj: winrt.system.Object, /) -> PnpObjectWatcher: ...
|
|
76
|
-
def start(self) -> None: ...
|
|
77
|
-
def stop(self) -> None: ...
|
|
78
|
-
def add_added(self, handler: windows_foundation.TypedEventHandler[PnpObjectWatcher, PnpObject], /) -> windows_foundation.EventRegistrationToken: ...
|
|
79
|
-
def remove_added(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
80
|
-
def add_enumeration_completed(self, handler: windows_foundation.TypedEventHandler[PnpObjectWatcher, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
81
|
-
def remove_enumeration_completed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
82
|
-
def add_removed(self, handler: windows_foundation.TypedEventHandler[PnpObjectWatcher, PnpObjectUpdate], /) -> windows_foundation.EventRegistrationToken: ...
|
|
83
|
-
def remove_removed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
84
|
-
def add_stopped(self, handler: windows_foundation.TypedEventHandler[PnpObjectWatcher, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
85
|
-
def remove_stopped(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
86
|
-
def add_updated(self, handler: windows_foundation.TypedEventHandler[PnpObjectWatcher, PnpObjectUpdate], /) -> windows_foundation.EventRegistrationToken: ...
|
|
87
|
-
def remove_updated(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
88
|
-
@_property
|
|
89
|
-
def status(self) -> windows_devices_enumeration.DeviceWatcherStatus: ...
|
|
90
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|