pyobjc-framework-libxpc 11.0__tar.gz → 12.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.
- {pyobjc_framework_libxpc-11.0 → pyobjc_framework_libxpc-12.0}/Lib/pyobjc_framework_libxpc.egg-info/PKG-INFO +19 -6
- {pyobjc_framework_libxpc-11.0 → pyobjc_framework_libxpc-12.0}/Lib/pyobjc_framework_libxpc.egg-info/SOURCES.txt +4 -6
- pyobjc_framework_libxpc-12.0/Lib/pyobjc_framework_libxpc.egg-info/pyobjc-build-info.txt +3 -0
- pyobjc_framework_libxpc-12.0/Lib/pyobjc_framework_libxpc.egg-info/requires.txt +2 -0
- {pyobjc_framework_libxpc-11.0 → pyobjc_framework_libxpc-12.0}/Lib/xpc/_metadata.py +66 -5
- {pyobjc_framework_libxpc-11.0 → pyobjc_framework_libxpc-12.0}/License.txt +1 -1
- {pyobjc_framework_libxpc-11.0 → pyobjc_framework_libxpc-12.0}/Modules/_xpc.m +24 -25
- {pyobjc_framework_libxpc-11.0 → pyobjc_framework_libxpc-12.0}/Modules/pyobjc-api.h +6 -3
- {pyobjc_framework_libxpc-11.0 → pyobjc_framework_libxpc-12.0}/Modules/pyobjc-compat.h +113 -36
- {pyobjc_framework_libxpc-11.0 → pyobjc_framework_libxpc-12.0}/PKG-INFO +19 -6
- pyobjc_framework_libxpc-12.0/PyObjCTest/__init__.py +1 -0
- {pyobjc_framework_libxpc-11.0 → pyobjc_framework_libxpc-12.0}/PyObjCTest/test_connection.py +4 -0
- pyobjc_framework_libxpc-12.0/PyObjCTest/test_listener.py +18 -0
- pyobjc_framework_libxpc-12.0/PyObjCTest/test_peer_requirement.py +48 -0
- {pyobjc_framework_libxpc-11.0 → pyobjc_framework_libxpc-12.0}/PyObjCTest/test_session.py +4 -0
- pyobjc_framework_libxpc-11.0/metadata/raw/arm64-15.0.fwinfo → pyobjc_framework_libxpc-12.0/metadata/raw/arm64-26.0.fwinfo +156 -3
- pyobjc_framework_libxpc-11.0/metadata/raw/x86_64-15.0.fwinfo → pyobjc_framework_libxpc-12.0/metadata/raw/x86_64-26.0.fwinfo +156 -3
- {pyobjc_framework_libxpc-11.0 → pyobjc_framework_libxpc-12.0}/metadata/xpc.fwinfo +39 -0
- {pyobjc_framework_libxpc-11.0 → pyobjc_framework_libxpc-12.0}/pyobjc_setup.py +9 -41
- {pyobjc_framework_libxpc-11.0 → pyobjc_framework_libxpc-12.0}/setup.py +1 -1
- pyobjc_framework_libxpc-11.0/Lib/pyobjc_framework_libxpc.egg-info/pyobjc-build-info.txt +0 -3
- pyobjc_framework_libxpc-11.0/Lib/pyobjc_framework_libxpc.egg-info/requires.txt +0 -2
- pyobjc_framework_libxpc-11.0/PyObjCTest/__init__.py +0 -1
- pyobjc_framework_libxpc-11.0/metadata/raw/arm64-13.1.fwinfo +0 -2327
- pyobjc_framework_libxpc-11.0/metadata/raw/arm64-14.5.fwinfo +0 -2605
- pyobjc_framework_libxpc-11.0/metadata/raw/x86_64-13.1.fwinfo +0 -2327
- pyobjc_framework_libxpc-11.0/metadata/raw/x86_64-14.5.fwinfo +0 -2605
- {pyobjc_framework_libxpc-11.0 → pyobjc_framework_libxpc-12.0}/Lib/pyobjc_framework_libxpc.egg-info/dependency_links.txt +0 -0
- {pyobjc_framework_libxpc-11.0 → pyobjc_framework_libxpc-12.0}/Lib/pyobjc_framework_libxpc.egg-info/not-zip-safe +0 -0
- {pyobjc_framework_libxpc-11.0 → pyobjc_framework_libxpc-12.0}/Lib/pyobjc_framework_libxpc.egg-info/top_level.txt +0 -0
- {pyobjc_framework_libxpc-11.0 → pyobjc_framework_libxpc-12.0}/Lib/xpc/__init__.py +0 -0
- {pyobjc_framework_libxpc-11.0 → pyobjc_framework_libxpc-12.0}/MANIFEST.in +0 -0
- {pyobjc_framework_libxpc-11.0 → pyobjc_framework_libxpc-12.0}/PyObjCTest/test_activity.py +0 -0
- {pyobjc_framework_libxpc-11.0 → pyobjc_framework_libxpc-12.0}/PyObjCTest/test_debug.py +0 -0
- {pyobjc_framework_libxpc-11.0 → pyobjc_framework_libxpc-12.0}/PyObjCTest/test_endpoint.py +0 -0
- {pyobjc_framework_libxpc-11.0 → pyobjc_framework_libxpc-12.0}/PyObjCTest/test_rich_error.py +0 -0
- {pyobjc_framework_libxpc-11.0 → pyobjc_framework_libxpc-12.0}/PyObjCTest/test_xpc.py +0 -0
- {pyobjc_framework_libxpc-11.0 → pyobjc_framework_libxpc-12.0}/metadata/metadata.ini +0 -0
- {pyobjc_framework_libxpc-11.0 → pyobjc_framework_libxpc-12.0}/pyproject.toml +0 -0
- {pyobjc_framework_libxpc-11.0 → pyobjc_framework_libxpc-12.0}/setup.cfg +0 -0
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: pyobjc-framework-libxpc
|
|
3
|
-
Version:
|
|
3
|
+
Version: 12.0
|
|
4
4
|
Summary: Wrappers for xpc on macOS
|
|
5
5
|
Home-page: https://github.com/ronaldoussoren/pyobjc
|
|
6
6
|
Author: Ronald Oussoren
|
|
7
7
|
Author-email: pyobjc-dev@lists.sourceforge.net
|
|
8
|
-
License: MIT
|
|
8
|
+
License: MIT
|
|
9
9
|
Keywords: PyObjC,xpc
|
|
10
10
|
Platform: MacOS X (>=10.8)
|
|
11
11
|
Classifier: Development Status :: 5 - Production/Stable
|
|
12
12
|
Classifier: Environment :: Console
|
|
13
13
|
Classifier: Environment :: MacOS X :: Cocoa
|
|
14
14
|
Classifier: Intended Audience :: Developers
|
|
15
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
16
15
|
Classifier: Natural Language :: English
|
|
17
16
|
Classifier: Operating System :: MacOS :: MacOS X
|
|
18
17
|
Classifier: Programming Language :: Python
|
|
@@ -24,14 +23,28 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
24
23
|
Classifier: Programming Language :: Python :: 3.12
|
|
25
24
|
Classifier: Programming Language :: Python :: 3.13
|
|
26
25
|
Classifier: Programming Language :: Python :: 3.14
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
27
27
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
28
|
+
Classifier: Programming Language :: Python :: Free Threading :: 2 - Beta
|
|
28
29
|
Classifier: Programming Language :: Objective C
|
|
29
30
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
30
31
|
Classifier: Topic :: Software Development :: User Interfaces
|
|
31
32
|
Requires-Python: >=3.9
|
|
32
33
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
33
|
-
Requires-Dist: pyobjc-core>=
|
|
34
|
-
Requires-Dist: pyobjc-framework-Cocoa>=
|
|
34
|
+
Requires-Dist: pyobjc-core>=12.0
|
|
35
|
+
Requires-Dist: pyobjc-framework-Cocoa>=12.0
|
|
36
|
+
Dynamic: author
|
|
37
|
+
Dynamic: author-email
|
|
38
|
+
Dynamic: classifier
|
|
39
|
+
Dynamic: description
|
|
40
|
+
Dynamic: description-content-type
|
|
41
|
+
Dynamic: home-page
|
|
42
|
+
Dynamic: keywords
|
|
43
|
+
Dynamic: license
|
|
44
|
+
Dynamic: platform
|
|
45
|
+
Dynamic: requires-dist
|
|
46
|
+
Dynamic: requires-python
|
|
47
|
+
Dynamic: summary
|
|
35
48
|
Project-URL: Documentation, https://pyobjc.readthedocs.io/en/latest/
|
|
36
49
|
Project-URL: Issue tracker, https://github.com/ronaldoussoren/pyobjc/issues
|
|
37
50
|
Project-URL: Repository, https://github.com/ronaldoussoren/pyobjc
|
|
@@ -20,14 +20,12 @@ PyObjCTest/test_activity.py
|
|
|
20
20
|
PyObjCTest/test_connection.py
|
|
21
21
|
PyObjCTest/test_debug.py
|
|
22
22
|
PyObjCTest/test_endpoint.py
|
|
23
|
+
PyObjCTest/test_listener.py
|
|
24
|
+
PyObjCTest/test_peer_requirement.py
|
|
23
25
|
PyObjCTest/test_rich_error.py
|
|
24
26
|
PyObjCTest/test_session.py
|
|
25
27
|
PyObjCTest/test_xpc.py
|
|
26
28
|
metadata/metadata.ini
|
|
27
29
|
metadata/xpc.fwinfo
|
|
28
|
-
metadata/raw/arm64-
|
|
29
|
-
metadata/raw/
|
|
30
|
-
metadata/raw/arm64-15.0.fwinfo
|
|
31
|
-
metadata/raw/x86_64-13.1.fwinfo
|
|
32
|
-
metadata/raw/x86_64-14.5.fwinfo
|
|
33
|
-
metadata/raw/x86_64-15.0.fwinfo
|
|
30
|
+
metadata/raw/arm64-26.0.fwinfo
|
|
31
|
+
metadata/raw/x86_64-26.0.fwinfo
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# This file is generated by objective.metadata
|
|
2
2
|
#
|
|
3
|
-
# Last update:
|
|
3
|
+
# Last update: Sun Aug 3 10:00:24 2025
|
|
4
4
|
#
|
|
5
5
|
# flake8: noqa
|
|
6
6
|
|
|
@@ -89,6 +89,17 @@ functions = {
|
|
|
89
89
|
"",
|
|
90
90
|
{"arguments": {1: {"c_array_delimited_by_null": True, "type_modifier": "n"}}},
|
|
91
91
|
),
|
|
92
|
+
"xpc_peer_requirement_create_entitlement_exists": (
|
|
93
|
+
b"@^t^@",
|
|
94
|
+
"",
|
|
95
|
+
{
|
|
96
|
+
"retval": {"already_retained": True},
|
|
97
|
+
"arguments": {
|
|
98
|
+
0: {"c_array_delimited_by_null": True, "type_modifier": "n"},
|
|
99
|
+
1: {"type_modifier": "o"},
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
),
|
|
92
103
|
"xpc_array_get_double": (b"d@Q",),
|
|
93
104
|
"xpc_array_get_bool": (b"B@Q",),
|
|
94
105
|
"xpc_dictionary_set_uuid": (
|
|
@@ -132,6 +143,25 @@ functions = {
|
|
|
132
143
|
"xpc_array_dup_fd": (b"i@Q",),
|
|
133
144
|
"xpc_activity_set_criteria": (b"v@@",),
|
|
134
145
|
"xpc_shmem_create": (b"@^vQ", "", {"retval": {"already_retained": True}}),
|
|
146
|
+
"xpc_peer_requirement_create_platform_identity": (
|
|
147
|
+
b"@^t^@",
|
|
148
|
+
"",
|
|
149
|
+
{
|
|
150
|
+
"retval": {"already_retained": True},
|
|
151
|
+
"arguments": {
|
|
152
|
+
0: {"c_array_delimited_by_null": True, "type_modifier": "n"},
|
|
153
|
+
1: {"type_modifier": "o"},
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
),
|
|
157
|
+
"xpc_peer_requirement_create_lwcr": (
|
|
158
|
+
b"@@^@",
|
|
159
|
+
"",
|
|
160
|
+
{
|
|
161
|
+
"retval": {"already_retained": True},
|
|
162
|
+
"arguments": {1: {"type_modifier": "o"}},
|
|
163
|
+
},
|
|
164
|
+
),
|
|
135
165
|
"xpc_connection_get_egid": (b"I@",),
|
|
136
166
|
"xpc_array_get_value": (b"@@Q",),
|
|
137
167
|
"xpc_activity_get_state": (b"q@",),
|
|
@@ -149,6 +179,17 @@ functions = {
|
|
|
149
179
|
"arguments": {1: {"c_array_delimited_by_null": True, "type_modifier": "n"}},
|
|
150
180
|
},
|
|
151
181
|
),
|
|
182
|
+
"xpc_peer_requirement_create_entitlement_matches_value": (
|
|
183
|
+
b"@^t@^@",
|
|
184
|
+
"",
|
|
185
|
+
{
|
|
186
|
+
"retval": {"already_retained": True},
|
|
187
|
+
"arguments": {
|
|
188
|
+
0: {"c_array_delimited_by_null": True, "type_modifier": "n"},
|
|
189
|
+
2: {"type_modifier": "o"},
|
|
190
|
+
},
|
|
191
|
+
},
|
|
192
|
+
),
|
|
152
193
|
"xpc_array_set_data": (
|
|
153
194
|
b"v@Q^vQ",
|
|
154
195
|
"",
|
|
@@ -156,11 +197,17 @@ functions = {
|
|
|
156
197
|
),
|
|
157
198
|
"xpc_array_set_date": (b"v@Qq",),
|
|
158
199
|
"xpc_session_set_target_queue": (b"v@@",),
|
|
200
|
+
"xpc_get_type": (b"^{_xpc_type_s=}@",),
|
|
159
201
|
"xpc_dictionary_get_uint64": (
|
|
160
202
|
b"Q@^t",
|
|
161
203
|
"",
|
|
162
204
|
{"arguments": {1: {"c_array_delimited_by_null": True, "type_modifier": "n"}}},
|
|
163
205
|
),
|
|
206
|
+
"xpc_peer_requirement_match_received_message": (
|
|
207
|
+
b"B@@^@",
|
|
208
|
+
"",
|
|
209
|
+
{"arguments": {2: {"type_modifier": "o"}}},
|
|
210
|
+
),
|
|
164
211
|
"xpc_debugger_api_misuse_info": (
|
|
165
212
|
b"^t",
|
|
166
213
|
"",
|
|
@@ -360,6 +407,7 @@ functions = {
|
|
|
360
407
|
},
|
|
361
408
|
),
|
|
362
409
|
"xpc_session_send_message": (b"@@@", "", {"retval": {"already_retained": True}}),
|
|
410
|
+
"xpc_listener_set_peer_requirement": (b"v@@",),
|
|
363
411
|
"xpc_array_create_empty": (b"@", "", {"retval": {"already_retained": True}}),
|
|
364
412
|
"xpc_activity_unregister": (
|
|
365
413
|
b"v^t",
|
|
@@ -382,6 +430,7 @@ functions = {
|
|
|
382
430
|
{"retval": {"c_array_of_variable_length": True}},
|
|
383
431
|
),
|
|
384
432
|
"xpc_int64_create": (b"@q", "", {"retval": {"already_retained": True}}),
|
|
433
|
+
"xpc_session_set_peer_requirement": (b"v@@",),
|
|
385
434
|
"xpc_array_get_array": (b"@@Q",),
|
|
386
435
|
"xpc_connection_create_from_endpoint": (
|
|
387
436
|
b"@@",
|
|
@@ -389,6 +438,17 @@ functions = {
|
|
|
389
438
|
{"retval": {"already_retained": True}},
|
|
390
439
|
),
|
|
391
440
|
"xpc_array_get_uuid": (b"^v@Q", "", {"retval": {"c_array_of_fixed_length": 16}}),
|
|
441
|
+
"xpc_peer_requirement_create_team_identity": (
|
|
442
|
+
b"@^t^@",
|
|
443
|
+
"",
|
|
444
|
+
{
|
|
445
|
+
"retval": {"already_retained": True},
|
|
446
|
+
"arguments": {
|
|
447
|
+
0: {"c_array_delimited_by_null": True, "type_modifier": "n"},
|
|
448
|
+
1: {"type_modifier": "o"},
|
|
449
|
+
},
|
|
450
|
+
},
|
|
451
|
+
),
|
|
392
452
|
"xpc_connection_activate": (b"v@",),
|
|
393
453
|
"xpc_activity_copy_criteria": (b"@@", "", {"retval": {"already_retained": True}}),
|
|
394
454
|
"xpc_session_create_mach_service": (
|
|
@@ -451,7 +511,7 @@ functions = {
|
|
|
451
511
|
},
|
|
452
512
|
),
|
|
453
513
|
"xpc_connection_set_peer_lightweight_code_requirement": (b"i@@",),
|
|
454
|
-
"
|
|
514
|
+
"xpc_connection_set_peer_requirement": (b"v@@",),
|
|
455
515
|
"xpc_hash": (b"Q@",),
|
|
456
516
|
"xpc_dictionary_set_int64": (
|
|
457
517
|
b"v@^tq",
|
|
@@ -702,11 +762,12 @@ functions = {
|
|
|
702
762
|
"xpc_date_get_value": (b"q@",),
|
|
703
763
|
}
|
|
704
764
|
aliases = {
|
|
705
|
-
"
|
|
706
|
-
"XPC_TESTEXPORT": "XPC_NOEXPORT",
|
|
765
|
+
"XPC_TESTNORETURN": "XPC_NORETURN",
|
|
707
766
|
"XPC_RETURNS_RETAINED": "OS_OBJECT_RETURNS_RETAINED",
|
|
708
|
-
"
|
|
767
|
+
"XPC_TESTEXPORT": "XPC_NOEXPORT",
|
|
709
768
|
"XPC_NONNULL_ARRAY": "_Nonnull",
|
|
769
|
+
"XPC_ERROR_KEY_DESCRIPTION": "_xpc_error_key_description",
|
|
770
|
+
"XPC_EVENT_KEY_NAME": "_xpc_event_key_name",
|
|
710
771
|
}
|
|
711
772
|
expressions = {}
|
|
712
773
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(This is the MIT license, note that libffi-src is a separate product with its own license)
|
|
2
2
|
|
|
3
3
|
Copyright 2002, 2003 - Bill Bumgarner, Ronald Oussoren, Steve Majewski, Lele Gaifax, et.al.
|
|
4
|
-
Copyright 2003-
|
|
4
|
+
Copyright 2003-2025 - Ronald Oussoren
|
|
5
5
|
|
|
6
6
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
7
7
|
|
|
@@ -177,8 +177,8 @@ static struct int64_constants {
|
|
|
177
177
|
|
|
178
178
|
#pragma clang diagnostic pop
|
|
179
179
|
|
|
180
|
-
|
|
181
|
-
|
|
180
|
+
static int
|
|
181
|
+
mod_exec_module(PyObject* module)
|
|
182
182
|
{
|
|
183
183
|
if (PyObjC_ImportAPI(module) == -1)
|
|
184
184
|
return -1;
|
|
@@ -233,16 +233,19 @@ static int mod_exec_module(PyObject* module)
|
|
|
233
233
|
xpc_object_t d;
|
|
234
234
|
|
|
235
235
|
d = XPC_ERROR_CONNECTION_INTERRUPTED;
|
|
236
|
-
if (add_constant(module, "XPC_ERROR_CONNECTION_INTERRUPTED", @encode(xpc_object_t),
|
|
236
|
+
if (add_constant(module, "XPC_ERROR_CONNECTION_INTERRUPTED", @encode(xpc_object_t),
|
|
237
|
+
&d)
|
|
237
238
|
!= 0)
|
|
238
239
|
goto error;
|
|
239
240
|
|
|
240
241
|
d = XPC_ERROR_CONNECTION_INVALID;
|
|
241
|
-
if (add_constant(module, "XPC_ERROR_CONNECTION_INVALID", @encode(xpc_object_t), &d)
|
|
242
|
+
if (add_constant(module, "XPC_ERROR_CONNECTION_INVALID", @encode(xpc_object_t), &d)
|
|
243
|
+
!= 0)
|
|
242
244
|
goto error;
|
|
243
245
|
|
|
244
246
|
d = XPC_ERROR_TERMINATION_IMMINENT;
|
|
245
|
-
if (add_constant(module, "XPC_ERROR_TERMINATION_IMMINENT", @encode(xpc_object_t), &d)
|
|
247
|
+
if (add_constant(module, "XPC_ERROR_TERMINATION_IMMINENT", @encode(xpc_object_t), &d)
|
|
248
|
+
!= 0)
|
|
246
249
|
goto error;
|
|
247
250
|
|
|
248
251
|
#if PyObjC_BUILD_RELEASE >= 1200
|
|
@@ -337,45 +340,41 @@ error:
|
|
|
337
340
|
}
|
|
338
341
|
|
|
339
342
|
static struct PyModuleDef_Slot mod_slots[] = {
|
|
340
|
-
{
|
|
341
|
-
.slot = Py_mod_exec,
|
|
342
|
-
.value = (void*)mod_exec_module
|
|
343
|
-
},
|
|
343
|
+
{.slot = Py_mod_exec, .value = (void*)mod_exec_module},
|
|
344
344
|
#if PY_VERSION_HEX >= 0x030c0000
|
|
345
345
|
{
|
|
346
346
|
/* Subinterpreters are not yet supported because of PyObjC_API */
|
|
347
|
-
.slot
|
|
347
|
+
.slot = Py_mod_multiple_interpreters,
|
|
348
348
|
.value = Py_MOD_MULTIPLE_INTERPRETERS_NOT_SUPPORTED,
|
|
349
349
|
},
|
|
350
350
|
#endif
|
|
351
351
|
#if PY_VERSION_HEX >= 0x030d0000
|
|
352
352
|
{
|
|
353
353
|
/* The code in this extension should be safe to use without the GIL */
|
|
354
|
-
.slot
|
|
354
|
+
.slot = Py_mod_gil,
|
|
355
355
|
.value = Py_MOD_GIL_NOT_USED,
|
|
356
356
|
},
|
|
357
357
|
#endif
|
|
358
|
-
{
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
}
|
|
362
|
-
};
|
|
358
|
+
{/* Sentinel */
|
|
359
|
+
.slot = 0,
|
|
360
|
+
.value = 0}};
|
|
363
361
|
|
|
364
362
|
static struct PyModuleDef mod_module = {
|
|
365
|
-
.m_base
|
|
366
|
-
.m_name
|
|
367
|
-
.m_doc
|
|
368
|
-
.m_size
|
|
369
|
-
.m_methods
|
|
370
|
-
.m_slots
|
|
363
|
+
.m_base = PyModuleDef_HEAD_INIT,
|
|
364
|
+
.m_name = "_xpc",
|
|
365
|
+
.m_doc = NULL,
|
|
366
|
+
.m_size = 0,
|
|
367
|
+
.m_methods = mod_methods,
|
|
368
|
+
.m_slots = mod_slots,
|
|
371
369
|
.m_traverse = NULL,
|
|
372
|
-
.m_clear
|
|
373
|
-
.m_free
|
|
370
|
+
.m_clear = NULL,
|
|
371
|
+
.m_free = NULL,
|
|
374
372
|
};
|
|
375
373
|
|
|
376
374
|
PyObject* PyInit__xpc(void);
|
|
377
375
|
|
|
378
|
-
PyObject* __attribute__((__visibility__("default")))
|
|
376
|
+
PyObject* __attribute__((__visibility__("default")))
|
|
377
|
+
PyInit__xpc(void)
|
|
379
378
|
{
|
|
380
379
|
return PyModuleDef_Init(&mod_module);
|
|
381
380
|
}
|
|
@@ -53,8 +53,9 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
53
53
|
/*
|
|
54
54
|
* Only add items to the end of this list!
|
|
55
55
|
*/
|
|
56
|
+
|
|
56
57
|
typedef int(RegisterMethodMappingFunctionType)(
|
|
57
|
-
Class, SEL,
|
|
58
|
+
Class _Nullable, SEL,
|
|
58
59
|
PyObject* _Nullable (*_Nonnull)(PyObject* _Nonnull, PyObject* _Nonnull,
|
|
59
60
|
PyObject* _Nonnull const* _Nonnull, size_t),
|
|
60
61
|
IMP _Nullable (*_Nonnull)(PyObject* _Nonnull, PyObject* _Nonnull));
|
|
@@ -83,7 +84,8 @@ struct pyobjc_api {
|
|
|
83
84
|
PyObject* _Nullable (*_Nonnull unsupported_method_caller)(
|
|
84
85
|
PyObject* _Nonnull, PyObject* _Nonnull, PyObject* _Nonnull const* _Nonnull,
|
|
85
86
|
size_t);
|
|
86
|
-
void (*_Nonnull err_python_to_objc_gil)(PyGILState_STATE* _Nonnull state)
|
|
87
|
+
void (*_Nonnull err_python_to_objc_gil)(PyGILState_STATE* _Nonnull state)
|
|
88
|
+
__attribute__((__noreturn__));
|
|
87
89
|
int (*_Nonnull simplify_sig)(const char* signature, char* buf, size_t buflen);
|
|
88
90
|
void (*_Nonnull free_c_array)(int, Py_buffer*);
|
|
89
91
|
int (*_Nonnull py_to_c_array)(BOOL, BOOL, const char* _Nonnull, PyObject* _Nonnull,
|
|
@@ -113,7 +115,8 @@ struct pyobjc_api {
|
|
|
113
115
|
int (*_Nonnull checknokwnames)(PyObject* _Nonnull callable,
|
|
114
116
|
PyObject* _Nullable kwnames);
|
|
115
117
|
|
|
116
|
-
PyObject* _Nullable (*_Nonnull createopaquepointertype)(const char*, const char*,
|
|
118
|
+
PyObject* _Nullable (*_Nonnull createopaquepointertype)(const char*, const char*,
|
|
119
|
+
const char*);
|
|
117
120
|
};
|
|
118
121
|
|
|
119
122
|
#ifndef PYOBJC_BUILD
|
|
@@ -123,34 +123,6 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
123
123
|
} while (0)
|
|
124
124
|
#endif
|
|
125
125
|
|
|
126
|
-
#if PY_VERSION_HEX < 0x03090000
|
|
127
|
-
|
|
128
|
-
/* For use on Python 3.8 and earlier. PyObjC doesn't use the
|
|
129
|
-
* "flag" bit internally.
|
|
130
|
-
*/
|
|
131
|
-
|
|
132
|
-
#ifndef PY_VECTORCALL_ARGUMENTS_OFFSET
|
|
133
|
-
#define PY_VECTORCALL_ARGUMENTS_OFFSET ((size_t)1 << (8 * sizeof(size_t) - 1))
|
|
134
|
-
#endif
|
|
135
|
-
|
|
136
|
-
#define PyVectorcall_NARGS(nargsf) ((nargsf) & ~PY_VECTORCALL_ARGUMENTS_OFFSET)
|
|
137
|
-
|
|
138
|
-
#ifdef OBJC_VERSION
|
|
139
|
-
/* Don't use PyObject prefixed symbols in our binaries */
|
|
140
|
-
#define PyObject_Vectorcall PyObjC_Vectorcall
|
|
141
|
-
#define PyObject_VectorcallMethod PyObjC_VectorcallMethod
|
|
142
|
-
|
|
143
|
-
extern PyObject* _Nullable PyObject_Vectorcall(PyObject* callable,
|
|
144
|
-
PyObject* _Nonnull const* _Nonnull args,
|
|
145
|
-
size_t nargsf,
|
|
146
|
-
PyObject* _Nullable kwnames);
|
|
147
|
-
extern PyObject* _Nullable PyObject_VectorcallMethod(
|
|
148
|
-
PyObject* name, PyObject* _Nonnull const* _Nonnull args, size_t nargsf,
|
|
149
|
-
PyObject* _Nullable kwnames);
|
|
150
|
-
#endif
|
|
151
|
-
|
|
152
|
-
#endif /* Python < 3.9 */
|
|
153
|
-
|
|
154
126
|
/* Use CLINIC_SEP between the prototype and
|
|
155
127
|
* description in doc strings, to get clean
|
|
156
128
|
* docstrings.
|
|
@@ -179,7 +151,7 @@ extern const char* _Nullable PyObjC_Unicode_Fast_Bytes(PyObject* object);
|
|
|
179
151
|
|
|
180
152
|
static inline PyObject* _Nullable* _Nonnull PyTuple_ITEMS(PyObject* tuple)
|
|
181
153
|
{
|
|
182
|
-
return &PyTuple_GET_ITEM(tuple, 0);
|
|
154
|
+
return &PyTuple_GET_ITEM(tuple, 0); // LCOV_BR_EXCL_LINE
|
|
183
155
|
}
|
|
184
156
|
|
|
185
157
|
/* This is a crude hack to disable a otherwise useful warning in the context of
|
|
@@ -198,7 +170,10 @@ _PyObjCTuple_SetItem(PyObject* tuple, Py_ssize_t idx, PyObject* _Nullable value)
|
|
|
198
170
|
static inline PyObject*
|
|
199
171
|
_PyObjCTuple_GetItem(PyObject* tuple, Py_ssize_t idx)
|
|
200
172
|
{
|
|
201
|
-
|
|
173
|
+
/* The protocol for tuples is that they are full initialized
|
|
174
|
+
* before handing them over to other code.
|
|
175
|
+
*/
|
|
176
|
+
return (PyObject* _Nonnull)PyTuple_GET_ITEM(tuple, idx); // LCOV_BR_EXCL_LINE
|
|
202
177
|
}
|
|
203
178
|
#undef PyTuple_GET_ITEM
|
|
204
179
|
#define PyTuple_GET_ITEM(a, b) _PyObjCTuple_GetItem(a, b)
|
|
@@ -242,13 +217,15 @@ _PyObjCTuple_GetItem(PyObject* tuple, Py_ssize_t idx)
|
|
|
242
217
|
|
|
243
218
|
#if PY_VERSION_HEX < 0x030a0000
|
|
244
219
|
|
|
245
|
-
static inline PyObject*
|
|
220
|
+
static inline PyObject*
|
|
221
|
+
Py_NewRef(PyObject* o)
|
|
246
222
|
{
|
|
247
223
|
Py_INCREF(o);
|
|
248
224
|
return o;
|
|
249
225
|
}
|
|
250
226
|
|
|
251
|
-
static inline PyObject*
|
|
227
|
+
static inline PyObject*
|
|
228
|
+
Py_XNewRef(PyObject* o)
|
|
252
229
|
{
|
|
253
230
|
Py_XINCREF(o);
|
|
254
231
|
return o;
|
|
@@ -257,11 +234,16 @@ static inline PyObject* Py_XNewRef(PyObject* o)
|
|
|
257
234
|
#endif /* PY_VERSION_HEX < 0x030a0000 */
|
|
258
235
|
|
|
259
236
|
#if PY_VERSION_HEX < 0x030d0000
|
|
260
|
-
#define Py_BEGIN_CRITICAL_SECTION(value)
|
|
237
|
+
#define Py_BEGIN_CRITICAL_SECTION(value) \
|
|
238
|
+
{ \
|
|
239
|
+
(void)(value);
|
|
261
240
|
#define Py_END_CRITICAL_SECTION() }
|
|
262
241
|
#define Py_EXIT_CRITICAL_SECTION() ((void)0)
|
|
263
242
|
|
|
264
|
-
#define Py_BEGIN_CRITICAL_SECTION2(value1, value2)
|
|
243
|
+
#define Py_BEGIN_CRITICAL_SECTION2(value1, value2) \
|
|
244
|
+
{ \
|
|
245
|
+
(void)(value1); \
|
|
246
|
+
(void)(value2);
|
|
265
247
|
#define Py_END_CRITICAL_SECTION2() }
|
|
266
248
|
#define Py_EXIT_CRITICAL_SECTION2() ((void)0)
|
|
267
249
|
|
|
@@ -282,7 +264,8 @@ static inline PyObject* Py_XNewRef(PyObject* o)
|
|
|
282
264
|
#endif
|
|
283
265
|
|
|
284
266
|
#if PY_VERSION_HEX < 0x030d0000
|
|
285
|
-
static inline int
|
|
267
|
+
static inline int
|
|
268
|
+
PyDict_GetItemRef(PyObject* p, PyObject* key, PyObject* _Nonnull* _Nullable result)
|
|
286
269
|
{
|
|
287
270
|
*result = PyDict_GetItemWithError(p, key);
|
|
288
271
|
if (*result == NULL) {
|
|
@@ -306,7 +289,8 @@ static inline PyObject* _Nullable PyList_GetItemRef(PyObject* l, Py_ssize_t i)
|
|
|
306
289
|
#endif
|
|
307
290
|
|
|
308
291
|
#if PY_VERSION_HEX < 0x030c0000
|
|
309
|
-
static inline PyObject*
|
|
292
|
+
static inline PyObject*
|
|
293
|
+
PyType_GetDict(PyTypeObject* type)
|
|
310
294
|
{
|
|
311
295
|
PyObject* result = type->tp_dict;
|
|
312
296
|
Py_INCREF(result);
|
|
@@ -314,6 +298,99 @@ static inline PyObject* PyType_GetDict(PyTypeObject* type)
|
|
|
314
298
|
}
|
|
315
299
|
#endif
|
|
316
300
|
|
|
301
|
+
#if PY_VERSION_HEX >= 0x030c0000 && PY_VERSION_HEX < 0x030e0000
|
|
302
|
+
/*
|
|
303
|
+
* These are available in 3.14 and above, the definitions below
|
|
304
|
+
* mirror the private implementation in 3.13.
|
|
305
|
+
*/
|
|
306
|
+
static inline int
|
|
307
|
+
PyUnstable_Object_IsUniquelyReferenced(PyObject* ob)
|
|
308
|
+
{
|
|
309
|
+
#ifdef Py_GIL_DISABLED
|
|
310
|
+
return (_Py_IsOwnedByCurrentThread(ob)
|
|
311
|
+
&& _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local) == 1
|
|
312
|
+
&& _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared) == 0);
|
|
313
|
+
#else
|
|
314
|
+
return Py_REFCNT(ob) == 1;
|
|
315
|
+
#endif
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
static inline void
|
|
319
|
+
PyUnstable_EnableTryIncRef(PyObject* op __attribute__((__unused__)))
|
|
320
|
+
{
|
|
321
|
+
#ifdef Py_GIL_DISABLED
|
|
322
|
+
for (;;) {
|
|
323
|
+
Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&op->ob_ref_shared);
|
|
324
|
+
if ((shared & _Py_REF_SHARED_FLAG_MASK) != 0) {
|
|
325
|
+
// Nothing to do if it's in WEAKREFS, QUEUED, or MERGED states.
|
|
326
|
+
return;
|
|
327
|
+
}
|
|
328
|
+
if (_Py_atomic_compare_exchange_ssize(&op->ob_ref_shared, &shared,
|
|
329
|
+
shared | _Py_REF_MAYBE_WEAKREF)) {
|
|
330
|
+
return;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
#endif
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
#ifdef Py_GIL_DISABLED
|
|
337
|
+
static inline int
|
|
338
|
+
_Py_TryIncrefFast(PyObject* op)
|
|
339
|
+
{
|
|
340
|
+
uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local);
|
|
341
|
+
local += 1;
|
|
342
|
+
if (local == 0) {
|
|
343
|
+
// immortal
|
|
344
|
+
return 1;
|
|
345
|
+
}
|
|
346
|
+
if (_Py_IsOwnedByCurrentThread(op)) {
|
|
347
|
+
_Py_INCREF_STAT_INC();
|
|
348
|
+
_Py_atomic_store_uint32_relaxed(&op->ob_ref_local, local);
|
|
349
|
+
#ifdef Py_REF_DEBUG
|
|
350
|
+
_Py_IncRefTotal(_PyThreadState_GET());
|
|
351
|
+
#endif
|
|
352
|
+
return 1;
|
|
353
|
+
}
|
|
354
|
+
return 0;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
static inline int
|
|
358
|
+
_Py_TryIncRefShared(PyObject* op)
|
|
359
|
+
{
|
|
360
|
+
Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&op->ob_ref_shared);
|
|
361
|
+
for (;;) {
|
|
362
|
+
// If the shared refcount is zero and the object is either merged
|
|
363
|
+
// or may not have weak references, then we cannot incref it.
|
|
364
|
+
if (shared == 0 || shared == _Py_REF_MERGED) {
|
|
365
|
+
return 0;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
if (_Py_atomic_compare_exchange_ssize(&op->ob_ref_shared, &shared,
|
|
369
|
+
shared + (1 << _Py_REF_SHARED_SHIFT))) {
|
|
370
|
+
#ifdef Py_REF_DEBUG
|
|
371
|
+
_Py_IncRefTotal(_PyThreadState_GET());
|
|
372
|
+
#endif
|
|
373
|
+
_Py_INCREF_STAT_INC();
|
|
374
|
+
return 1;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
#endif
|
|
379
|
+
|
|
380
|
+
static inline int
|
|
381
|
+
PyUnstable_TryIncRef(PyObject* op __attribute__((__unused__)))
|
|
382
|
+
{
|
|
383
|
+
#ifdef Py_GIL_DISABLED
|
|
384
|
+
return _Py_TryIncrefFast(op) || _Py_TryIncRefShared(op);
|
|
385
|
+
#else
|
|
386
|
+
if (Py_REFCNT(op) > 0) {
|
|
387
|
+
Py_INCREF(op);
|
|
388
|
+
return 1;
|
|
389
|
+
}
|
|
390
|
+
return 0;
|
|
391
|
+
#endif
|
|
392
|
+
}
|
|
393
|
+
#endif
|
|
317
394
|
|
|
318
395
|
NS_ASSUME_NONNULL_END
|
|
319
396
|
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: pyobjc-framework-libxpc
|
|
3
|
-
Version:
|
|
3
|
+
Version: 12.0
|
|
4
4
|
Summary: Wrappers for xpc on macOS
|
|
5
5
|
Home-page: https://github.com/ronaldoussoren/pyobjc
|
|
6
6
|
Author: Ronald Oussoren
|
|
7
7
|
Author-email: pyobjc-dev@lists.sourceforge.net
|
|
8
|
-
License: MIT
|
|
8
|
+
License: MIT
|
|
9
9
|
Keywords: PyObjC,xpc
|
|
10
10
|
Platform: MacOS X (>=10.8)
|
|
11
11
|
Classifier: Development Status :: 5 - Production/Stable
|
|
12
12
|
Classifier: Environment :: Console
|
|
13
13
|
Classifier: Environment :: MacOS X :: Cocoa
|
|
14
14
|
Classifier: Intended Audience :: Developers
|
|
15
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
16
15
|
Classifier: Natural Language :: English
|
|
17
16
|
Classifier: Operating System :: MacOS :: MacOS X
|
|
18
17
|
Classifier: Programming Language :: Python
|
|
@@ -24,14 +23,28 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
24
23
|
Classifier: Programming Language :: Python :: 3.12
|
|
25
24
|
Classifier: Programming Language :: Python :: 3.13
|
|
26
25
|
Classifier: Programming Language :: Python :: 3.14
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
27
27
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
28
|
+
Classifier: Programming Language :: Python :: Free Threading :: 2 - Beta
|
|
28
29
|
Classifier: Programming Language :: Objective C
|
|
29
30
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
30
31
|
Classifier: Topic :: Software Development :: User Interfaces
|
|
31
32
|
Requires-Python: >=3.9
|
|
32
33
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
33
|
-
Requires-Dist: pyobjc-core>=
|
|
34
|
-
Requires-Dist: pyobjc-framework-Cocoa>=
|
|
34
|
+
Requires-Dist: pyobjc-core>=12.0
|
|
35
|
+
Requires-Dist: pyobjc-framework-Cocoa>=12.0
|
|
36
|
+
Dynamic: author
|
|
37
|
+
Dynamic: author-email
|
|
38
|
+
Dynamic: classifier
|
|
39
|
+
Dynamic: description
|
|
40
|
+
Dynamic: description-content-type
|
|
41
|
+
Dynamic: home-page
|
|
42
|
+
Dynamic: keywords
|
|
43
|
+
Dynamic: license
|
|
44
|
+
Dynamic: platform
|
|
45
|
+
Dynamic: requires-dist
|
|
46
|
+
Dynamic: requires-python
|
|
47
|
+
Dynamic: summary
|
|
35
48
|
|
|
36
49
|
|
|
37
50
|
Wrappers for the "xpc" library on macOS.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""testsuite"""
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
from PyObjCTools.TestSupport import TestCase, min_os_level
|
|
2
|
+
|
|
3
|
+
import xpc
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class TestListener(TestCase):
|
|
7
|
+
@min_os_level("14.4")
|
|
8
|
+
def test_functions(self):
|
|
9
|
+
self.assertArgHasType(
|
|
10
|
+
xpc.xpc_listener_set_peer_code_signing_requirement, 1, b"n^t"
|
|
11
|
+
)
|
|
12
|
+
self.assertArgIsNullTerminated(
|
|
13
|
+
xpc.xpc_listener_set_peer_code_signing_requirement, 1
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
@min_os_level("26.0")
|
|
17
|
+
def test_functions26_0(self):
|
|
18
|
+
xpc.xpc_listener_set_peer_requirement
|