winrt-Windows.Networking.ServiceDiscovery.Dnssd 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.
Files changed (21) hide show
  1. {winrt-Windows.Networking.ServiceDiscovery.Dnssd-2.0.0b2 → winrt_windows_networking_servicediscovery_dnssd-2.1.0}/PKG-INFO +7 -1
  2. winrt_windows_networking_servicediscovery_dnssd-2.1.0/all-requirements.txt +7 -0
  3. {winrt-Windows.Networking.ServiceDiscovery.Dnssd-2.0.0b2 → winrt_windows_networking_servicediscovery_dnssd-2.1.0}/py.Windows.Networking.ServiceDiscovery.Dnssd.cpp +239 -263
  4. {winrt-Windows.Networking.ServiceDiscovery.Dnssd-2.0.0b2 → winrt_windows_networking_servicediscovery_dnssd-2.1.0}/pyproject.toml +2 -2
  5. winrt_windows_networking_servicediscovery_dnssd-2.1.0/pywinrt-version.txt +1 -0
  6. {winrt-Windows.Networking.ServiceDiscovery.Dnssd-2.0.0b2 → winrt_windows_networking_servicediscovery_dnssd-2.1.0}/requirements.txt +2 -2
  7. winrt_windows_networking_servicediscovery_dnssd-2.1.0/setup.py +31 -0
  8. {winrt-Windows.Networking.ServiceDiscovery.Dnssd-2.0.0b2 → winrt_windows_networking_servicediscovery_dnssd-2.1.0}/winrt/_winrt_windows_networking_servicediscovery_dnssd.pyi +24 -24
  9. {winrt-Windows.Networking.ServiceDiscovery.Dnssd-2.0.0b2 → winrt_windows_networking_servicediscovery_dnssd-2.1.0}/winrt/windows/networking/servicediscovery/dnssd/__init__.py +1 -1
  10. winrt_windows_networking_servicediscovery_dnssd-2.1.0/winrt/windows/networking/servicediscovery/dnssd/py.typed +0 -0
  11. {winrt-Windows.Networking.ServiceDiscovery.Dnssd-2.0.0b2 → winrt_windows_networking_servicediscovery_dnssd-2.1.0}/winrt_Windows.Networking.ServiceDiscovery.Dnssd.egg-info/PKG-INFO +7 -1
  12. {winrt-Windows.Networking.ServiceDiscovery.Dnssd-2.0.0b2 → winrt_windows_networking_servicediscovery_dnssd-2.1.0}/winrt_Windows.Networking.ServiceDiscovery.Dnssd.egg-info/SOURCES.txt +1 -0
  13. winrt_windows_networking_servicediscovery_dnssd-2.1.0/winrt_Windows.Networking.ServiceDiscovery.Dnssd.egg-info/requires.txt +8 -0
  14. winrt-Windows.Networking.ServiceDiscovery.Dnssd-2.0.0b2/all-requirements.txt +0 -7
  15. winrt-Windows.Networking.ServiceDiscovery.Dnssd-2.0.0b2/pywinrt-version.txt +0 -1
  16. winrt-Windows.Networking.ServiceDiscovery.Dnssd-2.0.0b2/setup.py +0 -16
  17. winrt-Windows.Networking.ServiceDiscovery.Dnssd-2.0.0b2/winrt_Windows.Networking.ServiceDiscovery.Dnssd.egg-info/requires.txt +0 -8
  18. {winrt-Windows.Networking.ServiceDiscovery.Dnssd-2.0.0b2 → winrt_windows_networking_servicediscovery_dnssd-2.1.0}/README.md +0 -0
  19. {winrt-Windows.Networking.ServiceDiscovery.Dnssd-2.0.0b2 → winrt_windows_networking_servicediscovery_dnssd-2.1.0}/setup.cfg +0 -0
  20. {winrt-Windows.Networking.ServiceDiscovery.Dnssd-2.0.0b2 → winrt_windows_networking_servicediscovery_dnssd-2.1.0}/winrt_Windows.Networking.ServiceDiscovery.Dnssd.egg-info/dependency_links.txt +0 -0
  21. {winrt-Windows.Networking.ServiceDiscovery.Dnssd-2.0.0b2 → winrt_windows_networking_servicediscovery_dnssd-2.1.0}/winrt_Windows.Networking.ServiceDiscovery.Dnssd.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Networking.ServiceDiscovery.Dnssd
3
- Version: 2.0.0b2
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,13 @@ 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.Foundation[all]==2.1.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Networking[all]==2.1.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.Networking.Connectivity[all]==2.1.0; extra == "all"
21
+ Requires-Dist: winrt-Windows.Networking.Sockets[all]==2.1.0; extra == "all"
16
22
 
17
23
  <!-- warning: Please don't edit this file. It was automatically generated. -->
18
24
 
@@ -0,0 +1,7 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
+
3
+ winrt-Windows.Foundation[all]==2.1.0
4
+ winrt-Windows.Foundation.Collections[all]==2.1.0
5
+ winrt-Windows.Networking[all]==2.1.0
6
+ winrt-Windows.Networking.Connectivity[all]==2.1.0
7
+ winrt-Windows.Networking.Sockets[all]==2.1.0
@@ -1,8 +1,7 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
3
  #include "py.Windows.Networking.ServiceDiscovery.Dnssd.h"
4
4
 
5
-
6
5
  namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
