winrt-Windows.Devices.Adc.Provider 2.0.1__tar.gz → 2.2.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_adc_provider-2.0.1 → winrt_windows_devices_adc_provider-2.2.0}/PKG-INFO +4 -4
- {winrt_windows_devices_adc_provider-2.0.1 → winrt_windows_devices_adc_provider-2.2.0}/all-requirements.txt +2 -2
- {winrt_windows_devices_adc_provider-2.0.1 → winrt_windows_devices_adc_provider-2.2.0}/py.Windows.Devices.Adc.Provider.cpp +167 -96
- {winrt_windows_devices_adc_provider-2.0.1 → winrt_windows_devices_adc_provider-2.2.0}/pyproject.toml +3 -2
- winrt_windows_devices_adc_provider-2.2.0/pywinrt-version.txt +1 -0
- {winrt_windows_devices_adc_provider-2.0.1 → winrt_windows_devices_adc_provider-2.2.0}/requirements.txt +2 -2
- {winrt_windows_devices_adc_provider-2.0.1 → winrt_windows_devices_adc_provider-2.2.0}/winrt/_winrt_windows_devices_adc_provider.pyi +3 -3
- {winrt_windows_devices_adc_provider-2.0.1 → winrt_windows_devices_adc_provider-2.2.0}/winrt/windows/devices/adc/provider/__init__.py +1 -1
- {winrt_windows_devices_adc_provider-2.0.1 → winrt_windows_devices_adc_provider-2.2.0}/winrt_Windows.Devices.Adc.Provider.egg-info/PKG-INFO +4 -4
- winrt_windows_devices_adc_provider-2.2.0/winrt_Windows.Devices.Adc.Provider.egg-info/requires.txt +4 -0
- winrt_windows_devices_adc_provider-2.0.1/pywinrt-version.txt +0 -1
- winrt_windows_devices_adc_provider-2.0.1/winrt_Windows.Devices.Adc.Provider.egg-info/requires.txt +0 -4
- {winrt_windows_devices_adc_provider-2.0.1 → winrt_windows_devices_adc_provider-2.2.0}/README.md +0 -0
- {winrt_windows_devices_adc_provider-2.0.1 → winrt_windows_devices_adc_provider-2.2.0}/setup.cfg +0 -0
- {winrt_windows_devices_adc_provider-2.0.1 → winrt_windows_devices_adc_provider-2.2.0}/setup.py +0 -0
- {winrt_windows_devices_adc_provider-2.0.1 → winrt_windows_devices_adc_provider-2.2.0}/winrt/windows/devices/adc/provider/py.typed +0 -0
- {winrt_windows_devices_adc_provider-2.0.1 → winrt_windows_devices_adc_provider-2.2.0}/winrt_Windows.Devices.Adc.Provider.egg-info/SOURCES.txt +0 -0
- {winrt_windows_devices_adc_provider-2.0.1 → winrt_windows_devices_adc_provider-2.2.0}/winrt_Windows.Devices.Adc.Provider.egg-info/dependency_links.txt +0 -0
- {winrt_windows_devices_adc_provider-2.0.1 → winrt_windows_devices_adc_provider-2.2.0}/winrt_Windows.Devices.Adc.Provider.egg-info/top_level.txt +0 -0
{winrt_windows_devices_adc_provider-2.0.1 → winrt_windows_devices_adc_provider-2.2.0}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Devices.Adc.Provider
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.2.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,11 +10,11 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python: <3.
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.2.0; extra == "all"
|
|
18
18
|
|
|
19
19
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
20
20
|
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
|
-
winrt-Windows.Foundation.Collections[all]==2.0
|
|
3
|
+
winrt-Windows.Foundation.Collections[all]==2.2.0
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.Devices.Adc.Provider.h"
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
namespace py::cpp::Windows::Devices::Adc::Provider
|
|
7
6
|
{
|
|
8
7
|
// ----- IAdcControllerProvider interface --------------------
|
|
@@ -28,14 +27,21 @@ namespace py::cpp::Windows::Devices::Adc::Provider
|
|
|
28
27
|
|
|
29
28
|
if (arg_count == 1)
|
|
30
29
|
{
|
|
31
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"AcquireChannel", 1))
|
|
32
|
-
{
|
|
33
|
-
py::set_arg_count_version_error(1);
|
|
34
|
-
return nullptr;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
30
|
try
|
|
38
31
|
{
|
|
32
|
+
static std::optional<bool> is_overload_present{};
|
|
33
|
+
|
|
34
|
+
if (!is_overload_present.has_value())
|
|
35
|
+
{
|
|
36
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"AcquireChannel", 1);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (!is_overload_present.value())
|
|
40
|
+
{
|
|
41
|
+
py::set_arg_count_version_error(1);
|
|
42
|
+
return nullptr;
|
|
43
|
+
}
|
|
44
|
+
|
|
39
45
|
auto param0 = py::convert_to<int32_t>(args, 0);
|
|
40
46
|
|
|
41
47
|
self->obj.AcquireChannel(param0);
|
|
@@ -60,14 +66,21 @@ namespace py::cpp::Windows::Devices::Adc::Provider
|
|
|
60
66
|
|
|
61
67
|
if (arg_count == 1)
|
|
62
68
|
{
|
|
63
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"IsChannelModeSupported", 1))
|
|
64
|
-
{
|
|
65
|
-
py::set_arg_count_version_error(1);
|
|
66
|
-
return nullptr;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
69
|
try
|
|
70
70
|
{
|
|
71
|
+
static std::optional<bool> is_overload_present{};
|
|
72
|
+
|
|
73
|
+
if (!is_overload_present.has_value())
|
|
74
|
+
{
|
|
75
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"IsChannelModeSupported", 1);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if (!is_overload_present.value())
|
|
79
|
+
{
|
|
80
|
+
py::set_arg_count_version_error(1);
|
|
81
|
+
return nullptr;
|
|
82
|
+
}
|
|
83
|
+
|
|
71
84
|
auto param0 = py::convert_to<winrt::Windows::Devices::Adc::Provider::ProviderAdcChannelMode>(args, 0);
|
|
72
85
|
|
|
73
86
|
return py::convert(self->obj.IsChannelModeSupported(param0));
|
|
@@ -91,14 +104,21 @@ namespace py::cpp::Windows::Devices::Adc::Provider
|
|
|
91
104
|
|
|
92
105
|
if (arg_count == 1)
|
|
93
106
|
{
|
|
94
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"ReadValue", 1))
|
|
95
|
-
{
|
|
96
|
-
py::set_arg_count_version_error(1);
|
|
97
|
-
return nullptr;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
107
|
try
|
|
101
108
|
{
|
|
109
|
+
static std::optional<bool> is_overload_present{};
|
|
110
|
+
|
|
111
|
+
if (!is_overload_present.has_value())
|
|
112
|
+
{
|
|
113
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"ReadValue", 1);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
if (!is_overload_present.value())
|
|
117
|
+
{
|
|
118
|
+
py::set_arg_count_version_error(1);
|
|
119
|
+
return nullptr;
|
|
120
|
+
}
|
|
121
|
+
|
|
102
122
|
auto param0 = py::convert_to<int32_t>(args, 0);
|
|
103
123
|
|
|
104
124
|
return py::convert(self->obj.ReadValue(param0));
|
|
@@ -122,14 +142,21 @@ namespace py::cpp::Windows::Devices::Adc::Provider
|
|
|
122
142
|
|
|
123
143
|
if (arg_count == 1)
|
|
124
144
|
{
|
|
125
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"ReleaseChannel", 1))
|
|
126
|
-
{
|
|
127
|
-
py::set_arg_count_version_error(1);
|
|
128
|
-
return nullptr;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
145
|
try
|
|
132
146
|
{
|
|
147
|
+
static std::optional<bool> is_overload_present{};
|
|
148
|
+
|
|
149
|
+
if (!is_overload_present.has_value())
|
|
150
|
+
{
|
|
151
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"ReleaseChannel", 1);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
if (!is_overload_present.value())
|
|
155
|
+
{
|
|
156
|
+
py::set_arg_count_version_error(1);
|
|
157
|
+
return nullptr;
|
|
158
|
+
}
|
|
159
|
+
|
|
133
160
|
auto param0 = py::convert_to<int32_t>(args, 0);
|
|
134
161
|
|
|
135
162
|
self->obj.ReleaseChannel(param0);
|
|
@@ -150,14 +177,21 @@ namespace py::cpp::Windows::Devices::Adc::Provider
|
|
|
150
177
|
|
|
151
178
|
static PyObject* IAdcControllerProvider_get_ChannelCount(py::wrapper::Windows::Devices::Adc::Provider::IAdcControllerProvider* self, void* /*unused*/) noexcept
|
|
152
179
|
{
|
|
153
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"ChannelCount"))
|
|
154
|
-
{
|
|
155
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
156
|
-
return nullptr;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
180
|
try
|
|
160
181
|
{
|
|
182
|
+
static std::optional<bool> is_property_present{};
|
|
183
|
+
|
|
184
|
+
if (!is_property_present.has_value())
|
|
185
|
+
{
|
|
186
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"ChannelCount");
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
if (!is_property_present.value())
|
|
190
|
+
{
|
|
191
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
192
|
+
return nullptr;
|
|
193
|
+
}
|
|
194
|
+
|
|
161
195
|
return py::convert(self->obj.ChannelCount());
|
|
162
196
|
}
|
|
163
197
|
catch (...)
|
|
@@ -169,14 +203,21 @@ namespace py::cpp::Windows::Devices::Adc::Provider
|
|
|
169
203
|
|
|
170
204
|
static PyObject* IAdcControllerProvider_get_ChannelMode(py::wrapper::Windows::Devices::Adc::Provider::IAdcControllerProvider* self, void* /*unused*/) noexcept
|
|
171
205
|
{
|
|
172
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"ChannelMode"))
|
|
173
|
-
{
|
|
174
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
175
|
-
return nullptr;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
206
|
try
|
|
179
207
|
{
|
|
208
|
+
static std::optional<bool> is_property_present{};
|
|
209
|
+
|
|
210
|
+
if (!is_property_present.has_value())
|
|
211
|
+
{
|
|
212
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"ChannelMode");
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
if (!is_property_present.value())
|
|
216
|
+
{
|
|
217
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
218
|
+
return nullptr;
|
|
219
|
+
}
|
|
220
|
+
|
|
180
221
|
return py::convert(self->obj.ChannelMode());
|
|
181
222
|
}
|
|
182
223
|
catch (...)
|
|
@@ -188,12 +229,6 @@ namespace py::cpp::Windows::Devices::Adc::Provider
|
|
|
188
229
|
|
|
189
230
|
static int IAdcControllerProvider_put_ChannelMode(py::wrapper::Windows::Devices::Adc::Provider::IAdcControllerProvider* self, PyObject* arg, void* /*unused*/) noexcept
|
|
190
231
|
{
|
|
191
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"ChannelMode"))
|
|
192
|
-
{
|
|
193
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
194
|
-
return -1;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
232
|
if (arg == nullptr)
|
|
198
233
|
{
|
|
199
234
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -202,6 +237,19 @@ namespace py::cpp::Windows::Devices::Adc::Provider
|
|
|
202
237
|
|
|
203
238
|
try
|
|
204
239
|
{
|
|
240
|
+
static std::optional<bool> is_property_present{};
|
|
241
|
+
|
|
242
|
+
if (!is_property_present.has_value())
|
|
243
|
+
{
|
|
244
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"ChannelMode");
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
if (!is_property_present.value())
|
|
248
|
+
{
|
|
249
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
250
|
+
return -1;
|
|
251
|
+
}
|
|
252
|
+
|
|
205
253
|
auto param0 = py::convert_to<winrt::Windows::Devices::Adc::Provider::ProviderAdcChannelMode>(arg);
|
|
206
254
|
|
|
207
255
|
self->obj.ChannelMode(param0);
|
|
@@ -216,14 +264,21 @@ namespace py::cpp::Windows::Devices::Adc::Provider
|
|
|
216
264
|
|
|
217
265
|
static PyObject* IAdcControllerProvider_get_MaxValue(py::wrapper::Windows::Devices::Adc::Provider::IAdcControllerProvider* self, void* /*unused*/) noexcept
|
|
218
266
|
{
|
|
219
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"MaxValue"))
|
|
220
|
-
{
|
|
221
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
222
|
-
return nullptr;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
267
|
try
|
|
226
268
|
{
|
|
269
|
+
static std::optional<bool> is_property_present{};
|
|
270
|
+
|
|
271
|
+
if (!is_property_present.has_value())
|
|
272
|
+
{
|
|
273
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"MaxValue");
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
if (!is_property_present.value())
|
|
277
|
+
{
|
|
278
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
279
|
+
return nullptr;
|
|
280
|
+
}
|
|
281
|
+
|
|
227
282
|
return py::convert(self->obj.MaxValue());
|
|
228
283
|
}
|
|
229
284
|
catch (...)
|
|
@@ -235,14 +290,21 @@ namespace py::cpp::Windows::Devices::Adc::Provider
|
|
|
235
290
|
|
|
236
291
|
static PyObject* IAdcControllerProvider_get_MinValue(py::wrapper::Windows::Devices::Adc::Provider::IAdcControllerProvider* self, void* /*unused*/) noexcept
|
|
237
292
|
{
|
|
238
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"MinValue"))
|
|
239
|
-
{
|
|
240
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
241
|
-
return nullptr;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
293
|
try
|
|
245
294
|
{
|
|
295
|
+
static std::optional<bool> is_property_present{};
|
|
296
|
+
|
|
297
|
+
if (!is_property_present.has_value())
|
|
298
|
+
{
|
|
299
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"MinValue");
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
if (!is_property_present.value())
|
|
303
|
+
{
|
|
304
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
305
|
+
return nullptr;
|
|
306
|
+
}
|
|
307
|
+
|
|
246
308
|
return py::convert(self->obj.MinValue());
|
|
247
309
|
}
|
|
248
310
|
catch (...)
|
|
@@ -254,14 +316,21 @@ namespace py::cpp::Windows::Devices::Adc::Provider
|
|
|
254
316
|
|
|
255
317
|
static PyObject* IAdcControllerProvider_get_ResolutionInBits(py::wrapper::Windows::Devices::Adc::Provider::IAdcControllerProvider* self, void* /*unused*/) noexcept
|
|
256
318
|
{
|
|
257
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"ResolutionInBits"))
|
|
258
|
-
{
|
|
259
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
260
|
-
return nullptr;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
319
|
try
|
|
264
320
|
{
|
|
321
|
+
static std::optional<bool> is_property_present{};
|
|
322
|
+
|
|
323
|
+
if (!is_property_present.has_value())
|
|
324
|
+
{
|
|
325
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"ResolutionInBits");
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
if (!is_property_present.value())
|
|
329
|
+
{
|
|
330
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
331
|
+
return nullptr;
|
|
332
|
+
}
|
|
333
|
+
|
|
265
334
|
return py::convert(self->obj.ResolutionInBits());
|
|
266
335
|
}
|
|
267
336
|
catch (...)
|
|
@@ -314,23 +383,20 @@ namespace py::cpp::Windows::Devices::Adc::Provider
|
|
|
314
383
|
{ }
|
|
315
384
|
};
|
|
316
385
|
|
|
317
|
-
static PyType_Slot _type_slots_IAdcControllerProvider[] =
|
|
318
|
-
{
|
|
386
|
+
static PyType_Slot _type_slots_IAdcControllerProvider[] = {
|
|
319
387
|
{ Py_tp_new, reinterpret_cast<void*>(_new_IAdcControllerProvider) },
|
|
320
388
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_IAdcControllerProvider) },
|
|
321
389
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_IAdcControllerProvider) },
|
|
322
390
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_IAdcControllerProvider) },
|
|
323
|
-
{ }
|
|
391
|
+
{ }
|
|
324
392
|
};
|
|
325
393
|
|
|
326
|
-
static PyType_Spec type_spec_IAdcControllerProvider =
|
|
327
|
-
{
|
|
394
|
+
static PyType_Spec type_spec_IAdcControllerProvider = {
|
|
328
395
|
"winrt._winrt_windows_devices_adc_provider.IAdcControllerProvider",
|
|
329
396
|
sizeof(py::wrapper::Windows::Devices::Adc::Provider::IAdcControllerProvider),
|
|
330
397
|
0,
|
|
331
398
|
Py_TPFLAGS_DEFAULT,
|
|
332
|
-
_type_slots_IAdcControllerProvider
|
|
333
|
-
};
|
|
399
|
+
_type_slots_IAdcControllerProvider};
|
|
334
400
|
|
|
335
401
|
// ----- IAdcProvider interface --------------------
|
|
336
402
|
|
|
@@ -355,14 +421,21 @@ namespace py::cpp::Windows::Devices::Adc::Provider
|
|
|
355
421
|
|
|
356
422
|
if (arg_count == 0)
|
|
357
423
|
{
|
|
358
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Adc.Provider.IAdcProvider", L"GetControllers", 0))
|
|
359
|
-
{
|
|
360
|
-
py::set_arg_count_version_error(0);
|
|
361
|
-
return nullptr;
|
|
362
|
-
}
|
|
363
|
-
|
|
364
424
|
try
|
|
365
425
|
{
|
|
426
|
+
static std::optional<bool> is_overload_present{};
|
|
427
|
+
|
|
428
|
+
if (!is_overload_present.has_value())
|
|
429
|
+
{
|
|
430
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Adc.Provider.IAdcProvider", L"GetControllers", 0);
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
if (!is_overload_present.value())
|
|
434
|
+
{
|
|
435
|
+
py::set_arg_count_version_error(0);
|
|
436
|
+
return nullptr;
|
|
437
|
+
}
|
|
438
|
+
|
|
366
439
|
return py::convert(self->obj.GetControllers());
|
|
367
440
|
}
|
|
368
441
|
catch (...)
|
|
@@ -413,39 +486,35 @@ namespace py::cpp::Windows::Devices::Adc::Provider
|
|
|
413
486
|
{ }
|
|
414
487
|
};
|
|
415
488
|
|
|
416
|
-
static PyType_Slot _type_slots_IAdcProvider[] =
|
|
417
|
-
{
|
|
489
|
+
static PyType_Slot _type_slots_IAdcProvider[] = {
|
|
418
490
|
{ Py_tp_new, reinterpret_cast<void*>(_new_IAdcProvider) },
|
|
419
491
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_IAdcProvider) },
|
|
420
492
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_IAdcProvider) },
|
|
421
493
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_IAdcProvider) },
|
|
422
|
-
{ }
|
|
494
|
+
{ }
|
|
423
495
|
};
|
|
424
496
|
|
|
425
|
-
static PyType_Spec type_spec_IAdcProvider =
|
|
426
|
-
{
|
|
497
|
+
static PyType_Spec type_spec_IAdcProvider = {
|
|
427
498
|
"winrt._winrt_windows_devices_adc_provider.IAdcProvider",
|
|
428
499
|
sizeof(py::wrapper::Windows::Devices::Adc::Provider::IAdcProvider),
|
|
429
500
|
0,
|
|
430
501
|
Py_TPFLAGS_DEFAULT,
|
|
431
|
-
_type_slots_IAdcProvider
|
|
432
|
-
};
|
|
502
|
+
_type_slots_IAdcProvider};
|
|
433
503
|
|
|
434
504
|
// ----- Windows.Devices.Adc.Provider Initialization --------------------
|
|
435
|
-
PyDoc_STRVAR(module_doc, "Windows::Devices::Adc::Provider");
|
|
436
|
-
|
|
437
505
|
|
|
438
|
-
|
|
439
|
-
= {PyModuleDef_HEAD_INIT,
|
|
440
|
-
"_winrt_windows_devices_adc_provider",
|
|
441
|
-
module_doc,
|
|
442
|
-
0,
|
|
443
|
-
nullptr,
|
|
444
|
-
nullptr,
|
|
445
|
-
nullptr,
|
|
446
|
-
nullptr,
|
|
447
|
-
nullptr};
|
|
506
|
+
PyDoc_STRVAR(module_doc, "Windows.Devices.Adc.Provider");
|
|
448
507
|
|
|
508
|
+
static PyModuleDef module_def = {
|
|
509
|
+
PyModuleDef_HEAD_INIT,
|
|
510
|
+
"_winrt_windows_devices_adc_provider",
|
|
511
|
+
module_doc,
|
|
512
|
+
0,
|
|
513
|
+
nullptr,
|
|
514
|
+
nullptr,
|
|
515
|
+
nullptr,
|
|
516
|
+
nullptr,
|
|
517
|
+
nullptr};
|
|
449
518
|
} // py::cpp::Windows::Devices::Adc::Provider
|
|
450
519
|
|
|
451
520
|
PyMODINIT_FUNC PyInit__winrt_windows_devices_adc_provider(void) noexcept
|
|
@@ -477,12 +546,14 @@ PyMODINIT_FUNC PyInit__winrt_windows_devices_adc_provider(void) noexcept
|
|
|
477
546
|
return nullptr;
|
|
478
547
|
}
|
|
479
548
|
|
|
480
|
-
|
|
549
|
+
py::pytype_handle IAdcControllerProvider_type{py::register_python_type(module.get(), &type_spec_IAdcControllerProvider, object_bases.get(), nullptr)};
|
|
550
|
+
if (!IAdcControllerProvider_type)
|
|
481
551
|
{
|
|
482
552
|
return nullptr;
|
|
483
553
|
}
|
|
484
554
|
|
|
485
|
-
|
|
555
|
+
py::pytype_handle IAdcProvider_type{py::register_python_type(module.get(), &type_spec_IAdcProvider, object_bases.get(), nullptr)};
|
|
556
|
+
if (!IAdcProvider_type)
|
|
486
557
|
{
|
|
487
558
|
return nullptr;
|
|
488
559
|
}
|
{winrt_windows_devices_adc_provider-2.0.1 → winrt_windows_devices_adc_provider-2.2.0}/pyproject.toml
RENAMED
|
@@ -16,7 +16,7 @@ classifiers = [
|
|
|
16
16
|
"Intended Audience :: Developers",
|
|
17
17
|
]
|
|
18
18
|
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
19
|
-
requires-python = ">=3.9,<3.
|
|
19
|
+
requires-python = ">=3.9,<3.14"
|
|
20
20
|
|
|
21
21
|
[project.urls]
|
|
22
22
|
# Homepage = "https://github.com/pywinrt/pywinrt"
|
|
@@ -36,7 +36,8 @@ optional-dependencies.all = { file = "all-requirements.txt" }
|
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
37
37
|
environment = { PYTHONPATH="../winrt-sdk/src" }
|
|
38
38
|
# don't install winrt-sdk from PyPI
|
|
39
|
-
build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
39
|
+
build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
40
|
+
before-build = "uv pip install setuptools"
|
|
40
41
|
# don't build for PyPy
|
|
41
42
|
skip = "pp*"
|
|
42
43
|
# suppress warnings about ARM64 testing
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.2.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.0
|
|
3
|
+
winrt-runtime==2.2.0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
3
|
import datetime
|
|
4
4
|
import sys
|
|
@@ -9,7 +9,7 @@ from builtins import property as _property
|
|
|
9
9
|
|
|
10
10
|
import winrt._winrt
|
|
11
11
|
import winrt.system
|
|
12
|
-
import winrt.windows.foundation.collections
|
|
12
|
+
import winrt.windows.foundation.collections as windows_foundation_collections
|
|
13
13
|
|
|
14
14
|
from winrt.windows.devices.adc.provider import ProviderAdcChannelMode
|
|
15
15
|
|
|
@@ -40,5 +40,5 @@ class IAdcControllerProvider(winrt.system.Object):
|
|
|
40
40
|
class IAdcProvider(winrt.system.Object):
|
|
41
41
|
@staticmethod
|
|
42
42
|
def _from(obj: winrt.system.Object, /) -> IAdcProvider: ...
|
|
43
|
-
def get_controllers(self) -> typing.Optional[
|
|
43
|
+
def get_controllers(self) -> typing.Optional[windows_foundation_collections.IVectorView[IAdcControllerProvider]]: ...
|
|
44
44
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Devices.Adc.Provider
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.2.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,11 +10,11 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python: <3.
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.2.0; extra == "all"
|
|
18
18
|
|
|
19
19
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
20
20
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.0.1
|
{winrt_windows_devices_adc_provider-2.0.1 → winrt_windows_devices_adc_provider-2.2.0}/README.md
RENAMED
|
File without changes
|
{winrt_windows_devices_adc_provider-2.0.1 → winrt_windows_devices_adc_provider-2.2.0}/setup.cfg
RENAMED
|
File without changes
|
{winrt_windows_devices_adc_provider-2.0.1 → winrt_windows_devices_adc_provider-2.2.0}/setup.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|