winrt-Windows.Devices.Enumeration.Pnp 2.0.0b2__tar.gz → 2.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.
- {winrt-Windows.Devices.Enumeration.Pnp-2.0.0b2 → winrt_windows_devices_enumeration_pnp-2.1.0}/PKG-INFO +5 -1
- winrt_windows_devices_enumeration_pnp-2.1.0/all-requirements.txt +5 -0
- {winrt-Windows.Devices.Enumeration.Pnp-2.0.0b2 → winrt_windows_devices_enumeration_pnp-2.1.0}/py.Windows.Devices.Enumeration.Pnp.cpp +215 -239
- {winrt-Windows.Devices.Enumeration.Pnp-2.0.0b2 → winrt_windows_devices_enumeration_pnp-2.1.0}/pyproject.toml +2 -2
- winrt_windows_devices_enumeration_pnp-2.1.0/pywinrt-version.txt +1 -0
- {winrt-Windows.Devices.Enumeration.Pnp-2.0.0b2 → winrt_windows_devices_enumeration_pnp-2.1.0}/requirements.txt +2 -2
- winrt_windows_devices_enumeration_pnp-2.1.0/setup.py +31 -0
- {winrt-Windows.Devices.Enumeration.Pnp-2.0.0b2 → winrt_windows_devices_enumeration_pnp-2.1.0}/winrt/_winrt_windows_devices_enumeration_pnp.pyi +22 -22
- {winrt-Windows.Devices.Enumeration.Pnp-2.0.0b2 → winrt_windows_devices_enumeration_pnp-2.1.0}/winrt/windows/devices/enumeration/pnp/__init__.py +1 -1
- winrt_windows_devices_enumeration_pnp-2.1.0/winrt/windows/devices/enumeration/pnp/py.typed +0 -0
- {winrt-Windows.Devices.Enumeration.Pnp-2.0.0b2 → winrt_windows_devices_enumeration_pnp-2.1.0}/winrt_Windows.Devices.Enumeration.Pnp.egg-info/PKG-INFO +5 -1
- {winrt-Windows.Devices.Enumeration.Pnp-2.0.0b2 → winrt_windows_devices_enumeration_pnp-2.1.0}/winrt_Windows.Devices.Enumeration.Pnp.egg-info/SOURCES.txt +1 -0
- winrt_windows_devices_enumeration_pnp-2.1.0/winrt_Windows.Devices.Enumeration.Pnp.egg-info/requires.txt +6 -0
- winrt-Windows.Devices.Enumeration.Pnp-2.0.0b2/all-requirements.txt +0 -5
- winrt-Windows.Devices.Enumeration.Pnp-2.0.0b2/pywinrt-version.txt +0 -1
- winrt-Windows.Devices.Enumeration.Pnp-2.0.0b2/setup.py +0 -16
- winrt-Windows.Devices.Enumeration.Pnp-2.0.0b2/winrt_Windows.Devices.Enumeration.Pnp.egg-info/requires.txt +0 -6
- {winrt-Windows.Devices.Enumeration.Pnp-2.0.0b2 → winrt_windows_devices_enumeration_pnp-2.1.0}/README.md +0 -0
- {winrt-Windows.Devices.Enumeration.Pnp-2.0.0b2 → winrt_windows_devices_enumeration_pnp-2.1.0}/setup.cfg +0 -0
- {winrt-Windows.Devices.Enumeration.Pnp-2.0.0b2 → winrt_windows_devices_enumeration_pnp-2.1.0}/winrt_Windows.Devices.Enumeration.Pnp.egg-info/dependency_links.txt +0 -0
- {winrt-Windows.Devices.Enumeration.Pnp-2.0.0b2 → winrt_windows_devices_enumeration_pnp-2.1.0}/winrt_Windows.Devices.Enumeration.Pnp.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Devices.Enumeration.Pnp
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -12,7 +12,11 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Requires-Python: <3.13,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: winrt-runtime==2.1.0
|
|
15
16
|
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.Devices.Enumeration[all]==2.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
|
|
16
20
|
|
|
17
21
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
22
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.Devices.Enumeration.Pnp.h"
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
7
6
|
{
|
|
8
7
|
// ----- PnpObject class --------------------
|
|
@@ -28,14 +27,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
28
27
|
|
|
29
28
|
if (arg_count == 3)
|
|
30
29
|
{
|
|
31
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Enumeration.Pnp.PnpObject", L"CreateFromIdAsync", 3))
|
|
32
|
-
{
|
|
33
|
-
py::set_arg_count_version_error(3);
|
|
34
|
-
return nullptr;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
30
|
try
|
|
38
31
|
{
|
|
32
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Enumeration.Pnp.PnpObject", L"CreateFromIdAsync", 3))
|
|
33
|
+
{
|
|
34
|
+
py::set_arg_count_version_error(3);
|
|
35
|
+
return nullptr;
|
|
36
|
+
}
|
|
37
|
+
|
|
39
38
|
auto param0 = py::convert_to<winrt::Windows::Devices::Enumeration::Pnp::PnpObjectType>(args, 0);
|
|
40
39
|
auto param1 = py::convert_to<winrt::hstring>(args, 1);
|
|
41
40
|
auto param2 = py::convert_to<winrt::Windows::Foundation::Collections::IIterable<winrt::hstring>>(args, 2);
|
|
@@ -61,14 +60,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
61
60
|
|
|
62
61
|
if (arg_count == 2)
|
|
63
62
|
{
|
|
64
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Enumeration.Pnp.PnpObject", L"CreateWatcher", 2))
|
|
65
|
-
{
|
|
66
|
-
py::set_arg_count_version_error(2);
|
|
67
|
-
return nullptr;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
63
|
try
|
|
71
64
|
{
|
|
65
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Enumeration.Pnp.PnpObject", L"CreateWatcher", 2))
|
|
66
|
+
{
|
|
67
|
+
py::set_arg_count_version_error(2);
|
|
68
|
+
return nullptr;
|
|
69
|
+
}
|
|
70
|
+
|
|
72
71
|
auto param0 = py::convert_to<winrt::Windows::Devices::Enumeration::Pnp::PnpObjectType>(args, 0);
|
|
73
72
|
auto param1 = py::convert_to<winrt::Windows::Foundation::Collections::IIterable<winrt::hstring>>(args, 1);
|
|
74
73
|
|
|
@@ -82,14 +81,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
82
81
|
}
|
|
83
82
|
else if (arg_count == 3)
|
|
84
83
|
{
|
|
85
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Enumeration.Pnp.PnpObject", L"CreateWatcher", 3))
|
|
86
|
-
{
|
|
87
|
-
py::set_arg_count_version_error(3);
|
|
88
|
-
return nullptr;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
84
|
try
|
|
92
85
|
{
|
|
86
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Enumeration.Pnp.PnpObject", L"CreateWatcher", 3))
|
|
87
|
+
{
|
|
88
|
+
py::set_arg_count_version_error(3);
|
|
89
|
+
return nullptr;
|
|
90
|
+
}
|
|
91
|
+
|
|
93
92
|
auto param0 = py::convert_to<winrt::Windows::Devices::Enumeration::Pnp::PnpObjectType>(args, 0);
|
|
94
93
|
auto param1 = py::convert_to<winrt::Windows::Foundation::Collections::IIterable<winrt::hstring>>(args, 1);
|
|
95
94
|
auto param2 = py::convert_to<winrt::hstring>(args, 2);
|
|
@@ -115,14 +114,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
115
114
|
|
|
116
115
|
if (arg_count == 2)
|
|
117
116
|
{
|
|
118
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Enumeration.Pnp.PnpObject", L"FindAllAsync", 2))
|
|
119
|
-
{
|
|
120
|
-
py::set_arg_count_version_error(2);
|
|
121
|
-
return nullptr;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
117
|
try
|
|
125
118
|
{
|
|
119
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Enumeration.Pnp.PnpObject", L"FindAllAsync", 2))
|
|
120
|
+
{
|
|
121
|
+
py::set_arg_count_version_error(2);
|
|
122
|
+
return nullptr;
|
|
123
|
+
}
|
|
124
|
+
|
|
126
125
|
auto param0 = py::convert_to<winrt::Windows::Devices::Enumeration::Pnp::PnpObjectType>(args, 0);
|
|
127
126
|
auto param1 = py::convert_to<winrt::Windows::Foundation::Collections::IIterable<winrt::hstring>>(args, 1);
|
|
128
127
|
|
|
@@ -136,14 +135,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
136
135
|
}
|
|
137
136
|
else if (arg_count == 3)
|
|
138
137
|
{
|
|
139
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Enumeration.Pnp.PnpObject", L"FindAllAsync", 3))
|
|
140
|
-
{
|
|
141
|
-
py::set_arg_count_version_error(3);
|
|
142
|
-
return nullptr;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
138
|
try
|
|
146
139
|
{
|
|
140
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Enumeration.Pnp.PnpObject", L"FindAllAsync", 3))
|
|
141
|
+
{
|
|
142
|
+
py::set_arg_count_version_error(3);
|
|
143
|
+
return nullptr;
|
|
144
|
+
}
|
|
145
|
+
|
|
147
146
|
auto param0 = py::convert_to<winrt::Windows::Devices::Enumeration::Pnp::PnpObjectType>(args, 0);
|
|
148
147
|
auto param1 = py::convert_to<winrt::Windows::Foundation::Collections::IIterable<winrt::hstring>>(args, 1);
|
|
149
148
|
auto param2 = py::convert_to<winrt::hstring>(args, 2);
|
|
@@ -169,14 +168,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
169
168
|
|
|
170
169
|
if (arg_count == 1)
|
|
171
170
|
{
|
|
172
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Enumeration.Pnp.PnpObject", L"Update", 1))
|
|
173
|
-
{
|
|
174
|
-
py::set_arg_count_version_error(1);
|
|
175
|
-
return nullptr;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
171
|
try
|
|
179
172
|
{
|
|
173
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Enumeration.Pnp.PnpObject", L"Update", 1))
|
|
174
|
+
{
|
|
175
|
+
py::set_arg_count_version_error(1);
|
|
176
|
+
return nullptr;
|
|
177
|
+
}
|
|
178
|
+
|
|
180
179
|
auto param0 = py::convert_to<winrt::Windows::Devices::Enumeration::Pnp::PnpObjectUpdate>(args, 0);
|
|
181
180
|
|
|
182
181
|
self->obj.Update(param0);
|
|
@@ -197,14 +196,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
197
196
|
|
|
198
197
|
static PyObject* PnpObject_get_Id(py::wrapper::Windows::Devices::Enumeration::Pnp::PnpObject* self, void* /*unused*/) noexcept
|
|
199
198
|
{
|
|
200
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Enumeration.Pnp.PnpObject", L"Id"))
|
|
201
|
-
{
|
|
202
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
203
|
-
return nullptr;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
199
|
try
|
|
207
200
|
{
|
|
201
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Enumeration.Pnp.PnpObject", L"Id"))
|
|
202
|
+
{
|
|
203
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
204
|
+
return nullptr;
|
|
205
|
+
}
|
|
206
|
+
|
|
208
207
|
return py::convert(self->obj.Id());
|
|
209
208
|
}
|
|
210
209
|
catch (...)
|
|
@@ -216,14 +215,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
216
215
|
|
|
217
216
|
static PyObject* PnpObject_get_Properties(py::wrapper::Windows::Devices::Enumeration::Pnp::PnpObject* self, void* /*unused*/) noexcept
|
|
218
217
|
{
|
|
219
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Enumeration.Pnp.PnpObject", L"Properties"))
|
|
220
|
-
{
|
|
221
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
222
|
-
return nullptr;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
218
|
try
|
|
226
219
|
{
|
|
220
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Enumeration.Pnp.PnpObject", L"Properties"))
|
|
221
|
+
{
|
|
222
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
223
|
+
return nullptr;
|
|
224
|
+
}
|
|
225
|
+
|
|
227
226
|
return py::convert(self->obj.Properties());
|
|
228
227
|
}
|
|
229
228
|
catch (...)
|
|
@@ -235,14 +234,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
235
234
|
|
|
236
235
|
static PyObject* PnpObject_get_Type(py::wrapper::Windows::Devices::Enumeration::Pnp::PnpObject* self, void* /*unused*/) noexcept
|
|
237
236
|
{
|
|
238
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Enumeration.Pnp.PnpObject", L"Type"))
|
|
239
|
-
{
|
|
240
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
241
|
-
return nullptr;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
237
|
try
|
|
245
238
|
{
|
|
239
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Enumeration.Pnp.PnpObject", L"Type"))
|
|
240
|
+
{
|
|
241
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
242
|
+
return nullptr;
|
|
243
|
+
}
|
|
244
|
+
|
|
246
245
|
return py::convert(self->obj.Type());
|
|
247
246
|
}
|
|
248
247
|
catch (...)
|
|
@@ -290,23 +289,20 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
290
289
|
{ }
|
|
291
290
|
};
|
|
292
291
|
|
|
293
|
-
static PyType_Slot _type_slots_PnpObject[] =
|
|
294
|
-
{
|
|
292
|
+
static PyType_Slot _type_slots_PnpObject[] = {
|
|
295
293
|
{ Py_tp_new, reinterpret_cast<void*>(_new_PnpObject) },
|
|
296
294
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PnpObject) },
|
|
297
295
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_PnpObject) },
|
|
298
296
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_PnpObject) },
|
|
299
|
-
{ }
|
|
297
|
+
{ }
|
|
300
298
|
};
|
|
301
299
|
|
|
302
|
-
static PyType_Spec type_spec_PnpObject =
|
|
303
|
-
{
|
|
300
|
+
static PyType_Spec type_spec_PnpObject = {
|
|
304
301
|
"winrt._winrt_windows_devices_enumeration_pnp.PnpObject",
|
|
305
302
|
sizeof(py::wrapper::Windows::Devices::Enumeration::Pnp::PnpObject),
|
|
306
303
|
0,
|
|
307
304
|
Py_TPFLAGS_DEFAULT,
|
|
308
|
-
_type_slots_PnpObject
|
|
309
|
-
};
|
|
305
|
+
_type_slots_PnpObject};
|
|
310
306
|
|
|
311
307
|
static PyGetSetDef getset_PnpObject_Static[] = {
|
|
312
308
|
{ }
|
|
@@ -359,14 +355,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
359
355
|
|
|
360
356
|
if (arg_count == 0)
|
|
361
357
|
{
|
|
362
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectCollection", L"First", 0))
|
|
363
|
-
{
|
|
364
|
-
py::set_arg_count_version_error(0);
|
|
365
|
-
return nullptr;
|
|
366
|
-
}
|
|
367
|
-
|
|
368
358
|
try
|
|
369
359
|
{
|
|
360
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectCollection", L"First", 0))
|
|
361
|
+
{
|
|
362
|
+
py::set_arg_count_version_error(0);
|
|
363
|
+
return nullptr;
|
|
364
|
+
}
|
|
365
|
+
|
|
370
366
|
return py::convert(self->obj.First());
|
|
371
367
|
}
|
|
372
368
|
catch (...)
|
|
@@ -388,14 +384,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
388
384
|
|
|
389
385
|
if (arg_count == 1)
|
|
390
386
|
{
|
|
391
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectCollection", L"GetAt", 1))
|
|
392
|
-
{
|
|
393
|
-
py::set_arg_count_version_error(1);
|
|
394
|
-
return nullptr;
|
|
395
|
-
}
|
|
396
|
-
|
|
397
387
|
try
|
|
398
388
|
{
|
|
389
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectCollection", L"GetAt", 1))
|
|
390
|
+
{
|
|
391
|
+
py::set_arg_count_version_error(1);
|
|
392
|
+
return nullptr;
|
|
393
|
+
}
|
|
394
|
+
|
|
399
395
|
auto param0 = py::convert_to<uint32_t>(args, 0);
|
|
400
396
|
|
|
401
397
|
return py::convert(self->obj.GetAt(param0));
|
|
@@ -419,14 +415,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
419
415
|
|
|
420
416
|
if (arg_count == 2)
|
|
421
417
|
{
|
|
422
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectCollection", L"GetMany", 1))
|
|
423
|
-
{
|
|
424
|
-
py::set_arg_count_version_error(1);
|
|
425
|
-
return nullptr;
|
|
426
|
-
}
|
|
427
|
-
|
|
428
418
|
try
|
|
429
419
|
{
|
|
420
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectCollection", L"GetMany", 1))
|
|
421
|
+
{
|
|
422
|
+
py::set_arg_count_version_error(1);
|
|
423
|
+
return nullptr;
|
|
424
|
+
}
|
|
425
|
+
|
|
430
426
|
auto param0 = py::convert_to<uint32_t>(args, 0);
|
|
431
427
|
auto param1 = py::convert_to<py::pybuf_view<winrt::Windows::Devices::Enumeration::Pnp::PnpObject, true>>(args, 1);
|
|
432
428
|
|
|
@@ -451,16 +447,16 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
451
447
|
|
|
452
448
|
if (arg_count == 1)
|
|
453
449
|
{
|
|
454
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectCollection", L"IndexOf", 1))
|
|
455
|
-
{
|
|
456
|
-
py::set_arg_count_version_error(1);
|
|
457
|
-
return nullptr;
|
|
458
|
-
}
|
|
459
|
-
|
|
460
450
|
try
|
|
461
451
|
{
|
|
452
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectCollection", L"IndexOf", 1))
|
|
453
|
+
{
|
|
454
|
+
py::set_arg_count_version_error(1);
|
|
455
|
+
return nullptr;
|
|
456
|
+
}
|
|
457
|
+
|
|
462
458
|
auto param0 = py::convert_to<winrt::Windows::Devices::Enumeration::Pnp::PnpObject>(args, 0);
|
|
463
|
-
uint32_t param1
|
|
459
|
+
uint32_t param1{};
|
|
464
460
|
|
|
465
461
|
auto return_value = self->obj.IndexOf(param0, param1);
|
|
466
462
|
|
|
@@ -491,14 +487,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
491
487
|
|
|
492
488
|
static PyObject* PnpObjectCollection_get_Size(py::wrapper::Windows::Devices::Enumeration::Pnp::PnpObjectCollection* self, void* /*unused*/) noexcept
|
|
493
489
|
{
|
|
494
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectCollection", L"Size"))
|
|
495
|
-
{
|
|
496
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
497
|
-
return nullptr;
|
|
498
|
-
}
|
|
499
|
-
|
|
500
490
|
try
|
|
501
491
|
{
|
|
492
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectCollection", L"Size"))
|
|
493
|
+
{
|
|
494
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
495
|
+
return nullptr;
|
|
496
|
+
}
|
|
497
|
+
|
|
502
498
|
return py::convert(self->obj.Size());
|
|
503
499
|
}
|
|
504
500
|
catch (...)
|
|
@@ -596,26 +592,19 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
596
592
|
|
|
597
593
|
if (!PySlice_Check(slice))
|
|
598
594
|
{
|
|
599
|
-
PyErr_Format(
|
|
600
|
-
PyExc_TypeError,
|
|
601
|
-
"indicies must be integers, not '%s'",
|
|
602
|
-
Py_TYPE(slice)->tp_name);
|
|
595
|
+
PyErr_Format(PyExc_TypeError, "indices must be integers, not '%s'", Py_TYPE(slice)->tp_name);
|
|
603
596
|
}
|
|
604
597
|
|
|
605
598
|
Py_ssize_t start, stop, step, length;
|
|
606
599
|
|
|
607
|
-
if (PySlice_GetIndicesEx(
|
|
608
|
-
slice, self->obj.Size(), &start, &stop, &step, &length)
|
|
609
|
-
< 0)
|
|
600
|
+
if (PySlice_GetIndicesEx(slice, self->obj.Size(), &start, &stop, &step, &length) < 0)
|
|
610
601
|
{
|
|
611
602
|
return nullptr;
|
|
612
603
|
}
|
|
613
604
|
|
|
614
605
|
if (step != 1)
|
|
615
606
|
{
|
|
616
|
-
PyErr_SetString(
|
|
617
|
-
PyExc_NotImplementedError,
|
|
618
|
-
"slices with step other than 1 are not implemented");
|
|
607
|
+
PyErr_SetString(PyExc_NotImplementedError, "slices with step other than 1 are not implemented");
|
|
619
608
|
return nullptr;
|
|
620
609
|
}
|
|
621
610
|
|
|
@@ -625,15 +614,12 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
625
614
|
|
|
626
615
|
if (count != static_cast<uint32_t>(length))
|
|
627
616
|
{
|
|
628
|
-
PyErr_Format(
|
|
629
|
-
PyExc_RuntimeError,
|
|
630
|
-
"returned count %d did not match requested length %zd",
|
|
631
|
-
count,
|
|
632
|
-
length);
|
|
617
|
+
PyErr_Format(PyExc_RuntimeError, "returned count %d did not match requested length %zd", count, length);
|
|
633
618
|
return nullptr;
|
|
634
619
|
}
|
|
635
620
|
|
|
636
|
-
return convert(items);
|
|
621
|
+
return convert(items);
|
|
622
|
+
}
|
|
637
623
|
catch (...)
|
|
638
624
|
{
|
|
639
625
|
py::to_PyErr();
|
|
@@ -656,8 +642,7 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
656
642
|
{ }
|
|
657
643
|
};
|
|
658
644
|
|
|
659
|
-
static PyType_Slot _type_slots_PnpObjectCollection[] =
|
|
660
|
-
{
|
|
645
|
+
static PyType_Slot _type_slots_PnpObjectCollection[] = {
|
|
661
646
|
{ Py_tp_new, reinterpret_cast<void*>(_new_PnpObjectCollection) },
|
|
662
647
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PnpObjectCollection) },
|
|
663
648
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_PnpObjectCollection) },
|
|
@@ -666,17 +651,15 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
666
651
|
{ Py_sq_length, reinterpret_cast<void*>(_seq_length_PnpObjectCollection) },
|
|
667
652
|
{ Py_sq_item, reinterpret_cast<void*>(_seq_item_PnpObjectCollection) },
|
|
668
653
|
{ Py_mp_subscript, reinterpret_cast<void*>(_seq_subscript_PnpObjectCollection) },
|
|
669
|
-
{ }
|
|
654
|
+
{ }
|
|
670
655
|
};
|
|
671
656
|
|
|
672
|
-
static PyType_Spec type_spec_PnpObjectCollection =
|
|
673
|
-
{
|
|
657
|
+
static PyType_Spec type_spec_PnpObjectCollection = {
|
|
674
658
|
"winrt._winrt_windows_devices_enumeration_pnp.PnpObjectCollection",
|
|
675
659
|
sizeof(py::wrapper::Windows::Devices::Enumeration::Pnp::PnpObjectCollection),
|
|
676
660
|
0,
|
|
677
661
|
Py_TPFLAGS_DEFAULT,
|
|
678
|
-
_type_slots_PnpObjectCollection
|
|
679
|
-
};
|
|
662
|
+
_type_slots_PnpObjectCollection};
|
|
680
663
|
|
|
681
664
|
// ----- PnpObjectUpdate class --------------------
|
|
682
665
|
|
|
@@ -697,14 +680,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
697
680
|
|
|
698
681
|
static PyObject* PnpObjectUpdate_get_Id(py::wrapper::Windows::Devices::Enumeration::Pnp::PnpObjectUpdate* self, void* /*unused*/) noexcept
|
|
699
682
|
{
|
|
700
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectUpdate", L"Id"))
|
|
701
|
-
{
|
|
702
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
703
|
-
return nullptr;
|
|
704
|
-
}
|
|
705
|
-
|
|
706
683
|
try
|
|
707
684
|
{
|
|
685
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectUpdate", L"Id"))
|
|
686
|
+
{
|
|
687
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
688
|
+
return nullptr;
|
|
689
|
+
}
|
|
690
|
+
|
|
708
691
|
return py::convert(self->obj.Id());
|
|
709
692
|
}
|
|
710
693
|
catch (...)
|
|
@@ -716,14 +699,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
716
699
|
|
|
717
700
|
static PyObject* PnpObjectUpdate_get_Properties(py::wrapper::Windows::Devices::Enumeration::Pnp::PnpObjectUpdate* self, void* /*unused*/) noexcept
|
|
718
701
|
{
|
|
719
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectUpdate", L"Properties"))
|
|
720
|
-
{
|
|
721
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
722
|
-
return nullptr;
|
|
723
|
-
}
|
|
724
|
-
|
|
725
702
|
try
|
|
726
703
|
{
|
|
704
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectUpdate", L"Properties"))
|
|
705
|
+
{
|
|
706
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
707
|
+
return nullptr;
|
|
708
|
+
}
|
|
709
|
+
|
|
727
710
|
return py::convert(self->obj.Properties());
|
|
728
711
|
}
|
|
729
712
|
catch (...)
|
|
@@ -735,14 +718,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
735
718
|
|
|
736
719
|
static PyObject* PnpObjectUpdate_get_Type(py::wrapper::Windows::Devices::Enumeration::Pnp::PnpObjectUpdate* self, void* /*unused*/) noexcept
|
|
737
720
|
{
|
|
738
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectUpdate", L"Type"))
|
|
739
|
-
{
|
|
740
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
741
|
-
return nullptr;
|
|
742
|
-
}
|
|
743
|
-
|
|
744
721
|
try
|
|
745
722
|
{
|
|
723
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectUpdate", L"Type"))
|
|
724
|
+
{
|
|
725
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
726
|
+
return nullptr;
|
|
727
|
+
}
|
|
728
|
+
|
|
746
729
|
return py::convert(self->obj.Type());
|
|
747
730
|
}
|
|
748
731
|
catch (...)
|
|
@@ -789,23 +772,20 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
789
772
|
{ }
|
|
790
773
|
};
|
|
791
774
|
|
|
792
|
-
static PyType_Slot _type_slots_PnpObjectUpdate[] =
|
|
793
|
-
{
|
|
775
|
+
static PyType_Slot _type_slots_PnpObjectUpdate[] = {
|
|
794
776
|
{ Py_tp_new, reinterpret_cast<void*>(_new_PnpObjectUpdate) },
|
|
795
777
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PnpObjectUpdate) },
|
|
796
778
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_PnpObjectUpdate) },
|
|
797
779
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_PnpObjectUpdate) },
|
|
798
|
-
{ }
|
|
780
|
+
{ }
|
|
799
781
|
};
|
|
800
782
|
|
|
801
|
-
static PyType_Spec type_spec_PnpObjectUpdate =
|
|
802
|
-
{
|
|
783
|
+
static PyType_Spec type_spec_PnpObjectUpdate = {
|
|
803
784
|
"winrt._winrt_windows_devices_enumeration_pnp.PnpObjectUpdate",
|
|
804
785
|
sizeof(py::wrapper::Windows::Devices::Enumeration::Pnp::PnpObjectUpdate),
|
|
805
786
|
0,
|
|
806
787
|
Py_TPFLAGS_DEFAULT,
|
|
807
|
-
_type_slots_PnpObjectUpdate
|
|
808
|
-
};
|
|
788
|
+
_type_slots_PnpObjectUpdate};
|
|
809
789
|
|
|
810
790
|
// ----- PnpObjectWatcher class --------------------
|
|
811
791
|
|
|
@@ -830,14 +810,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
830
810
|
|
|
831
811
|
if (arg_count == 0)
|
|
832
812
|
{
|
|
833
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectWatcher", L"Start", 0))
|
|
834
|
-
{
|
|
835
|
-
py::set_arg_count_version_error(0);
|
|
836
|
-
return nullptr;
|
|
837
|
-
}
|
|
838
|
-
|
|
839
813
|
try
|
|
840
814
|
{
|
|
815
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectWatcher", L"Start", 0))
|
|
816
|
+
{
|
|
817
|
+
py::set_arg_count_version_error(0);
|
|
818
|
+
return nullptr;
|
|
819
|
+
}
|
|
820
|
+
|
|
841
821
|
self->obj.Start();
|
|
842
822
|
Py_RETURN_NONE;
|
|
843
823
|
}
|
|
@@ -860,14 +840,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
860
840
|
|
|
861
841
|
if (arg_count == 0)
|
|
862
842
|
{
|
|
863
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectWatcher", L"Stop", 0))
|
|
864
|
-
{
|
|
865
|
-
py::set_arg_count_version_error(0);
|
|
866
|
-
return nullptr;
|
|
867
|
-
}
|
|
868
|
-
|
|
869
843
|
try
|
|
870
844
|
{
|
|
845
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectWatcher", L"Stop", 0))
|
|
846
|
+
{
|
|
847
|
+
py::set_arg_count_version_error(0);
|
|
848
|
+
return nullptr;
|
|
849
|
+
}
|
|
850
|
+
|
|
871
851
|
self->obj.Stop();
|
|
872
852
|
Py_RETURN_NONE;
|
|
873
853
|
}
|
|
@@ -886,14 +866,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
886
866
|
|
|
887
867
|
static PyObject* PnpObjectWatcher_get_Status(py::wrapper::Windows::Devices::Enumeration::Pnp::PnpObjectWatcher* self, void* /*unused*/) noexcept
|
|
888
868
|
{
|
|
889
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectWatcher", L"Status"))
|
|
890
|
-
{
|
|
891
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
892
|
-
return nullptr;
|
|
893
|
-
}
|
|
894
|
-
|
|
895
869
|
try
|
|
896
870
|
{
|
|
871
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectWatcher", L"Status"))
|
|
872
|
+
{
|
|
873
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
874
|
+
return nullptr;
|
|
875
|
+
}
|
|
876
|
+
|
|
897
877
|
return py::convert(self->obj.Status());
|
|
898
878
|
}
|
|
899
879
|
catch (...)
|
|
@@ -905,14 +885,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
905
885
|
|
|
906
886
|
static PyObject* PnpObjectWatcher_add_Added(py::wrapper::Windows::Devices::Enumeration::Pnp::PnpObjectWatcher* self, PyObject* arg) noexcept
|
|
907
887
|
{
|
|
908
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectWatcher", L"Added"))
|
|
909
|
-
{
|
|
910
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
911
|
-
return nullptr;
|
|
912
|
-
}
|
|
913
|
-
|
|
914
888
|
try
|
|
915
889
|
{
|
|
890
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectWatcher", L"Added"))
|
|
891
|
+
{
|
|
892
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
893
|
+
return nullptr;
|
|
894
|
+
}
|
|
895
|
+
|
|
916
896
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Devices::Enumeration::Pnp::PnpObjectWatcher, winrt::Windows::Devices::Enumeration::Pnp::PnpObject>>(arg);
|
|
917
897
|
|
|
918
898
|
return py::convert(self->obj.Added(param0));
|
|
@@ -926,14 +906,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
926
906
|
|
|
927
907
|
static PyObject* PnpObjectWatcher_remove_Added(py::wrapper::Windows::Devices::Enumeration::Pnp::PnpObjectWatcher* self, PyObject* arg) noexcept
|
|
928
908
|
{
|
|
929
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectWatcher", L"Added"))
|
|
930
|
-
{
|
|
931
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
932
|
-
return nullptr;
|
|
933
|
-
}
|
|
934
|
-
|
|
935
909
|
try
|
|
936
910
|
{
|
|
911
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectWatcher", L"Added"))
|
|
912
|
+
{
|
|
913
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
914
|
+
return nullptr;
|
|
915
|
+
}
|
|
916
|
+
|
|
937
917
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
938
918
|
|
|
939
919
|
self->obj.Added(param0);
|
|
@@ -948,14 +928,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
948
928
|
|
|
949
929
|
static PyObject* PnpObjectWatcher_add_EnumerationCompleted(py::wrapper::Windows::Devices::Enumeration::Pnp::PnpObjectWatcher* self, PyObject* arg) noexcept
|
|
950
930
|
{
|
|
951
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectWatcher", L"EnumerationCompleted"))
|
|
952
|
-
{
|
|
953
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
954
|
-
return nullptr;
|
|
955
|
-
}
|
|
956
|
-
|
|
957
931
|
try
|
|
958
932
|
{
|
|
933
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectWatcher", L"EnumerationCompleted"))
|
|
934
|
+
{
|
|
935
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
936
|
+
return nullptr;
|
|
937
|
+
}
|
|
938
|
+
|
|
959
939
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Devices::Enumeration::Pnp::PnpObjectWatcher, winrt::Windows::Foundation::IInspectable>>(arg);
|
|
960
940
|
|
|
961
941
|
return py::convert(self->obj.EnumerationCompleted(param0));
|
|
@@ -969,14 +949,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
969
949
|
|
|
970
950
|
static PyObject* PnpObjectWatcher_remove_EnumerationCompleted(py::wrapper::Windows::Devices::Enumeration::Pnp::PnpObjectWatcher* self, PyObject* arg) noexcept
|
|
971
951
|
{
|
|
972
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectWatcher", L"EnumerationCompleted"))
|
|
973
|
-
{
|
|
974
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
975
|
-
return nullptr;
|
|
976
|
-
}
|
|
977
|
-
|
|
978
952
|
try
|
|
979
953
|
{
|
|
954
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectWatcher", L"EnumerationCompleted"))
|
|
955
|
+
{
|
|
956
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
957
|
+
return nullptr;
|
|
958
|
+
}
|
|
959
|
+
|
|
980
960
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
981
961
|
|
|
982
962
|
self->obj.EnumerationCompleted(param0);
|
|
@@ -991,14 +971,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
991
971
|
|
|
992
972
|
static PyObject* PnpObjectWatcher_add_Removed(py::wrapper::Windows::Devices::Enumeration::Pnp::PnpObjectWatcher* self, PyObject* arg) noexcept
|
|
993
973
|
{
|
|
994
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectWatcher", L"Removed"))
|
|
995
|
-
{
|
|
996
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
997
|
-
return nullptr;
|
|
998
|
-
}
|
|
999
|
-
|
|
1000
974
|
try
|
|
1001
975
|
{
|
|
976
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectWatcher", L"Removed"))
|
|
977
|
+
{
|
|
978
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
979
|
+
return nullptr;
|
|
980
|
+
}
|
|
981
|
+
|
|
1002
982
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Devices::Enumeration::Pnp::PnpObjectWatcher, winrt::Windows::Devices::Enumeration::Pnp::PnpObjectUpdate>>(arg);
|
|
1003
983
|
|
|
1004
984
|
return py::convert(self->obj.Removed(param0));
|
|
@@ -1012,14 +992,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
1012
992
|
|
|
1013
993
|
static PyObject* PnpObjectWatcher_remove_Removed(py::wrapper::Windows::Devices::Enumeration::Pnp::PnpObjectWatcher* self, PyObject* arg) noexcept
|
|
1014
994
|
{
|
|
1015
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectWatcher", L"Removed"))
|
|
1016
|
-
{
|
|
1017
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
1018
|
-
return nullptr;
|
|
1019
|
-
}
|
|
1020
|
-
|
|
1021
995
|
try
|
|
1022
996
|
{
|
|
997
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectWatcher", L"Removed"))
|
|
998
|
+
{
|
|
999
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
1000
|
+
return nullptr;
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1023
1003
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
1024
1004
|
|
|
1025
1005
|
self->obj.Removed(param0);
|
|
@@ -1034,14 +1014,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
1034
1014
|
|
|
1035
1015
|
static PyObject* PnpObjectWatcher_add_Stopped(py::wrapper::Windows::Devices::Enumeration::Pnp::PnpObjectWatcher* self, PyObject* arg) noexcept
|
|
1036
1016
|
{
|
|
1037
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectWatcher", L"Stopped"))
|
|
1038
|
-
{
|
|
1039
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
1040
|
-
return nullptr;
|
|
1041
|
-
}
|
|
1042
|
-
|
|
1043
1017
|
try
|
|
1044
1018
|
{
|
|
1019
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectWatcher", L"Stopped"))
|
|
1020
|
+
{
|
|
1021
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
1022
|
+
return nullptr;
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1045
1025
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Devices::Enumeration::Pnp::PnpObjectWatcher, winrt::Windows::Foundation::IInspectable>>(arg);
|
|
1046
1026
|
|
|
1047
1027
|
return py::convert(self->obj.Stopped(param0));
|
|
@@ -1055,14 +1035,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
1055
1035
|
|
|
1056
1036
|
static PyObject* PnpObjectWatcher_remove_Stopped(py::wrapper::Windows::Devices::Enumeration::Pnp::PnpObjectWatcher* self, PyObject* arg) noexcept
|
|
1057
1037
|
{
|
|
1058
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectWatcher", L"Stopped"))
|
|
1059
|
-
{
|
|
1060
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
1061
|
-
return nullptr;
|
|
1062
|
-
}
|
|
1063
|
-
|
|
1064
1038
|
try
|
|
1065
1039
|
{
|
|
1040
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectWatcher", L"Stopped"))
|
|
1041
|
+
{
|
|
1042
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
1043
|
+
return nullptr;
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1066
1046
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
1067
1047
|
|
|
1068
1048
|
self->obj.Stopped(param0);
|
|
@@ -1077,14 +1057,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
1077
1057
|
|
|
1078
1058
|
static PyObject* PnpObjectWatcher_add_Updated(py::wrapper::Windows::Devices::Enumeration::Pnp::PnpObjectWatcher* self, PyObject* arg) noexcept
|
|
1079
1059
|
{
|
|
1080
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectWatcher", L"Updated"))
|
|
1081
|
-
{
|
|
1082
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
1083
|
-
return nullptr;
|
|
1084
|
-
}
|
|
1085
|
-
|
|
1086
1060
|
try
|
|
1087
1061
|
{
|
|
1062
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectWatcher", L"Updated"))
|
|
1063
|
+
{
|
|
1064
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
1065
|
+
return nullptr;
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1088
1068
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Devices::Enumeration::Pnp::PnpObjectWatcher, winrt::Windows::Devices::Enumeration::Pnp::PnpObjectUpdate>>(arg);
|
|
1089
1069
|
|
|
1090
1070
|
return py::convert(self->obj.Updated(param0));
|
|
@@ -1098,14 +1078,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
1098
1078
|
|
|
1099
1079
|
static PyObject* PnpObjectWatcher_remove_Updated(py::wrapper::Windows::Devices::Enumeration::Pnp::PnpObjectWatcher* self, PyObject* arg) noexcept
|
|
1100
1080
|
{
|
|
1101
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectWatcher", L"Updated"))
|
|
1102
|
-
{
|
|
1103
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
1104
|
-
return nullptr;
|
|
1105
|
-
}
|
|
1106
|
-
|
|
1107
1081
|
try
|
|
1108
1082
|
{
|
|
1083
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectWatcher", L"Updated"))
|
|
1084
|
+
{
|
|
1085
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
1086
|
+
return nullptr;
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1109
1089
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
1110
1090
|
|
|
1111
1091
|
self->obj.Updated(param0);
|
|
@@ -1165,39 +1145,35 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
1165
1145
|
{ }
|
|
1166
1146
|
};
|
|
1167
1147
|
|
|
1168
|
-
static PyType_Slot _type_slots_PnpObjectWatcher[] =
|
|
1169
|
-
{
|
|
1148
|
+
static PyType_Slot _type_slots_PnpObjectWatcher[] = {
|
|
1170
1149
|
{ Py_tp_new, reinterpret_cast<void*>(_new_PnpObjectWatcher) },
|
|
1171
1150
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PnpObjectWatcher) },
|
|
1172
1151
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_PnpObjectWatcher) },
|
|
1173
1152
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_PnpObjectWatcher) },
|
|
1174
|
-
{ }
|
|
1153
|
+
{ }
|
|
1175
1154
|
};
|
|
1176
1155
|
|
|
1177
|
-
static PyType_Spec type_spec_PnpObjectWatcher =
|
|
1178
|
-
{
|
|
1156
|
+
static PyType_Spec type_spec_PnpObjectWatcher = {
|
|
1179
1157
|
"winrt._winrt_windows_devices_enumeration_pnp.PnpObjectWatcher",
|
|
1180
1158
|
sizeof(py::wrapper::Windows::Devices::Enumeration::Pnp::PnpObjectWatcher),
|
|
1181
1159
|
0,
|
|
1182
1160
|
Py_TPFLAGS_DEFAULT,
|
|
1183
|
-
_type_slots_PnpObjectWatcher
|
|
1184
|
-
};
|
|
1161
|
+
_type_slots_PnpObjectWatcher};
|
|
1185
1162
|
|
|
1186
1163
|
// ----- Windows.Devices.Enumeration.Pnp Initialization --------------------
|
|
1187
|
-
PyDoc_STRVAR(module_doc, "Windows::Devices::Enumeration::Pnp");
|
|
1188
1164
|
|
|
1165
|
+
PyDoc_STRVAR(module_doc, "Windows.Devices.Enumeration.Pnp");
|
|
1189
1166
|
|
|
1190
|
-
static PyModuleDef module_def
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1167
|
+
static PyModuleDef module_def = {
|
|
1168
|
+
PyModuleDef_HEAD_INIT,
|
|
1169
|
+
"_winrt_windows_devices_enumeration_pnp",
|
|
1170
|
+
module_doc,
|
|
1171
|
+
0,
|
|
1172
|
+
nullptr,
|
|
1173
|
+
nullptr,
|
|
1174
|
+
nullptr,
|
|
1175
|
+
nullptr,
|
|
1176
|
+
nullptr};
|
|
1201
1177
|
} // py::cpp::Windows::Devices::Enumeration::Pnp
|
|
1202
1178
|
|
|
1203
1179
|
PyMODINIT_FUNC PyInit__winrt_windows_devices_enumeration_pnp(void) noexcept
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
2
|
|
|
3
3
|
[build-system]
|
|
4
|
-
requires = ["setuptools", "
|
|
4
|
+
requires = ["setuptools", "winrt-sdk"]
|
|
5
5
|
build-backend = "setuptools.build_meta"
|
|
6
6
|
|
|
7
7
|
[project]
|
|
@@ -30,7 +30,7 @@ dependencies = { file = "requirements.txt" }
|
|
|
30
30
|
optional-dependencies.all = { file = "all-requirements.txt" }
|
|
31
31
|
|
|
32
32
|
[tool.setuptools.package-data]
|
|
33
|
-
|
|
33
|
+
"*" = ["*.pyi", "py.typed"]
|
|
34
34
|
|
|
35
35
|
[tool.cibuildwheel]
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.1.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.
|
|
3
|
+
winrt-runtime==2.1.0
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
+
|
|
3
|
+
from setuptools import Extension, setup
|
|
4
|
+
from setuptools.command.build_ext import build_ext
|
|
5
|
+
from winrt_sdk import get_include_dirs
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class build_ext_ex(build_ext):
|
|
9
|
+
def build_extension(self, ext):
|
|
10
|
+
if self.compiler.compiler_type == "msvc":
|
|
11
|
+
ext.extra_compile_args = ["/std:c++20", "/permissive-"]
|
|
12
|
+
elif self.compiler.compiler_type == "mingw32":
|
|
13
|
+
ext.extra_compile_args = ["-std=c++20", "-D_WIN32_WINNT=_WIN32_WINNT_WIN10"]
|
|
14
|
+
ext.extra_link_args = ["-loleaut32"]
|
|
15
|
+
else:
|
|
16
|
+
raise ValueError(f"Unsupported compiler: {self.compiler.compiler_type}")
|
|
17
|
+
|
|
18
|
+
build_ext.build_extension(self, ext)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
setup(
|
|
22
|
+
cmdclass = {'build_ext': build_ext_ex},
|
|
23
|
+
ext_modules=[
|
|
24
|
+
Extension(
|
|
25
|
+
"winrt._winrt_windows_devices_enumeration_pnp",
|
|
26
|
+
sources=["py.Windows.Devices.Enumeration.Pnp.cpp"],
|
|
27
|
+
include_dirs=get_include_dirs(),
|
|
28
|
+
libraries=["windowsapp"],
|
|
29
|
+
)
|
|
30
|
+
],
|
|
31
|
+
)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
2
|
|
|
3
3
|
import datetime
|
|
4
4
|
import sys
|
|
@@ -9,9 +9,9 @@ from builtins import property as _property
|
|
|
9
9
|
|
|
10
10
|
import winrt._winrt
|
|
11
11
|
import winrt.system
|
|
12
|
-
import winrt.windows.devices.enumeration
|
|
13
|
-
import winrt.windows.foundation
|
|
14
|
-
import winrt.windows.foundation.collections
|
|
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
15
|
|
|
16
16
|
from winrt.windows.devices.enumeration.pnp import PnpObjectType
|
|
17
17
|
|
|
@@ -19,15 +19,15 @@ Self = typing.TypeVar('Self')
|
|
|
19
19
|
|
|
20
20
|
@typing.final
|
|
21
21
|
class PnpObject_Static(type):
|
|
22
|
-
def create_from_id_async(cls, type: PnpObjectType, id: str, requested_properties: typing.Iterable[str], /) ->
|
|
22
|
+
def create_from_id_async(cls, type: PnpObjectType, id: str, requested_properties: typing.Iterable[str], /) -> windows_foundation.IAsyncOperation[PnpObject]: ...
|
|
23
23
|
@typing.overload
|
|
24
24
|
def create_watcher(cls, type: PnpObjectType, requested_properties: typing.Iterable[str], /) -> typing.Optional[PnpObjectWatcher]: ...
|
|
25
25
|
@typing.overload
|
|
26
26
|
def create_watcher(cls, type: PnpObjectType, requested_properties: typing.Iterable[str], aqs_filter: str, /) -> typing.Optional[PnpObjectWatcher]: ...
|
|
27
27
|
@typing.overload
|
|
28
|
-
def find_all_async(cls, type: PnpObjectType, requested_properties: typing.Iterable[str], /) ->
|
|
28
|
+
def find_all_async(cls, type: PnpObjectType, requested_properties: typing.Iterable[str], /) -> windows_foundation.IAsyncOperation[PnpObjectCollection]: ...
|
|
29
29
|
@typing.overload
|
|
30
|
-
def find_all_async(cls, type: PnpObjectType, requested_properties: typing.Iterable[str], aqs_filter: str, /) ->
|
|
30
|
+
def find_all_async(cls, type: PnpObjectType, requested_properties: typing.Iterable[str], aqs_filter: str, /) -> windows_foundation.IAsyncOperation[PnpObjectCollection]: ...
|
|
31
31
|
|
|
32
32
|
@typing.final
|
|
33
33
|
class PnpObject(winrt.system.Object, metaclass=PnpObject_Static):
|
|
@@ -37,21 +37,21 @@ class PnpObject(winrt.system.Object, metaclass=PnpObject_Static):
|
|
|
37
37
|
@_property
|
|
38
38
|
def id(self) -> str: ...
|
|
39
39
|
@_property
|
|
40
|
-
def properties(self) -> typing.Optional[
|
|
40
|
+
def properties(self) -> typing.Optional[windows_foundation_collections.IMapView[str, winrt.system.Object]]: ...
|
|
41
41
|
@_property
|
|
42
42
|
def type(self) -> PnpObjectType: ...
|
|
43
43
|
|
|
44
44
|
@typing.final
|
|
45
45
|
class PnpObjectCollection(winrt.system.Object, winrt._winrt.Sequence[PnpObject]):
|
|
46
46
|
def __len__(self) -> int: ...
|
|
47
|
-
def __iter__(self) ->
|
|
47
|
+
def __iter__(self) -> windows_foundation_collections.IIterator[PnpObject]: ...
|
|
48
48
|
@typing.overload
|
|
49
49
|
def __getitem__(self, index: typing.SupportsIndex) -> PnpObject: ...
|
|
50
50
|
@typing.overload
|
|
51
51
|
def __getitem__(self, index: slice) -> winrt.system.Array[PnpObject]: ...
|
|
52
52
|
@staticmethod
|
|
53
53
|
def _from(obj: winrt.system.Object, /) -> PnpObjectCollection: ...
|
|
54
|
-
def first(self) -> typing.Optional[
|
|
54
|
+
def first(self) -> typing.Optional[windows_foundation_collections.IIterator[PnpObject]]: ...
|
|
55
55
|
def get_at(self, index: winrt.system.UInt32, /) -> typing.Optional[PnpObject]: ...
|
|
56
56
|
def get_many(self, start_index: winrt.system.UInt32, items: winrt.system.Array[PnpObject], /) -> winrt.system.UInt32: ...
|
|
57
57
|
def index_of(self, value: typing.Optional[PnpObject], /) -> typing.Tuple[bool, winrt.system.UInt32]: ...
|
|
@@ -65,7 +65,7 @@ class PnpObjectUpdate(winrt.system.Object):
|
|
|
65
65
|
@_property
|
|
66
66
|
def id(self) -> str: ...
|
|
67
67
|
@_property
|
|
68
|
-
def properties(self) -> typing.Optional[
|
|
68
|
+
def properties(self) -> typing.Optional[windows_foundation_collections.IMapView[str, winrt.system.Object]]: ...
|
|
69
69
|
@_property
|
|
70
70
|
def type(self) -> PnpObjectType: ...
|
|
71
71
|
|
|
@@ -75,16 +75,16 @@ class PnpObjectWatcher(winrt.system.Object):
|
|
|
75
75
|
def _from(obj: winrt.system.Object, /) -> PnpObjectWatcher: ...
|
|
76
76
|
def start(self) -> None: ...
|
|
77
77
|
def stop(self) -> None: ...
|
|
78
|
-
def add_added(self, handler:
|
|
79
|
-
def remove_added(self, token:
|
|
80
|
-
def add_enumeration_completed(self, handler:
|
|
81
|
-
def remove_enumeration_completed(self, token:
|
|
82
|
-
def add_removed(self, handler:
|
|
83
|
-
def remove_removed(self, token:
|
|
84
|
-
def add_stopped(self, handler:
|
|
85
|
-
def remove_stopped(self, token:
|
|
86
|
-
def add_updated(self, handler:
|
|
87
|
-
def remove_updated(self, token:
|
|
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
88
|
@_property
|
|
89
|
-
def status(self) ->
|
|
89
|
+
def status(self) -> windows_devices_enumeration.DeviceWatcherStatus: ...
|
|
90
90
|
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Devices.Enumeration.Pnp
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -12,7 +12,11 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Requires-Python: <3.13,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: winrt-runtime==2.1.0
|
|
15
16
|
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.Devices.Enumeration[all]==2.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
|
|
16
20
|
|
|
17
21
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
22
|
|
|
@@ -7,6 +7,7 @@ requirements.txt
|
|
|
7
7
|
setup.py
|
|
8
8
|
winrt/_winrt_windows_devices_enumeration_pnp.pyi
|
|
9
9
|
winrt/windows/devices/enumeration/pnp/__init__.py
|
|
10
|
+
winrt/windows/devices/enumeration/pnp/py.typed
|
|
10
11
|
winrt_Windows.Devices.Enumeration.Pnp.egg-info/PKG-INFO
|
|
11
12
|
winrt_Windows.Devices.Enumeration.Pnp.egg-info/SOURCES.txt
|
|
12
13
|
winrt_Windows.Devices.Enumeration.Pnp.egg-info/dependency_links.txt
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.0.0-beta.2
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
-
|
|
3
|
-
from setuptools import Extension, setup
|
|
4
|
-
from winrt_sdk import get_include_dirs
|
|
5
|
-
|
|
6
|
-
setup(
|
|
7
|
-
ext_modules=[
|
|
8
|
-
Extension(
|
|
9
|
-
"winrt._winrt_windows_devices_enumeration_pnp",
|
|
10
|
-
sources=["py.Windows.Devices.Enumeration.Pnp.cpp"],
|
|
11
|
-
include_dirs=get_include_dirs(),
|
|
12
|
-
extra_compile_args=["/std:c++20", "/permissive-"],
|
|
13
|
-
libraries=["windowsapp"],
|
|
14
|
-
)
|
|
15
|
-
],
|
|
16
|
-
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|