7
6
  {
8
7
  // ----- DnssdRegistrationResult class --------------------
@@ -50,14 +49,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
50
49
 
51
50
  if (arg_count == 0)
52
51
  {
53
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdRegistrationResult", L"ToString", 0))
54
- {
55
- py::set_arg_count_version_error(0);
56
- return nullptr;
57
- }
58
-
59
52
  try
60
53
  {
54
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdRegistrationResult", L"ToString", 0))
55
+ {
56
+ py::set_arg_count_version_error(0);
57
+ return nullptr;
58
+ }
59
+
61
60
  return py::convert(self->obj.ToString());
62
61
  }
63
62
  catch (...)
@@ -75,14 +74,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
75
74
 
76
75
  static PyObject* DnssdRegistrationResult_get_HasInstanceNameChanged(py::wrapper::Windows::Networking::ServiceDiscovery::Dnssd::DnssdRegistrationResult* self, void* /*unused*/) noexcept
77
76
  {
78
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdRegistrationResult", L"HasInstanceNameChanged"))
79
- {
80
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
81
- return nullptr;
82
- }
83
-
84
77
  try
85
78
  {
79
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdRegistrationResult", L"HasInstanceNameChanged"))
80
+ {
81
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
82
+ return nullptr;
83
+ }
84
+
86
85
  return py::convert(self->obj.HasInstanceNameChanged());
87
86
  }
88
87
  catch (...)
@@ -94,14 +93,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
94
93
 
95
94
  static PyObject* DnssdRegistrationResult_get_IPAddress(py::wrapper::Windows::Networking::ServiceDiscovery::Dnssd::DnssdRegistrationResult* self, void* /*unused*/) noexcept
96
95
  {
97
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdRegistrationResult", L"IPAddress"))
98
- {
99
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
100
- return nullptr;
101
- }
102
-
103
96
  try
104
97
  {
98
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdRegistrationResult", L"IPAddress"))
99
+ {
100
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
101
+ return nullptr;
102
+ }
103
+
105
104
  return py::convert(self->obj.IPAddress());
106
105
  }
107
106
  catch (...)
@@ -113,14 +112,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
113
112
 
114
113
  static PyObject* DnssdRegistrationResult_get_Status(py::wrapper::Windows::Networking::ServiceDiscovery::Dnssd::DnssdRegistrationResult* self, void* /*unused*/) noexcept
115
114
  {
116
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdRegistrationResult", L"Status"))
117
- {
118
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
119
- return nullptr;
120
- }
121
-
122
115
  try
123
116
  {
117
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdRegistrationResult", L"Status"))
118
+ {
119
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
120
+ return nullptr;
121
+ }
122
+
124
123
  return py::convert(self->obj.Status());
125
124
  }
126
125
  catch (...)
@@ -181,24 +180,21 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
181
180
  { }
182
181
  };
183
182
 
184
- static PyType_Slot _type_slots_DnssdRegistrationResult[] =
185
- {
183
+ static PyType_Slot _type_slots_DnssdRegistrationResult[] = {
186
184
  { Py_tp_new, reinterpret_cast<void*>(_new_DnssdRegistrationResult) },
187
185
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_DnssdRegistrationResult) },
188
186
  { Py_tp_methods, reinterpret_cast<void*>(_methods_DnssdRegistrationResult) },
189
187
  { Py_tp_getset, reinterpret_cast<void*>(_getset_DnssdRegistrationResult) },
190
188
  { Py_tp_str, reinterpret_cast<void*>(_str_DnssdRegistrationResult) },
191
- { },
189
+ { }
192
190
  };
193
191
 
194
- static PyType_Spec type_spec_DnssdRegistrationResult =
195
- {
192
+ static PyType_Spec type_spec_DnssdRegistrationResult = {
196
193
  "winrt._winrt_windows_networking_servicediscovery_dnssd.DnssdRegistrationResult",
197
194
  sizeof(py::wrapper::Windows::Networking::ServiceDiscovery::Dnssd::DnssdRegistrationResult),
198
195
  0,
199
196
  Py_TPFLAGS_DEFAULT,
200
- _type_slots_DnssdRegistrationResult
201
- };
197
+ _type_slots_DnssdRegistrationResult};
202
198
 
203
199
  // ----- DnssdServiceInstance class --------------------
204
200
 
@@ -249,14 +245,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
249
245
 
250
246
  if (arg_count == 1)
251
247
  {
252
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"RegisterDatagramSocketAsync", 1))
253
- {
254
- py::set_arg_count_version_error(1);
255
- return nullptr;
256
- }
257
-
258
248
  try
259
249
  {
250
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"RegisterDatagramSocketAsync", 1))
251
+ {
252
+ py::set_arg_count_version_error(1);
253
+ return nullptr;
254
+ }
255
+
260
256
  auto param0 = py::convert_to<winrt::Windows::Networking::Sockets::DatagramSocket>(args, 0);
261
257
 
262
258
  return py::convert(self->obj.RegisterDatagramSocketAsync(param0));
@@ -269,14 +265,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
269
265
  }
270
266
  else if (arg_count == 2)
271
267
  {
272
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"RegisterDatagramSocketAsync", 2))
273
- {
274
- py::set_arg_count_version_error(2);
275
- return nullptr;
276
- }
277
-
278
268
  try
279
269
  {
270
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"RegisterDatagramSocketAsync", 2))
271
+ {
272
+ py::set_arg_count_version_error(2);
273
+ return nullptr;
274
+ }
275
+
280
276
  auto param0 = py::convert_to<winrt::Windows::Networking::Sockets::DatagramSocket>(args, 0);
281
277
  auto param1 = py::convert_to<winrt::Windows::Networking::Connectivity::NetworkAdapter>(args, 1);
282
278
 
@@ -301,14 +297,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
301
297
 
302
298
  if (arg_count == 1)
303
299
  {
304
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"RegisterStreamSocketListenerAsync", 1))
305
- {
306
- py::set_arg_count_version_error(1);
307
- return nullptr;
308
- }
309
-
310
300
  try
311
301
  {
302
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"RegisterStreamSocketListenerAsync", 1))
303
+ {
304
+ py::set_arg_count_version_error(1);
305
+ return nullptr;
306
+ }
307
+
312
308
  auto param0 = py::convert_to<winrt::Windows::Networking::Sockets::StreamSocketListener>(args, 0);
313
309
 
314
310
  return py::convert(self->obj.RegisterStreamSocketListenerAsync(param0));
@@ -321,14 +317,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
321
317
  }
322
318
  else if (arg_count == 2)
323
319
  {
324
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"RegisterStreamSocketListenerAsync", 2))
325
- {
326
- py::set_arg_count_version_error(2);
327
- return nullptr;
328
- }
329
-
330
320
  try
331
321
  {
322
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"RegisterStreamSocketListenerAsync", 2))
323
+ {
324
+ py::set_arg_count_version_error(2);
325
+ return nullptr;
326
+ }
327
+
332
328
  auto param0 = py::convert_to<winrt::Windows::Networking::Sockets::StreamSocketListener>(args, 0);
333
329
  auto param1 = py::convert_to<winrt::Windows::Networking::Connectivity::NetworkAdapter>(args, 1);
334
330
 
@@ -353,14 +349,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
353
349
 
354
350
  if (arg_count == 0)
355
351
  {
356
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"ToString", 0))
357
- {
358
- py::set_arg_count_version_error(0);
359
- return nullptr;
360
- }
361
-
362
352
  try
363
353
  {
354
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"ToString", 0))
355
+ {
356
+ py::set_arg_count_version_error(0);
357
+ return nullptr;
358
+ }
359
+
364
360
  return py::convert(self->obj.ToString());
365
361
  }
366
362
  catch (...)
@@ -378,14 +374,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
378
374
 
379
375
  static PyObject* DnssdServiceInstance_get_Weight(py::wrapper::Windows::Networking::ServiceDiscovery::Dnssd::DnssdServiceInstance* self, void* /*unused*/) noexcept
380
376
  {
381
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"Weight"))
382
- {
383
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
384
- return nullptr;
385
- }
386
-
387
377
  try
388
378
  {
379
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"Weight"))
380
+ {
381
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
382
+ return nullptr;
383
+ }
384
+
389
385
  return py::convert(self->obj.Weight());
390
386
  }
391
387
  catch (...)
@@ -397,12 +393,6 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
397
393
 
398
394
  static int DnssdServiceInstance_put_Weight(py::wrapper::Windows::Networking::ServiceDiscovery::Dnssd::DnssdServiceInstance* self, PyObject* arg, void* /*unused*/) noexcept
399
395
  {
400
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"Weight"))
401
- {
402
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
403
- return -1;
404
- }
405
-
406
396
  if (arg == nullptr)
407
397
  {
408
398
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
@@ -411,6 +401,12 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
411
401
 
412
402
  try
413
403
  {
404
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"Weight"))
405
+ {
406
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
407
+ return -1;
408
+ }
409
+
414
410
  auto param0 = py::convert_to<uint16_t>(arg);
415
411
 
416
412
  self->obj.Weight(param0);
@@ -425,14 +421,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
425
421
 
426
422
  static PyObject* DnssdServiceInstance_get_Priority(py::wrapper::Windows::Networking::ServiceDiscovery::Dnssd::DnssdServiceInstance* self, void* /*unused*/) noexcept
427
423
  {
428
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"Priority"))
429
- {
430
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
431
- return nullptr;
432
- }
433
-
434
424
  try
435
425
  {
426
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"Priority"))
427
+ {
428
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
429
+ return nullptr;
430
+ }
431
+
436
432
  return py::convert(self->obj.Priority());
437
433
  }
438
434
  catch (...)
@@ -444,12 +440,6 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
444
440
 
445
441
  static int DnssdServiceInstance_put_Priority(py::wrapper::Windows::Networking::ServiceDiscovery::Dnssd::DnssdServiceInstance* self, PyObject* arg, void* /*unused*/) noexcept
446
442
  {
447
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"Priority"))
448
- {
449
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
450
- return -1;
451
- }
452
-
453
443
  if (arg == nullptr)
454
444
  {
455
445
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
@@ -458,6 +448,12 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
458
448
 
459
449
  try
460
450
  {
451
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"Priority"))
452
+ {
453
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
454
+ return -1;
455
+ }
456
+
461
457
  auto param0 = py::convert_to<uint16_t>(arg);
462
458
 
463
459
  self->obj.Priority(param0);
@@ -472,14 +468,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
472
468
 
473
469
  static PyObject* DnssdServiceInstance_get_Port(py::wrapper::Windows::Networking::ServiceDiscovery::Dnssd::DnssdServiceInstance* self, void* /*unused*/) noexcept
474
470
  {
475
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"Port"))
476
- {
477
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
478
- return nullptr;
479
- }
480
-
481
471
  try
482
472
  {
473
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"Port"))
474
+ {
475
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
476
+ return nullptr;
477
+ }
478
+
483
479
  return py::convert(self->obj.Port());
484
480
  }
485
481
  catch (...)
@@ -491,12 +487,6 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
491
487
 
492
488
  static int DnssdServiceInstance_put_Port(py::wrapper::Windows::Networking::ServiceDiscovery::Dnssd::DnssdServiceInstance* self, PyObject* arg, void* /*unused*/) noexcept
493
489
  {
494
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"Port"))
495
- {
496
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
497
- return -1;
498
- }
499
-
500
490
  if (arg == nullptr)
501
491
  {
502
492
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
@@ -505,6 +495,12 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
505
495
 
506
496
  try
507
497
  {
498
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"Port"))
499
+ {
500
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
501
+ return -1;
502
+ }
503
+
508
504
  auto param0 = py::convert_to<uint16_t>(arg);
509
505
 
510
506
  self->obj.Port(param0);
@@ -519,14 +515,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
519
515
 
520
516
  static PyObject* DnssdServiceInstance_get_HostName(py::wrapper::Windows::Networking::ServiceDiscovery::Dnssd::DnssdServiceInstance* self, void* /*unused*/) noexcept
521
517
  {
522
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"HostName"))
523
- {
524
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
525
- return nullptr;
526
- }
527
-
528
518
  try
529
519
  {
520
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"HostName"))
521
+ {
522
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
523
+ return nullptr;
524
+ }
525
+
530
526
  return py::convert(self->obj.HostName());
531
527
  }
532
528
  catch (...)
@@ -538,12 +534,6 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
538
534
 
539
535
  static int DnssdServiceInstance_put_HostName(py::wrapper::Windows::Networking::ServiceDiscovery::Dnssd::DnssdServiceInstance* self, PyObject* arg, void* /*unused*/) noexcept
540
536
  {
541
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"HostName"))
542
- {
543
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
544
- return -1;
545
- }
546
-
547
537
  if (arg == nullptr)
548
538
  {
549
539
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
@@ -552,6 +542,12 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
552
542
 
553
543
  try
554
544
  {
545
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"HostName"))
546
+ {
547
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
548
+ return -1;
549
+ }
550
+
555
551
  auto param0 = py::convert_to<winrt::Windows::Networking::HostName>(arg);
556
552
 
557
553
  self->obj.HostName(param0);
@@ -566,14 +562,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
566
562
 
567
563
  static PyObject* DnssdServiceInstance_get_DnssdServiceInstanceName(py::wrapper::Windows::Networking::ServiceDiscovery::Dnssd::DnssdServiceInstance* self, void* /*unused*/) noexcept
568
564
  {
569
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"DnssdServiceInstanceName"))
570
- {
571
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
572
- return nullptr;
573
- }
574
-
575
565
  try
576
566
  {
567
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"DnssdServiceInstanceName"))
568
+ {
569
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
570
+ return nullptr;
571
+ }
572
+
577
573
  return py::convert(self->obj.DnssdServiceInstanceName());
578
574
  }
579
575
  catch (...)
@@ -585,12 +581,6 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
585
581
 
586
582
  static int DnssdServiceInstance_put_DnssdServiceInstanceName(py::wrapper::Windows::Networking::ServiceDiscovery::Dnssd::DnssdServiceInstance* self, PyObject* arg, void* /*unused*/) noexcept
587
583
  {
588
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"DnssdServiceInstanceName"))
589
- {
590
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
591
- return -1;
592
- }
593
-
594
584
  if (arg == nullptr)
595
585
  {
596
586
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
@@ -599,6 +589,12 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
599
589
 
600
590
  try
601
591
  {
592
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"DnssdServiceInstanceName"))
593
+ {
594
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
595
+ return -1;
596
+ }
597
+
602
598
  auto param0 = py::convert_to<winrt::hstring>(arg);
603
599
 
604
600
  self->obj.DnssdServiceInstanceName(param0);
@@ -613,14 +609,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
613
609
 
614
610
  static PyObject* DnssdServiceInstance_get_TextAttributes(py::wrapper::Windows::Networking::ServiceDiscovery::Dnssd::DnssdServiceInstance* self, void* /*unused*/) noexcept
615
611
  {
616
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"TextAttributes"))
617
- {
618
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
619
- return nullptr;
620
- }
621
-
622
612
  try
623
613
  {
614
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance", L"TextAttributes"))
615
+ {
616
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
617
+ return nullptr;
618
+ }
619
+
624
620
  return py::convert(self->obj.TextAttributes());
625
621
  }
626
622
  catch (...)
@@ -686,24 +682,21 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
686
682
  { }
687
683
  };
688
684
 
689
- static PyType_Slot _type_slots_DnssdServiceInstance[] =
690
- {
685
+ static PyType_Slot _type_slots_DnssdServiceInstance[] = {
691
686
  { Py_tp_new, reinterpret_cast<void*>(_new_DnssdServiceInstance) },
692
687
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_DnssdServiceInstance) },
693
688
  { Py_tp_methods, reinterpret_cast<void*>(_methods_DnssdServiceInstance) },
694
689
  { Py_tp_getset, reinterpret_cast<void*>(_getset_DnssdServiceInstance) },
695
690
  { Py_tp_str, reinterpret_cast<void*>(_str_DnssdServiceInstance) },
696
- { },
691
+ { }
697
692
  };
698
693
 
699
- static PyType_Spec type_spec_DnssdServiceInstance =
700
- {
694
+ static PyType_Spec type_spec_DnssdServiceInstance = {
701
695
  "winrt._winrt_windows_networking_servicediscovery_dnssd.DnssdServiceInstance",
702
696
  sizeof(py::wrapper::Windows::Networking::ServiceDiscovery::Dnssd::DnssdServiceInstance),
703
697
  0,
704
698
  Py_TPFLAGS_DEFAULT,
705
- _type_slots_DnssdServiceInstance
706
- };
699
+ _type_slots_DnssdServiceInstance};
707
700
 
708
701
  // ----- DnssdServiceInstanceCollection class --------------------
709
702
 
@@ -728,14 +721,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
728
721
 
729
722
  if (arg_count == 0)
730
723
  {
731
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstanceCollection", L"First", 0))
732
- {
733
- py::set_arg_count_version_error(0);
734
- return nullptr;
735
- }
736
-
737
724
  try
738
725
  {
726
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstanceCollection", L"First", 0))
727
+ {
728
+ py::set_arg_count_version_error(0);
729
+ return nullptr;
730
+ }
731
+
739
732
  return py::convert(self->obj.First());
740
733
  }
741
734
  catch (...)
@@ -757,14 +750,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
757
750
 
758
751
  if (arg_count == 1)
759
752
  {
760
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstanceCollection", L"GetAt", 1))
761
- {
762
- py::set_arg_count_version_error(1);
763
- return nullptr;
764
- }
765
-
766
753
  try
767
754
  {
755
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstanceCollection", L"GetAt", 1))
756
+ {
757
+ py::set_arg_count_version_error(1);
758
+ return nullptr;
759
+ }
760
+
768
761
  auto param0 = py::convert_to<uint32_t>(args, 0);
769
762
 
770
763
  return py::convert(self->obj.GetAt(param0));
@@ -788,14 +781,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
788
781
 
789
782
  if (arg_count == 2)
790
783
  {
791
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstanceCollection", L"GetMany", 1))
792
- {
793
- py::set_arg_count_version_error(1);
794
- return nullptr;
795
- }
796
-
797
784
  try
798
785
  {
786
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstanceCollection", L"GetMany", 1))
787
+ {
788
+ py::set_arg_count_version_error(1);
789
+ return nullptr;
790
+ }
791
+
799
792
  auto param0 = py::convert_to<uint32_t>(args, 0);
800
793
  auto param1 = py::convert_to<py::pybuf_view<winrt::Windows::Networking::ServiceDiscovery::Dnssd::DnssdServiceInstance, true>>(args, 1);
801
794
 
@@ -820,16 +813,16 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
820
813
 
821
814
  if (arg_count == 1)
822
815
  {
823
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstanceCollection", L"IndexOf", 1))
824
- {
825
- py::set_arg_count_version_error(1);
826
- return nullptr;
827
- }
828
-
829
816
  try
830
817
  {
818
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstanceCollection", L"IndexOf", 1))
819
+ {
820
+ py::set_arg_count_version_error(1);
821
+ return nullptr;
822
+ }
823
+
831
824
  auto param0 = py::convert_to<winrt::Windows::Networking::ServiceDiscovery::Dnssd::DnssdServiceInstance>(args, 0);
832
- uint32_t param1 { };
825
+ uint32_t param1{};
833
826
 
834
827
  auto return_value = self->obj.IndexOf(param0, param1);
835
828
 
@@ -860,14 +853,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
860
853
 
861
854
  static PyObject* DnssdServiceInstanceCollection_get_Size(py::wrapper::Windows::Networking::ServiceDiscovery::Dnssd::DnssdServiceInstanceCollection* self, void* /*unused*/) noexcept
862
855
  {
863
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstanceCollection", L"Size"))
864
- {
865
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
866
- return nullptr;
867
- }
868
-
869
856
  try
870
857
  {
858
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstanceCollection", L"Size"))
859
+ {
860
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
861
+ return nullptr;
862
+ }
863
+
871
864
  return py::convert(self->obj.Size());
872
865
  }
873
866
  catch (...)
@@ -965,26 +958,19 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
965
958
 
966
959
  if (!PySlice_Check(slice))
967
960
  {
968
- PyErr_Format(
969
- PyExc_TypeError,
970
- "indicies must be integers, not '%s'",
971
- Py_TYPE(slice)->tp_name);
961
+ PyErr_Format(PyExc_TypeError, "indices must be integers, not '%s'", Py_TYPE(slice)->tp_name);
972
962
  }
973
963
 
974
964
  Py_ssize_t start, stop, step, length;
975
965
 
976
- if (PySlice_GetIndicesEx(
977
- slice, self->obj.Size(), &start, &stop, &step, &length)
978
- < 0)
966
+ if (PySlice_GetIndicesEx(slice, self->obj.Size(), &start, &stop, &step, &length) < 0)
979
967
  {
980
968
  return nullptr;
981
969
  }
982
970
 
983
971
  if (step != 1)
984
972
  {
985
- PyErr_SetString(
986
- PyExc_NotImplementedError,
987
- "slices with step other than 1 are not implemented");
973
+ PyErr_SetString(PyExc_NotImplementedError, "slices with step other than 1 are not implemented");
988
974
  return nullptr;
989
975
  }
990
976
 
@@ -994,15 +980,12 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
994
980
 
995
981
  if (count != static_cast<uint32_t>(length))
996
982
  {
997
- PyErr_Format(
998
- PyExc_RuntimeError,
999
- "returned count %d did not match requested length %zd",
1000
- count,
1001
- length);
983
+ PyErr_Format(PyExc_RuntimeError, "returned count %d did not match requested length %zd", count, length);
1002
984
  return nullptr;
1003
985
  }
1004
986
 
1005
- return convert(items);}
987
+ return convert(items);
988
+ }
1006
989
  catch (...)
1007
990
  {
1008
991
  py::to_PyErr();
@@ -1025,8 +1008,7 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
1025
1008
  { }
1026
1009
  };
1027
1010
 
1028
- static PyType_Slot _type_slots_DnssdServiceInstanceCollection[] =
1029
- {
1011
+ static PyType_Slot _type_slots_DnssdServiceInstanceCollection[] = {
1030
1012
  { Py_tp_new, reinterpret_cast<void*>(_new_DnssdServiceInstanceCollection) },
1031
1013
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_DnssdServiceInstanceCollection) },
1032
1014
  { Py_tp_methods, reinterpret_cast<void*>(_methods_DnssdServiceInstanceCollection) },
@@ -1035,17 +1017,15 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
1035
1017
  { Py_sq_length, reinterpret_cast<void*>(_seq_length_DnssdServiceInstanceCollection) },
1036
1018
  { Py_sq_item, reinterpret_cast<void*>(_seq_item_DnssdServiceInstanceCollection) },
1037
1019
  { Py_mp_subscript, reinterpret_cast<void*>(_seq_subscript_DnssdServiceInstanceCollection) },
1038
- { },
1020
+ { }
1039
1021
  };
1040
1022
 
1041
- static PyType_Spec type_spec_DnssdServiceInstanceCollection =
1042
- {
1023
+ static PyType_Spec type_spec_DnssdServiceInstanceCollection = {
1043
1024
  "winrt._winrt_windows_networking_servicediscovery_dnssd.DnssdServiceInstanceCollection",
1044
1025
  sizeof(py::wrapper::Windows::Networking::ServiceDiscovery::Dnssd::DnssdServiceInstanceCollection),
1045
1026
  0,
1046
1027
  Py_TPFLAGS_DEFAULT,
1047
- _type_slots_DnssdServiceInstanceCollection
1048
- };
1028
+ _type_slots_DnssdServiceInstanceCollection};
1049
1029
 
1050
1030
  // ----- DnssdServiceWatcher class --------------------
1051
1031
 
@@ -1070,14 +1050,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
1070
1050
 
1071
1051
  if (arg_count == 0)
1072
1052
  {
1073
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher", L"Start", 0))
1074
- {
1075
- py::set_arg_count_version_error(0);
1076
- return nullptr;
1077
- }
1078
-
1079
1053
  try
1080
1054
  {
1055
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher", L"Start", 0))
1056
+ {
1057
+ py::set_arg_count_version_error(0);
1058
+ return nullptr;
1059
+ }
1060
+
1081
1061
  self->obj.Start();
1082
1062
  Py_RETURN_NONE;
1083
1063
  }
@@ -1100,14 +1080,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
1100
1080
 
1101
1081
  if (arg_count == 0)
1102
1082
  {
1103
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher", L"Stop", 0))
1104
- {
1105
- py::set_arg_count_version_error(0);
1106
- return nullptr;
1107
- }
1108
-
1109
1083
  try
1110
1084
  {
1085
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher", L"Stop", 0))
1086
+ {
1087
+ py::set_arg_count_version_error(0);
1088
+ return nullptr;
1089
+ }
1090
+
1111
1091
  self->obj.Stop();
1112
1092
  Py_RETURN_NONE;
1113
1093
  }
@@ -1126,14 +1106,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
1126
1106
 
1127
1107
  static PyObject* DnssdServiceWatcher_get_Status(py::wrapper::Windows::Networking::ServiceDiscovery::Dnssd::DnssdServiceWatcher* self, void* /*unused*/) noexcept
1128
1108
  {
1129
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher", L"Status"))
1130
- {
1131
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1132
- return nullptr;
1133
- }
1134
-
1135
1109
  try
1136
1110
  {
1111
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher", L"Status"))
1112
+ {
1113
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1114
+ return nullptr;
1115
+ }
1116
+
1137
1117
  return py::convert(self->obj.Status());
1138
1118
  }
1139
1119
  catch (...)
@@ -1145,14 +1125,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
1145
1125
 
1146
1126
  static PyObject* DnssdServiceWatcher_add_Added(py::wrapper::Windows::Networking::ServiceDiscovery::Dnssd::DnssdServiceWatcher* self, PyObject* arg) noexcept
1147
1127
  {
1148
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher", L"Added"))
1149
- {
1150
- PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
1151
- return nullptr;
1152
- }
1153
-
1154
1128
  try
1155
1129
  {
1130
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher", L"Added"))
1131
+ {
1132
+ PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
1133
+ return nullptr;
1134
+ }
1135
+
1156
1136
  auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Networking::ServiceDiscovery::Dnssd::DnssdServiceWatcher, winrt::Windows::Networking::ServiceDiscovery::Dnssd::DnssdServiceInstance>>(arg);
1157
1137
 
1158
1138
  return py::convert(self->obj.Added(param0));
@@ -1166,14 +1146,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
1166
1146
 
1167
1147
  static PyObject* DnssdServiceWatcher_remove_Added(py::wrapper::Windows::Networking::ServiceDiscovery::Dnssd::DnssdServiceWatcher* self, PyObject* arg) noexcept
1168
1148
  {
1169
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher", L"Added"))
1170
- {
1171
- PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
1172
- return nullptr;
1173
- }
1174
-
1175
1149
  try
1176
1150
  {
1151
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher", L"Added"))
1152
+ {
1153
+ PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
1154
+ return nullptr;
1155
+ }
1156
+
1177
1157
  auto param0 = py::convert_to<winrt::event_token>(arg);
1178
1158
 
1179
1159
  self->obj.Added(param0);
@@ -1188,14 +1168,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
1188
1168
 
1189
1169
  static PyObject* DnssdServiceWatcher_add_EnumerationCompleted(py::wrapper::Windows::Networking::ServiceDiscovery::Dnssd::DnssdServiceWatcher* self, PyObject* arg) noexcept
1190
1170
  {
1191
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher", L"EnumerationCompleted"))
1192
- {
1193
- PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
1194
- return nullptr;
1195
- }
1196
-
1197
1171
  try
1198
1172
  {
1173
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher", L"EnumerationCompleted"))
1174
+ {
1175
+ PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
1176
+ return nullptr;
1177
+ }
1178
+
1199
1179
  auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Networking::ServiceDiscovery::Dnssd::DnssdServiceWatcher, winrt::Windows::Foundation::IInspectable>>(arg);
1200
1180
 
1201
1181
  return py::convert(self->obj.EnumerationCompleted(param0));
@@ -1209,14 +1189,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
1209
1189
 
1210
1190
  static PyObject* DnssdServiceWatcher_remove_EnumerationCompleted(py::wrapper::Windows::Networking::ServiceDiscovery::Dnssd::DnssdServiceWatcher* self, PyObject* arg) noexcept
1211
1191
  {
1212
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher", L"EnumerationCompleted"))
1213
- {
1214
- PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
1215
- return nullptr;
1216
- }
1217
-
1218
1192
  try
1219
1193
  {
1194
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher", L"EnumerationCompleted"))
1195
+ {
1196
+ PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
1197
+ return nullptr;
1198
+ }
1199
+
1220
1200
  auto param0 = py::convert_to<winrt::event_token>(arg);
1221
1201
 
1222
1202
  self->obj.EnumerationCompleted(param0);
@@ -1231,14 +1211,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
1231
1211
 
1232
1212
  static PyObject* DnssdServiceWatcher_add_Stopped(py::wrapper::Windows::Networking::ServiceDiscovery::Dnssd::DnssdServiceWatcher* self, PyObject* arg) noexcept
1233
1213
  {
1234
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher", L"Stopped"))
1235
- {
1236
- PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
1237
- return nullptr;
1238
- }
1239
-
1240
1214
  try
1241
1215
  {
1216
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher", L"Stopped"))
1217
+ {
1218
+ PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
1219
+ return nullptr;
1220
+ }
1221
+
1242
1222
  auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Networking::ServiceDiscovery::Dnssd::DnssdServiceWatcher, winrt::Windows::Foundation::IInspectable>>(arg);
1243
1223
 
1244
1224
  return py::convert(self->obj.Stopped(param0));
@@ -1252,14 +1232,14 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
1252
1232
 
1253
1233
  static PyObject* DnssdServiceWatcher_remove_Stopped(py::wrapper::Windows::Networking::ServiceDiscovery::Dnssd::DnssdServiceWatcher* self, PyObject* arg) noexcept
1254
1234
  {
1255
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher", L"Stopped"))
1256
- {
1257
- PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
1258
- return nullptr;
1259
- }
1260
-
1261
1235
  try
1262
1236
  {
1237
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceWatcher", L"Stopped"))
1238
+ {
1239
+ PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
1240
+ return nullptr;
1241
+ }
1242
+
1263
1243
  auto param0 = py::convert_to<winrt::event_token>(arg);
1264
1244
 
1265
1245
  self->obj.Stopped(param0);
@@ -1315,39 +1295,35 @@ namespace py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
1315
1295
  { }
1316
1296
  };
1317
1297
 
1318
- static PyType_Slot _type_slots_DnssdServiceWatcher[] =
1319
- {
1298
+ static PyType_Slot _type_slots_DnssdServiceWatcher[] = {
1320
1299
  { Py_tp_new, reinterpret_cast<void*>(_new_DnssdServiceWatcher) },
1321
1300
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_DnssdServiceWatcher) },
1322
1301
  { Py_tp_methods, reinterpret_cast<void*>(_methods_DnssdServiceWatcher) },
1323
1302
  { Py_tp_getset, reinterpret_cast<void*>(_getset_DnssdServiceWatcher) },
1324
- { },
1303
+ { }
1325
1304
  };
1326
1305
 
1327
- static PyType_Spec type_spec_DnssdServiceWatcher =
1328
- {
1306
+ static PyType_Spec type_spec_DnssdServiceWatcher = {
1329
1307
  "winrt._winrt_windows_networking_servicediscovery_dnssd.DnssdServiceWatcher",
1330
1308
  sizeof(py::wrapper::Windows::Networking::ServiceDiscovery::Dnssd::DnssdServiceWatcher),
1331
1309
  0,
1332
1310
  Py_TPFLAGS_DEFAULT,
1333
- _type_slots_DnssdServiceWatcher
1334
- };
1311
+ _type_slots_DnssdServiceWatcher};
1335
1312
 
1336
1313
  // ----- Windows.Networking.ServiceDiscovery.Dnssd Initialization --------------------
1337
- PyDoc_STRVAR(module_doc, "Windows::Networking::ServiceDiscovery::Dnssd");
1338
1314
 
1315
+ PyDoc_STRVAR(module_doc, "Windows.Networking.ServiceDiscovery.Dnssd");
1339
1316
 
1340
- static PyModuleDef module_def
1341
- = {PyModuleDef_HEAD_INIT,
1342
- "_winrt_windows_networking_servicediscovery_dnssd",
1343
- module_doc,
1344
- 0,
1345
- nullptr,
1346
- nullptr,
1347
- nullptr,
1348
- nullptr,
1349
- nullptr};
1350
-
1317
+ static PyModuleDef module_def = {
1318
+ PyModuleDef_HEAD_INIT,
1319
+ "_winrt_windows_networking_servicediscovery_dnssd",
1320
+ module_doc,
1321
+ 0,
1322
+ nullptr,
1323
+ nullptr,
1324
+ nullptr,
1325
+ nullptr,
1326
+ nullptr};
1351
1327
  } // py::cpp::Windows::Networking::ServiceDiscovery::Dnssd
1352
1328
 
1353
1329
  PyMODINIT_FUNC PyInit__winrt_windows_networking_servicediscovery_dnssd(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", "setuptools-scm", "winrt-sdk"]
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
- winrt = ["*.pyi"]
33
+ "*" = ["*.pyi", "py.typed"]
34
34
 
35
35
  [tool.cibuildwheel]
36
36
  # use local winrt-sdk build dependency
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
- winrt-runtime==2.0.0-beta.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_networking_servicediscovery_dnssd",
26
+ sources=["py.Windows.Networking.ServiceDiscovery.Dnssd.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.0.0-beta.2
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,11 +9,11 @@ from builtins import property as _property
9
9
 
10
10
  import winrt._winrt
11
11
  import winrt.system
12
- import winrt.windows.foundation
13
- import winrt.windows.foundation.collections
14
- import winrt.windows.networking
15
- import winrt.windows.networking.connectivity
16
- import winrt.windows.networking.sockets
12
+ import winrt.windows.foundation as windows_foundation
13
+ import winrt.windows.foundation.collections as windows_foundation_collections
14
+ import winrt.windows.networking as windows_networking
15
+ import winrt.windows.networking.connectivity as windows_networking_connectivity
16
+ import winrt.windows.networking.sockets as windows_networking_sockets
17
17
 
18
18
  from winrt.windows.networking.servicediscovery.dnssd import DnssdRegistrationStatus, DnssdServiceWatcherStatus
19
19
 
@@ -24,12 +24,12 @@ class DnssdRegistrationResult(winrt.system.Object):
24
24
  def __str__(self) -> str: ...
25
25
  @staticmethod
26
26
  def _from(obj: winrt.system.Object, /) -> DnssdRegistrationResult: ...
27
- def __new__(cls: typing.Type[DnssdRegistrationResult]) -> DnssdRegistrationResult:...
27
+ def __new__(cls: typing.Type[DnssdRegistrationResult]) -> DnssdRegistrationResult: ...
28
28
  def to_string(self) -> str: ...
29
29
  @_property
30
30
  def has_instance_name_changed(self) -> bool: ...
31
31
  @_property
32
- def ip_address(self) -> typing.Optional[winrt.windows.networking.HostName]: ...
32
+ def ip_address(self) -> typing.Optional[windows_networking.HostName]: ...
33
33
  @_property
34
34
  def status(self) -> DnssdRegistrationStatus: ...
35
35
 
@@ -38,15 +38,15 @@ class DnssdServiceInstance(winrt.system.Object):
38
38
  def __str__(self) -> str: ...
39
39
  @staticmethod
40
40
  def _from(obj: winrt.system.Object, /) -> DnssdServiceInstance: ...
41
- def __new__(cls: typing.Type[DnssdServiceInstance], dnssd_service_instance_name: str, host_name: typing.Optional[winrt.windows.networking.HostName], port: winrt.system.UInt16) -> DnssdServiceInstance:...
41
+ def __new__(cls: typing.Type[DnssdServiceInstance], dnssd_service_instance_name: str, host_name: typing.Optional[windows_networking.HostName], port: winrt.system.UInt16) -> DnssdServiceInstance: ...
42
42
  @typing.overload
43
- def register_datagram_socket_async(self, socket: typing.Optional[winrt.windows.networking.sockets.DatagramSocket], /) -> winrt.windows.foundation.IAsyncOperation[DnssdRegistrationResult]: ...
43
+ def register_datagram_socket_async(self, socket: typing.Optional[windows_networking_sockets.DatagramSocket], /) -> windows_foundation.IAsyncOperation[DnssdRegistrationResult]: ...
44
44
  @typing.overload
45
- def register_datagram_socket_async(self, socket: typing.Optional[winrt.windows.networking.sockets.DatagramSocket], adapter: typing.Optional[winrt.windows.networking.connectivity.NetworkAdapter], /) -> winrt.windows.foundation.IAsyncOperation[DnssdRegistrationResult]: ...
45
+ def register_datagram_socket_async(self, socket: typing.Optional[windows_networking_sockets.DatagramSocket], adapter: typing.Optional[windows_networking_connectivity.NetworkAdapter], /) -> windows_foundation.IAsyncOperation[DnssdRegistrationResult]: ...
46
46
  @typing.overload
47
- def register_stream_socket_listener_async(self, socket: typing.Optional[winrt.windows.networking.sockets.StreamSocketListener], /) -> winrt.windows.foundation.IAsyncOperation[DnssdRegistrationResult]: ...
47
+ def register_stream_socket_listener_async(self, socket: typing.Optional[windows_networking_sockets.StreamSocketListener], /) -> windows_foundation.IAsyncOperation[DnssdRegistrationResult]: ...
48
48
  @typing.overload
49
- def register_stream_socket_listener_async(self, socket: typing.Optional[winrt.windows.networking.sockets.StreamSocketListener], adapter: typing.Optional[winrt.windows.networking.connectivity.NetworkAdapter], /) -> winrt.windows.foundation.IAsyncOperation[DnssdRegistrationResult]: ...
49
+ def register_stream_socket_listener_async(self, socket: typing.Optional[windows_networking_sockets.StreamSocketListener], adapter: typing.Optional[windows_networking_connectivity.NetworkAdapter], /) -> windows_foundation.IAsyncOperation[DnssdRegistrationResult]: ...
50
50
  def to_string(self) -> str: ...
51
51
  @_property
52
52
  def weight(self) -> winrt.system.UInt16: ...
@@ -61,27 +61,27 @@ class DnssdServiceInstance(winrt.system.Object):
61
61
  @port.setter
62
62
  def port(self, value: winrt.system.UInt16) -> None: ...
63
63
  @_property
64
- def host_name(self) -> typing.Optional[winrt.windows.networking.HostName]: ...
64
+ def host_name(self) -> typing.Optional[windows_networking.HostName]: ...
65
65
  @host_name.setter
66
- def host_name(self, value: typing.Optional[winrt.windows.networking.HostName]) -> None: ...
66
+ def host_name(self, value: typing.Optional[windows_networking.HostName]) -> None: ...
67
67
  @_property
68
68
  def dnssd_service_instance_name(self) -> str: ...
69
69
  @dnssd_service_instance_name.setter
70
70
  def dnssd_service_instance_name(self, value: str) -> None: ...
71
71
  @_property
72
- def text_attributes(self) -> typing.Optional[winrt.windows.foundation.collections.IMap[str, str]]: ...
72
+ def text_attributes(self) -> typing.Optional[windows_foundation_collections.IMap[str, str]]: ...
73
73
 
74
74
  @typing.final
75
75
  class DnssdServiceInstanceCollection(winrt.system.Object, winrt._winrt.Sequence[DnssdServiceInstance]):
76
76
  def __len__(self) -> int: ...
77
- def __iter__(self) -> winrt.windows.foundation.collections.IIterator[DnssdServiceInstance]: ...
77
+ def __iter__(self) -> windows_foundation_collections.IIterator[DnssdServiceInstance]: ...
78
78
  @typing.overload
79
79
  def __getitem__(self, index: typing.SupportsIndex) -> DnssdServiceInstance: ...
80
80
  @typing.overload
81
81
  def __getitem__(self, index: slice) -> winrt.system.Array[DnssdServiceInstance]: ...
82
82
  @staticmethod
83
83
  def _from(obj: winrt.system.Object, /) -> DnssdServiceInstanceCollection: ...
84
- def first(self) -> typing.Optional[winrt.windows.foundation.collections.IIterator[DnssdServiceInstance]]: ...
84
+ def first(self) -> typing.Optional[windows_foundation_collections.IIterator[DnssdServiceInstance]]: ...
85
85
  def get_at(self, index: winrt.system.UInt32, /) -> typing.Optional[DnssdServiceInstance]: ...
86
86
  def get_many(self, start_index: winrt.system.UInt32, items: winrt.system.Array[DnssdServiceInstance], /) -> winrt.system.UInt32: ...
87
87
  def index_of(self, value: typing.Optional[DnssdServiceInstance], /) -> typing.Tuple[bool, winrt.system.UInt32]: ...
@@ -94,12 +94,12 @@ class DnssdServiceWatcher(winrt.system.Object):
94
94
  def _from(obj: winrt.system.Object, /) -> DnssdServiceWatcher: ...
95
95
  def start(self) -> None: ...
96
96
  def stop(self) -> None: ...
97
- def add_added(self, handler: winrt.windows.foundation.TypedEventHandler[DnssdServiceWatcher, DnssdServiceInstance], /) -> winrt.windows.foundation.EventRegistrationToken: ...
98
- def remove_added(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
99
- def add_enumeration_completed(self, handler: winrt.windows.foundation.TypedEventHandler[DnssdServiceWatcher, winrt.system.Object], /) -> winrt.windows.foundation.EventRegistrationToken: ...
100
- def remove_enumeration_completed(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
101
- def add_stopped(self, handler: winrt.windows.foundation.TypedEventHandler[DnssdServiceWatcher, winrt.system.Object], /) -> winrt.windows.foundation.EventRegistrationToken: ...
102
- def remove_stopped(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
97
+ def add_added(self, handler: windows_foundation.TypedEventHandler[DnssdServiceWatcher, DnssdServiceInstance], /) -> windows_foundation.EventRegistrationToken: ...
98
+ def remove_added(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
99
+ def add_enumeration_completed(self, handler: windows_foundation.TypedEventHandler[DnssdServiceWatcher, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
100
+ def remove_enumeration_completed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
101
+ def add_stopped(self, handler: windows_foundation.TypedEventHandler[DnssdServiceWatcher, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
102
+ def remove_stopped(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
103
103
  @_property
104
104
  def status(self) -> DnssdServiceWatcherStatus: ...
105
105
 
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
3
  import enum
4
4
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Networking.ServiceDiscovery.Dnssd
3
- Version: 2.0.0b2
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,13 @@ 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.Foundation[all]==2.1.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Networking[all]==2.1.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.Networking.Connectivity[all]==2.1.0; extra == "all"
21
+ Requires-Dist: winrt-Windows.Networking.Sockets[all]==2.1.0; extra == "all"
16
22
 
17
23
  <!-- warning: Please don't edit this file. It was automatically generated. -->
18
24
 
@@ -7,6 +7,7 @@ requirements.txt
7
7
  setup.py
8
8
  winrt/_winrt_windows_networking_servicediscovery_dnssd.pyi
9
9
  winrt/windows/networking/servicediscovery/dnssd/__init__.py
10
+ winrt/windows/networking/servicediscovery/dnssd/py.typed
10
11
  winrt_Windows.Networking.ServiceDiscovery.Dnssd.egg-info/PKG-INFO
11
12
  winrt_Windows.Networking.ServiceDiscovery.Dnssd.egg-info/SOURCES.txt
12
13
  winrt_Windows.Networking.ServiceDiscovery.Dnssd.egg-info/dependency_links.txt
@@ -0,0 +1,8 @@
1
+ winrt-runtime==2.1.0
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==2.1.0
5
+ winrt-Windows.Foundation.Collections[all]==2.1.0
6
+ winrt-Windows.Networking[all]==2.1.0
7
+ winrt-Windows.Networking.Connectivity[all]==2.1.0
8
+ winrt-Windows.Networking.Sockets[all]==2.1.0
@@ -1,7 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
2
-
3
- winrt-Windows.Foundation[all]==2.0.0-beta.2
4
- winrt-Windows.Foundation.Collections[all]==2.0.0-beta.2
5
- winrt-Windows.Networking[all]==2.0.0-beta.2
6
- winrt-Windows.Networking.Connectivity[all]==2.0.0-beta.2
7
- winrt-Windows.Networking.Sockets[all]==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_networking_servicediscovery_dnssd",
10
- sources=["py.Windows.Networking.ServiceDiscovery.Dnssd.cpp"],
11
- include_dirs=get_include_dirs(),
12
- extra_compile_args=["/std:c++20", "/permissive-"],
13
- libraries=["windowsapp"],
14
- )
15
- ],
16
- )
@@ -1,8 +0,0 @@
1
- winrt-runtime==2.0.0-beta.2
2
-
3
- [all]
4
- winrt-Windows.Foundation[all]==2.0.0-beta.2
5
- winrt-Windows.Foundation.Collections[all]==2.0.0-beta.2
6
- winrt-Windows.Networking[all]==2.0.0-beta.2
7
- winrt-Windows.Networking.Connectivity[all]==2.0.0-beta.2
8
- winrt-Windows.Networking.Sockets[all]==2.0.0-beta.2