pyobjc-framework-Virtualization 10.2__tar.gz → 11.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_virtualization-11.0/Lib/Virtualization/__init__.py +141 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/Lib/Virtualization/_metadata.py +149 -2
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/Lib/pyobjc_framework_Virtualization.egg-info/PKG-INFO +5 -5
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/Lib/pyobjc_framework_Virtualization.egg-info/SOURCES.txt +9 -4
- pyobjc_framework_virtualization-11.0/Lib/pyobjc_framework_Virtualization.egg-info/pyobjc-build-info.txt +3 -0
- pyobjc_framework_virtualization-11.0/Lib/pyobjc_framework_Virtualization.egg-info/requires.txt +2 -0
- pyobjc_framework_virtualization-11.0/Modules/_Virtualization.m +67 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/Modules/_Virtualization_protocols.m +6 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/Modules/pyobjc-api.h +1 -1
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/Modules/pyobjc-compat.h +80 -5
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/PKG-INFO +5 -5
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/PyObjCTest/test_vzerror.py +5 -0
- pyobjc_framework_virtualization-11.0/PyObjCTest/test_vzgenericplatformconfiguration.py +19 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/PyObjCTest/test_vzmacosrestoreimage.py +1 -1
- pyobjc_framework_virtualization-11.0/PyObjCTest/test_vzusbcontroller.py +14 -0
- pyobjc_framework_virtualization-11.0/PyObjCTest/test_vzusbdevice.py +9 -0
- pyobjc_framework_virtualization-11.0/PyObjCTest/test_vzusbdeviceconfiguration.py +9 -0
- pyobjc-framework-Virtualization-10.2/metadata/raw/arm64-14.0.fwinfo → pyobjc_framework_virtualization-11.0/metadata/raw/arm64-14.5.fwinfo +2 -2
- pyobjc_framework_virtualization-11.0/metadata/raw/arm64-15.0.fwinfo +8134 -0
- pyobjc-framework-Virtualization-10.2/metadata/raw/x86_64-14.0.fwinfo → pyobjc_framework_virtualization-11.0/metadata/raw/x86_64-14.5.fwinfo +2 -2
- pyobjc_framework_virtualization-11.0/metadata/raw/x86_64-15.0.fwinfo +6875 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/pyobjc_setup.py +121 -27
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/setup.py +2 -3
- pyobjc-framework-Virtualization-10.2/Lib/Virtualization/__init__.py +0 -37
- pyobjc-framework-Virtualization-10.2/Lib/pyobjc_framework_Virtualization.egg-info/requires.txt +0 -2
- pyobjc-framework-Virtualization-10.2/Modules/_Virtualization.m +0 -40
- pyobjc-framework-Virtualization-10.2/metadata/raw/arm64-12.0.fwinfo +0 -5036
- pyobjc-framework-Virtualization-10.2/metadata/raw/x86_64-12.0.fwinfo +0 -4266
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/Lib/pyobjc_framework_Virtualization.egg-info/dependency_links.txt +0 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/Lib/pyobjc_framework_Virtualization.egg-info/not-zip-safe +0 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/Lib/pyobjc_framework_Virtualization.egg-info/top_level.txt +0 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/License.txt +0 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/MANIFEST.in +0 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/PyObjCTest/__init__.py +0 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/PyObjCTest/test_virtualization.py +0 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/PyObjCTest/test_vzdiskblockdevicestoragedeviceattachment.py +0 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/PyObjCTest/test_vzdiskimagestoragedeviceattachment.py +0 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/PyObjCTest/test_vzdisksynchronizationmode.py +0 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/PyObjCTest/test_vzefivariablestore.py +0 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/PyObjCTest/test_vzfileserialportattachment.py +0 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/PyObjCTest/test_vzgraphicsdisplay.py +0 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/PyObjCTest/test_vzlinuxrosettaabstractsocketcachingoptions.py +0 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/PyObjCTest/test_vzlinuxrosettadirectoryshare.py +0 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/PyObjCTest/test_vzmacaddress.py +0 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/PyObjCTest/test_vzmacauxiliarystorage.py +0 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/PyObjCTest/test_vzmachardwaremodel.py +0 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/PyObjCTest/test_vzmacosinstaller.py +0 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/PyObjCTest/test_vzmacosvirtualmachinestartoptions.py +0 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/PyObjCTest/test_vzmultipledirectoryshare.py +0 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/PyObjCTest/test_vznetworkblockdevicestoragedeviceattachment.py +0 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/PyObjCTest/test_vzshareddirectory.py +0 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/PyObjCTest/test_vzspiceagentportattachment.py +0 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/PyObjCTest/test_vzvirtioblockdeviceconfiguration.py +0 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/PyObjCTest/test_vzvirtioconsoleportconfiguration.py +0 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/PyObjCTest/test_vzvirtiofilesystemdeviceconfiguration.py +0 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/PyObjCTest/test_vzvirtiosocketdevice.py +0 -0
- /pyobjc-framework-Virtualization-10.2/PyObjCTest/test_vzvirtiosocketListener.py → /pyobjc_framework_virtualization-11.0/PyObjCTest/test_vzvirtiosocketlistener.py +0 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/PyObjCTest/test_vzvirtualmachine.py +0 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/PyObjCTest/test_vzvirtualmachineconfiguration.py +0 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/PyObjCTest/test_vzvirtualmachinedelegate.py +0 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/PyObjCTest/test_vzvirtualmachineview.py +0 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/metadata/Virtualization.fwinfo +0 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/metadata/metadata.ini +0 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/metadata/raw/arm64-12.3.fwinfo +0 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/metadata/raw/arm64-13.0.fwinfo +0 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/metadata/raw/x86_64-11.0.fwinfo +0 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/metadata/raw/x86_64-12.3.fwinfo +0 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/metadata/raw/x86_64-13.0.fwinfo +0 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/pyproject.toml +0 -0
- {pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/setup.cfg +0 -0
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Python mapping for the Virtualization framework.
|
|
3
|
+
|
|
4
|
+
This module does not contain docstrings for the wrapped code, check Apple's
|
|
5
|
+
documentation for details on how to use these functions and classes.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def _setup():
|
|
10
|
+
import sys
|
|
11
|
+
|
|
12
|
+
import Foundation
|
|
13
|
+
import objc
|
|
14
|
+
from . import _metadata, _Virtualization
|
|
15
|
+
|
|
16
|
+
dir_func, getattr_func = objc.createFrameworkDirAndGetattr(
|
|
17
|
+
name="Virtualization",
|
|
18
|
+
frameworkIdentifier="com.apple.Virtualization",
|
|
19
|
+
frameworkPath=objc.pathForFramework(
|
|
20
|
+
"/System/Library/Frameworks/Virtualization.framework"
|
|
21
|
+
),
|
|
22
|
+
globals_dict=globals(),
|
|
23
|
+
inline_list=None,
|
|
24
|
+
parents=(
|
|
25
|
+
_Virtualization,
|
|
26
|
+
Foundation,
|
|
27
|
+
),
|
|
28
|
+
metadict=_metadata.__dict__,
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
globals()["__dir__"] = dir_func
|
|
32
|
+
globals()["__getattr__"] = getattr_func
|
|
33
|
+
|
|
34
|
+
for cls, sel in (
|
|
35
|
+
("VZDirectoryShare", b"init"),
|
|
36
|
+
("VZDirectoryShare", b"new"),
|
|
37
|
+
("VZVirtioSoundDeviceStreamConfiguration", b"init"),
|
|
38
|
+
("VZVirtioSoundDeviceStreamConfiguration", b"new"),
|
|
39
|
+
("VZVirtioConsoleDevice", b"init"),
|
|
40
|
+
("VZVirtioConsoleDevice", b"new"),
|
|
41
|
+
("VZSharedDirectory", b"init"),
|
|
42
|
+
("VZSharedDirectory", b"new"),
|
|
43
|
+
("VZBootLoader", b"init"),
|
|
44
|
+
("VZBootLoader", b"new"),
|
|
45
|
+
("VZKeyboardConfiguration", b"init"),
|
|
46
|
+
("VZKeyboardConfiguration", b"new"),
|
|
47
|
+
("VZGraphicsDevice", b"init"),
|
|
48
|
+
("VZGraphicsDevice", b"new"),
|
|
49
|
+
("VZVirtioSocketDevice", b"init"),
|
|
50
|
+
("VZVirtioSocketDevice", b"new"),
|
|
51
|
+
("VZAudioDeviceConfiguration", b"init"),
|
|
52
|
+
("VZAudioDeviceConfiguration", b"new"),
|
|
53
|
+
("VZEntropyDeviceConfiguration", b"init"),
|
|
54
|
+
("VZEntropyDeviceConfiguration", b"new"),
|
|
55
|
+
("VZGraphicsDisplayConfiguration", b"init"),
|
|
56
|
+
("VZGraphicsDisplayConfiguration", b"new"),
|
|
57
|
+
("VZMacOSRestoreImage", b"init"),
|
|
58
|
+
("VZMacOSRestoreImage", b"new"),
|
|
59
|
+
("VZSerialPortAttachment", b"init"),
|
|
60
|
+
("VZSerialPortAttachment", b"new"),
|
|
61
|
+
("VZVirtioSocketConnection", b"init"),
|
|
62
|
+
("VZVirtioSocketConnection", b"new"),
|
|
63
|
+
("VZVirtioConsolePortConfigurationArray", b"init"),
|
|
64
|
+
("VZVirtioConsolePortConfigurationArray", b"new"),
|
|
65
|
+
("VZDirectorySharingDevice", b"init"),
|
|
66
|
+
("VZDirectorySharingDevice", b"new"),
|
|
67
|
+
("VZAudioInputStreamSource", b"init"),
|
|
68
|
+
("VZAudioInputStreamSource", b"new"),
|
|
69
|
+
("VZStorageDeviceAttachment", b"init"),
|
|
70
|
+
("VZStorageDeviceAttachment", b"new"),
|
|
71
|
+
("VZFileHandleSerialPortAttachment", b"init"),
|
|
72
|
+
("VZFileHandleSerialPortAttachment", b"new"),
|
|
73
|
+
("VZGraphicsDisplay", b"init"),
|
|
74
|
+
("VZGraphicsDisplay", b"new"),
|
|
75
|
+
("VZGraphicsDeviceConfiguration", b"init"),
|
|
76
|
+
("VZGraphicsDeviceConfiguration", b"new"),
|
|
77
|
+
("VZVirtioConsolePort", b"init"),
|
|
78
|
+
("VZVirtioConsolePort", b"new"),
|
|
79
|
+
("VZFileSerialPortAttachment", b"init"),
|
|
80
|
+
("VZFileSerialPortAttachment", b"new"),
|
|
81
|
+
("VZSocketDeviceConfiguration", b"init"),
|
|
82
|
+
("VZSocketDeviceConfiguration", b"new"),
|
|
83
|
+
("VZEFIVariableStore", b"init"),
|
|
84
|
+
("VZEFIVariableStore", b"new"),
|
|
85
|
+
("VZNetworkDevice", b"init"),
|
|
86
|
+
("VZNetworkDevice", b"new"),
|
|
87
|
+
("VZLinuxRosettaCachingOptions", b"init"),
|
|
88
|
+
("VZLinuxRosettaCachingOptions", b"new"),
|
|
89
|
+
("VZConsoleDeviceConfiguration", b"init"),
|
|
90
|
+
("VZConsoleDeviceConfiguration", b"new"),
|
|
91
|
+
("VZMacOSInstaller", b"init"),
|
|
92
|
+
("VZMacOSInstaller", b"new"),
|
|
93
|
+
("VZMacOSConfigurationRequirements", b"init"),
|
|
94
|
+
("VZMacOSConfigurationRequirements", b"new"),
|
|
95
|
+
("VZVirtioTraditionalMemoryBalloonDevice", b"init"),
|
|
96
|
+
("VZVirtioTraditionalMemoryBalloonDevice", b"new"),
|
|
97
|
+
("VZMacAuxiliaryStorage", b"init"),
|
|
98
|
+
("VZMacAuxiliaryStorage", b"new"),
|
|
99
|
+
("VZConsoleDevice", b"init"),
|
|
100
|
+
("VZConsoleDevice", b"new"),
|
|
101
|
+
("VZBridgedNetworkInterface", b"init"),
|
|
102
|
+
("VZBridgedNetworkInterface", b"new"),
|
|
103
|
+
("VZSerialPortConfiguration", b"init"),
|
|
104
|
+
("VZSerialPortConfiguration", b"new"),
|
|
105
|
+
("VZMemoryBalloonDevice", b"init"),
|
|
106
|
+
("VZMemoryBalloonDevice", b"new"),
|
|
107
|
+
("VZVirtualMachine", b"init"),
|
|
108
|
+
("VZVirtualMachine", b"new"),
|
|
109
|
+
("VZAudioOutputStreamSink", b"init"),
|
|
110
|
+
("VZAudioOutputStreamSink", b"new"),
|
|
111
|
+
("VZMacHardwareModel", b"init"),
|
|
112
|
+
("VZMacHardwareModel", b"new"),
|
|
113
|
+
("VZNetworkDeviceConfiguration", b"init"),
|
|
114
|
+
("VZNetworkDeviceConfiguration", b"new"),
|
|
115
|
+
("VZDirectorySharingDeviceConfiguration", b"init"),
|
|
116
|
+
("VZDirectorySharingDeviceConfiguration", b"new"),
|
|
117
|
+
("VZSocketDevice", b"init"),
|
|
118
|
+
("VZSocketDevice", b"new"),
|
|
119
|
+
("VZMemoryBalloonDeviceConfiguration", b"init"),
|
|
120
|
+
("VZMemoryBalloonDeviceConfiguration", b"new"),
|
|
121
|
+
("VZStorageDeviceConfiguration", b"init"),
|
|
122
|
+
("VZStorageDeviceConfiguration", b"new"),
|
|
123
|
+
("VZVirtioConsolePortArray", b"init"),
|
|
124
|
+
("VZVirtioConsolePortArray", b"new"),
|
|
125
|
+
("VZPlatformConfiguration", b"init"),
|
|
126
|
+
("VZPlatformConfiguration", b"new"),
|
|
127
|
+
("VZNetworkDeviceAttachment", b"init"),
|
|
128
|
+
("VZNetworkDeviceAttachment", b"new"),
|
|
129
|
+
("VZPointingDeviceConfiguration", b"init"),
|
|
130
|
+
("VZPointingDeviceConfiguration", b"new"),
|
|
131
|
+
("VZMACAddress", b"init"),
|
|
132
|
+
("VZMACAddress", b"new"),
|
|
133
|
+
("VZConsolePortConfiguration", b"init"),
|
|
134
|
+
("VZConsolePortConfiguration", b"new"),
|
|
135
|
+
):
|
|
136
|
+
objc.registerUnavailableMethod(cls, sel)
|
|
137
|
+
|
|
138
|
+
del sys.modules["Virtualization._metadata"]
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
globals().pop("_setup")()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# This file is generated by objective.metadata
|
|
2
2
|
#
|
|
3
|
-
# Last update:
|
|
3
|
+
# Last update: Tue Jun 11 10:21:52 2024
|
|
4
4
|
#
|
|
5
5
|
# flake8: noqa
|
|
6
6
|
|
|
@@ -31,7 +31,7 @@ else:
|
|
|
31
31
|
|
|
32
32
|
misc = {}
|
|
33
33
|
constants = """$VZErrorDomain$"""
|
|
34
|
-
enums = """$VZDiskImageCachingModeAutomatic@0$VZDiskImageCachingModeCached@2$VZDiskImageCachingModeUncached@1$VZDiskImageSynchronizationModeFsync@2$VZDiskImageSynchronizationModeFull@1$VZDiskImageSynchronizationModeNone@3$VZDiskSynchronizationModeFull@0$VZDiskSynchronizationModeNone@1$VZEFIVariableStoreInitializationOptionAllowOverwrite@1$VZErrorInstallationFailed@10007$VZErrorInstallationRequiresUpdate@10006$VZErrorInternal@1$VZErrorInvalidDiskImage@5$VZErrorInvalidRestoreImage@10005$VZErrorInvalidRestoreImageCatalog@10002$VZErrorInvalidVirtualMachineConfiguration@2$VZErrorInvalidVirtualMachineState@3$VZErrorInvalidVirtualMachineStateTransition@4$VZErrorNetworkBlockDeviceDisconnected@20002$VZErrorNetworkBlockDeviceNegotiationFailed@20001$VZErrorNetworkError@7$VZErrorNoSupportedRestoreImagesInCatalog@10003$VZErrorNotSupported@10$VZErrorOperationCancelled@9$VZErrorOutOfDiskSpace@8$VZErrorRestore@12$VZErrorRestoreImageCatalogLoadFailed@10001$VZErrorRestoreImageLoadFailed@10004$VZErrorSave@11$VZErrorVirtualMachineLimitExceeded@6$VZLinuxRosettaAvailabilityInstalled@2$VZLinuxRosettaAvailabilityNotInstalled@1$VZLinuxRosettaAvailabilityNotSupported@0$VZMacAuxiliaryStorageInitializationOptionAllowOverwrite@1$VZVirtualMachineStateError@3$VZVirtualMachineStatePaused@2$VZVirtualMachineStatePausing@5$VZVirtualMachineStateRestoring@9$VZVirtualMachineStateResuming@6$VZVirtualMachineStateRunning@1$VZVirtualMachineStateSaving@8$VZVirtualMachineStateStarting@4$VZVirtualMachineStateStopped@0$VZVirtualMachineStateStopping@7$"""
|
|
34
|
+
enums = """$VZDiskImageCachingModeAutomatic@0$VZDiskImageCachingModeCached@2$VZDiskImageCachingModeUncached@1$VZDiskImageSynchronizationModeFsync@2$VZDiskImageSynchronizationModeFull@1$VZDiskImageSynchronizationModeNone@3$VZDiskSynchronizationModeFull@0$VZDiskSynchronizationModeNone@1$VZEFIVariableStoreInitializationOptionAllowOverwrite@1$VZErrorDeviceAlreadyAttached@30002$VZErrorDeviceInitializationFailure@30003$VZErrorDeviceNotFound@30004$VZErrorInstallationFailed@10007$VZErrorInstallationRequiresUpdate@10006$VZErrorInternal@1$VZErrorInvalidDiskImage@5$VZErrorInvalidRestoreImage@10005$VZErrorInvalidRestoreImageCatalog@10002$VZErrorInvalidVirtualMachineConfiguration@2$VZErrorInvalidVirtualMachineState@3$VZErrorInvalidVirtualMachineStateTransition@4$VZErrorNetworkBlockDeviceDisconnected@20002$VZErrorNetworkBlockDeviceNegotiationFailed@20001$VZErrorNetworkError@7$VZErrorNoSupportedRestoreImagesInCatalog@10003$VZErrorNotSupported@10$VZErrorOperationCancelled@9$VZErrorOutOfDiskSpace@8$VZErrorRestore@12$VZErrorRestoreImageCatalogLoadFailed@10001$VZErrorRestoreImageLoadFailed@10004$VZErrorSave@11$VZErrorUSBControllerNotFound@30001$VZErrorVirtualMachineLimitExceeded@6$VZLinuxRosettaAvailabilityInstalled@2$VZLinuxRosettaAvailabilityNotInstalled@1$VZLinuxRosettaAvailabilityNotSupported@0$VZMacAuxiliaryStorageInitializationOptionAllowOverwrite@1$VZVirtualMachineStateError@3$VZVirtualMachineStatePaused@2$VZVirtualMachineStatePausing@5$VZVirtualMachineStateRestoring@9$VZVirtualMachineStateResuming@6$VZVirtualMachineStateRunning@1$VZVirtualMachineStateSaving@8$VZVirtualMachineStateStarting@4$VZVirtualMachineStateStopped@0$VZVirtualMachineStateStopping@7$"""
|
|
35
35
|
misc.update(
|
|
36
36
|
{
|
|
37
37
|
"VZVirtualMachineState": NewType("VZVirtualMachineState", int),
|
|
@@ -111,6 +111,13 @@ try:
|
|
|
111
111
|
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}, 4: {"type": b"@"}},
|
|
112
112
|
},
|
|
113
113
|
)
|
|
114
|
+
r(
|
|
115
|
+
b"NSObject",
|
|
116
|
+
b"setUuid:",
|
|
117
|
+
{"required": True, "retval": {"type": b"v"}, "arguments": {2: {"type": b"@"}}},
|
|
118
|
+
)
|
|
119
|
+
r(b"NSObject", b"usbController", {"required": True, "retval": {"type": b"@"}})
|
|
120
|
+
r(b"NSObject", b"uuid", {"required": True, "retval": {"type": b"@"}})
|
|
114
121
|
r(
|
|
115
122
|
b"NSObject",
|
|
116
123
|
b"virtualMachine:didStopWithError:",
|
|
@@ -161,6 +168,21 @@ try:
|
|
|
161
168
|
b"initWithURL:append:error:",
|
|
162
169
|
{"arguments": {3: {"type": b"Z"}, 4: {"type_modifier": b"o"}}},
|
|
163
170
|
)
|
|
171
|
+
r(
|
|
172
|
+
b"VZGenericPlatformConfiguration",
|
|
173
|
+
b"isNestedVirtualizationEnabled",
|
|
174
|
+
{"retval": {"type": b"Z"}},
|
|
175
|
+
)
|
|
176
|
+
r(
|
|
177
|
+
b"VZGenericPlatformConfiguration",
|
|
178
|
+
b"isNestedVirtualizationSupported",
|
|
179
|
+
{"retval": {"type": b"Z"}},
|
|
180
|
+
)
|
|
181
|
+
r(
|
|
182
|
+
b"VZGenericPlatformConfiguration",
|
|
183
|
+
b"setNestedVirtualizationEnabled:",
|
|
184
|
+
{"arguments": {2: {"type": b"Z"}}},
|
|
185
|
+
)
|
|
164
186
|
r(
|
|
165
187
|
b"VZGraphicsDisplay",
|
|
166
188
|
b"reconfigureWithConfiguration:error:",
|
|
@@ -314,6 +336,34 @@ try:
|
|
|
314
336
|
{"arguments": {2: {"type": b"Z"}}},
|
|
315
337
|
)
|
|
316
338
|
r(b"VZSpiceAgentPortAttachment", b"sharesClipboard", {"retval": {"type": b"Z"}})
|
|
339
|
+
r(
|
|
340
|
+
b"VZUSBController",
|
|
341
|
+
b"attachDevice:completionHandler:",
|
|
342
|
+
{
|
|
343
|
+
"arguments": {
|
|
344
|
+
3: {
|
|
345
|
+
"callable": {
|
|
346
|
+
"retval": {"type": b"v"},
|
|
347
|
+
"arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
)
|
|
353
|
+
r(
|
|
354
|
+
b"VZUSBController",
|
|
355
|
+
b"detachDevice:completionHandler:",
|
|
356
|
+
{
|
|
357
|
+
"arguments": {
|
|
358
|
+
3: {
|
|
359
|
+
"callable": {
|
|
360
|
+
"retval": {"type": b"v"},
|
|
361
|
+
"arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
)
|
|
317
367
|
r(
|
|
318
368
|
b"VZVirtioBlockDeviceConfiguration",
|
|
319
369
|
b"validateBlockDeviceIdentifier:error:",
|
|
@@ -485,6 +535,103 @@ try:
|
|
|
485
535
|
)
|
|
486
536
|
finally:
|
|
487
537
|
objc._updatingMetadata(False)
|
|
538
|
+
|
|
539
|
+
objc.registerNewKeywordsFromSelector(
|
|
540
|
+
"VZBridgedNetworkDeviceAttachment", b"initWithInterface:"
|
|
541
|
+
)
|
|
542
|
+
objc.registerNewKeywordsFromSelector(
|
|
543
|
+
"VZDiskBlockDeviceStorageDeviceAttachment",
|
|
544
|
+
b"initWithFileHandle:readOnly:synchronizationMode:error:",
|
|
545
|
+
)
|
|
546
|
+
objc.registerNewKeywordsFromSelector(
|
|
547
|
+
"VZDiskImageStorageDeviceAttachment",
|
|
548
|
+
b"initWithURL:readOnly:cachingMode:synchronizationMode:error:",
|
|
549
|
+
)
|
|
550
|
+
objc.registerNewKeywordsFromSelector(
|
|
551
|
+
"VZDiskImageStorageDeviceAttachment", b"initWithURL:readOnly:error:"
|
|
552
|
+
)
|
|
553
|
+
objc.registerNewKeywordsFromSelector(
|
|
554
|
+
"VZEFIVariableStore", b"initCreatingVariableStoreAtURL:options:error:"
|
|
555
|
+
)
|
|
556
|
+
objc.registerNewKeywordsFromSelector("VZEFIVariableStore", b"initWithURL:")
|
|
557
|
+
objc.registerNewKeywordsFromSelector(
|
|
558
|
+
"VZFileHandleNetworkDeviceAttachment", b"initWithFileHandle:"
|
|
559
|
+
)
|
|
560
|
+
objc.registerNewKeywordsFromSelector(
|
|
561
|
+
"VZFileHandleSerialPortAttachment",
|
|
562
|
+
b"initWithFileHandleForReading:fileHandleForWriting:",
|
|
563
|
+
)
|
|
564
|
+
objc.registerNewKeywordsFromSelector(
|
|
565
|
+
"VZFileSerialPortAttachment", b"initWithURL:append:error:"
|
|
566
|
+
)
|
|
567
|
+
objc.registerNewKeywordsFromSelector(
|
|
568
|
+
"VZGenericMachineIdentifier", b"initWithDataRepresentation:"
|
|
569
|
+
)
|
|
570
|
+
objc.registerNewKeywordsFromSelector("VZLinuxBootLoader", b"initWithKernelURL:")
|
|
571
|
+
objc.registerNewKeywordsFromSelector(
|
|
572
|
+
"VZLinuxRosettaAbstractSocketCachingOptions", b"initWithName:error:"
|
|
573
|
+
)
|
|
574
|
+
objc.registerNewKeywordsFromSelector("VZLinuxRosettaDirectoryShare", b"initWithError:")
|
|
575
|
+
objc.registerNewKeywordsFromSelector(
|
|
576
|
+
"VZLinuxRosettaUnixSocketCachingOptions", b"initWithPath:error:"
|
|
577
|
+
)
|
|
578
|
+
objc.registerNewKeywordsFromSelector("VZMACAddress", b"initWithEthernetAddress:")
|
|
579
|
+
objc.registerNewKeywordsFromSelector("VZMACAddress", b"initWithString:")
|
|
580
|
+
objc.registerNewKeywordsFromSelector(
|
|
581
|
+
"VZMacAuxiliaryStorage", b"initCreatingStorageAtURL:hardwareModel:options:error:"
|
|
582
|
+
)
|
|
583
|
+
objc.registerNewKeywordsFromSelector("VZMacAuxiliaryStorage", b"initWithContentsOfURL:")
|
|
584
|
+
objc.registerNewKeywordsFromSelector("VZMacAuxiliaryStorage", b"initWithURL:")
|
|
585
|
+
objc.registerNewKeywordsFromSelector(
|
|
586
|
+
"VZMacGraphicsDisplayConfiguration", b"initForScreen:sizeInPoints:"
|
|
587
|
+
)
|
|
588
|
+
objc.registerNewKeywordsFromSelector(
|
|
589
|
+
"VZMacGraphicsDisplayConfiguration",
|
|
590
|
+
b"initWithWidthInPixels:heightInPixels:pixelsPerInch:",
|
|
591
|
+
)
|
|
592
|
+
objc.registerNewKeywordsFromSelector(
|
|
593
|
+
"VZMacHardwareModel", b"initWithDataRepresentation:"
|
|
594
|
+
)
|
|
595
|
+
objc.registerNewKeywordsFromSelector(
|
|
596
|
+
"VZMacMachineIdentifier", b"initWithDataRepresentation:"
|
|
597
|
+
)
|
|
598
|
+
objc.registerNewKeywordsFromSelector(
|
|
599
|
+
"VZMacOSInstaller", b"initWithVirtualMachine:restoreImageURL:"
|
|
600
|
+
)
|
|
601
|
+
objc.registerNewKeywordsFromSelector(
|
|
602
|
+
"VZMultipleDirectoryShare", b"initWithDirectories:"
|
|
603
|
+
)
|
|
604
|
+
objc.registerNewKeywordsFromSelector(
|
|
605
|
+
"VZNVMExpressControllerDeviceConfiguration", b"initWithAttachment:"
|
|
606
|
+
)
|
|
607
|
+
objc.registerNewKeywordsFromSelector(
|
|
608
|
+
"VZNetworkBlockDeviceStorageDeviceAttachment", b"initWithURL:error:"
|
|
609
|
+
)
|
|
610
|
+
objc.registerNewKeywordsFromSelector(
|
|
611
|
+
"VZNetworkBlockDeviceStorageDeviceAttachment",
|
|
612
|
+
b"initWithURL:timeout:forcedReadOnly:synchronizationMode:error:",
|
|
613
|
+
)
|
|
614
|
+
objc.registerNewKeywordsFromSelector("VZSharedDirectory", b"initWithURL:readOnly:")
|
|
615
|
+
objc.registerNewKeywordsFromSelector("VZSingleDirectoryShare", b"initWithDirectory:")
|
|
616
|
+
objc.registerNewKeywordsFromSelector(
|
|
617
|
+
"VZUSBMassStorageDevice", b"initWithConfiguration:"
|
|
618
|
+
)
|
|
619
|
+
objc.registerNewKeywordsFromSelector(
|
|
620
|
+
"VZUSBMassStorageDeviceConfiguration", b"initWithAttachment:"
|
|
621
|
+
)
|
|
622
|
+
objc.registerNewKeywordsFromSelector(
|
|
623
|
+
"VZVirtioBlockDeviceConfiguration", b"initWithAttachment:"
|
|
624
|
+
)
|
|
625
|
+
objc.registerNewKeywordsFromSelector(
|
|
626
|
+
"VZVirtioFileSystemDeviceConfiguration", b"initWithTag:"
|
|
627
|
+
)
|
|
628
|
+
objc.registerNewKeywordsFromSelector(
|
|
629
|
+
"VZVirtioGraphicsScanoutConfiguration", b"initWithWidthInPixels:heightInPixels:"
|
|
630
|
+
)
|
|
631
|
+
objc.registerNewKeywordsFromSelector("VZVirtualMachine", b"initWithConfiguration:")
|
|
632
|
+
objc.registerNewKeywordsFromSelector(
|
|
633
|
+
"VZVirtualMachine", b"initWithConfiguration:queue:"
|
|
634
|
+
)
|
|
488
635
|
expressions = {}
|
|
489
636
|
|
|
490
637
|
# END OF FILE
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pyobjc-framework-Virtualization
|
|
3
|
-
Version:
|
|
3
|
+
Version: 11.0
|
|
4
4
|
Summary: Wrappers for the framework Virtualization on macOS
|
|
5
5
|
Home-page: https://github.com/ronaldoussoren/pyobjc
|
|
6
6
|
Author: Ronald Oussoren
|
|
@@ -18,20 +18,20 @@ Classifier: Operating System :: MacOS :: MacOS X
|
|
|
18
18
|
Classifier: Programming Language :: Python
|
|
19
19
|
Classifier: Programming Language :: Python :: 3
|
|
20
20
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
21
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
22
21
|
Classifier: Programming Language :: Python :: 3.9
|
|
23
22
|
Classifier: Programming Language :: Python :: 3.10
|
|
24
23
|
Classifier: Programming Language :: Python :: 3.11
|
|
25
24
|
Classifier: Programming Language :: Python :: 3.12
|
|
26
25
|
Classifier: Programming Language :: Python :: 3.13
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
27
27
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
28
28
|
Classifier: Programming Language :: Objective C
|
|
29
29
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
30
30
|
Classifier: Topic :: Software Development :: User Interfaces
|
|
31
|
-
Requires-Python: >=3.
|
|
31
|
+
Requires-Python: >=3.9
|
|
32
32
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
33
|
-
Requires-Dist: pyobjc-core>=
|
|
34
|
-
Requires-Dist: pyobjc-framework-Cocoa>=
|
|
33
|
+
Requires-Dist: pyobjc-core>=11.0
|
|
34
|
+
Requires-Dist: pyobjc-framework-Cocoa>=11.0
|
|
35
35
|
Project-URL: Documentation, https://pyobjc.readthedocs.io/en/latest/
|
|
36
36
|
Project-URL: Issue tracker, https://github.com/ronaldoussoren/pyobjc/issues
|
|
37
37
|
Project-URL: Repository, https://github.com/ronaldoussoren/pyobjc
|
|
@@ -9,6 +9,7 @@ Lib/pyobjc_framework_Virtualization.egg-info/PKG-INFO
|
|
|
9
9
|
Lib/pyobjc_framework_Virtualization.egg-info/SOURCES.txt
|
|
10
10
|
Lib/pyobjc_framework_Virtualization.egg-info/dependency_links.txt
|
|
11
11
|
Lib/pyobjc_framework_Virtualization.egg-info/not-zip-safe
|
|
12
|
+
Lib/pyobjc_framework_Virtualization.egg-info/pyobjc-build-info.txt
|
|
12
13
|
Lib/pyobjc_framework_Virtualization.egg-info/requires.txt
|
|
13
14
|
Lib/pyobjc_framework_Virtualization.egg-info/top_level.txt
|
|
14
15
|
Modules/_Virtualization.m
|
|
@@ -23,6 +24,7 @@ PyObjCTest/test_vzdisksynchronizationmode.py
|
|
|
23
24
|
PyObjCTest/test_vzefivariablestore.py
|
|
24
25
|
PyObjCTest/test_vzerror.py
|
|
25
26
|
PyObjCTest/test_vzfileserialportattachment.py
|
|
27
|
+
PyObjCTest/test_vzgenericplatformconfiguration.py
|
|
26
28
|
PyObjCTest/test_vzgraphicsdisplay.py
|
|
27
29
|
PyObjCTest/test_vzlinuxrosettaabstractsocketcachingoptions.py
|
|
28
30
|
PyObjCTest/test_vzlinuxrosettadirectoryshare.py
|
|
@@ -36,6 +38,9 @@ PyObjCTest/test_vzmultipledirectoryshare.py
|
|
|
36
38
|
PyObjCTest/test_vznetworkblockdevicestoragedeviceattachment.py
|
|
37
39
|
PyObjCTest/test_vzshareddirectory.py
|
|
38
40
|
PyObjCTest/test_vzspiceagentportattachment.py
|
|
41
|
+
PyObjCTest/test_vzusbcontroller.py
|
|
42
|
+
PyObjCTest/test_vzusbdevice.py
|
|
43
|
+
PyObjCTest/test_vzusbdeviceconfiguration.py
|
|
39
44
|
PyObjCTest/test_vzvirtioblockdeviceconfiguration.py
|
|
40
45
|
PyObjCTest/test_vzvirtioconsoleportconfiguration.py
|
|
41
46
|
PyObjCTest/test_vzvirtiofilesystemdeviceconfiguration.py
|
|
@@ -48,12 +53,12 @@ PyObjCTest/test_vzvirtualmachinedelegate.py
|
|
|
48
53
|
PyObjCTest/test_vzvirtualmachineview.py
|
|
49
54
|
metadata/Virtualization.fwinfo
|
|
50
55
|
metadata/metadata.ini
|
|
51
|
-
metadata/raw/arm64-12.0.fwinfo
|
|
52
56
|
metadata/raw/arm64-12.3.fwinfo
|
|
53
57
|
metadata/raw/arm64-13.0.fwinfo
|
|
54
|
-
metadata/raw/arm64-14.
|
|
58
|
+
metadata/raw/arm64-14.5.fwinfo
|
|
59
|
+
metadata/raw/arm64-15.0.fwinfo
|
|
55
60
|
metadata/raw/x86_64-11.0.fwinfo
|
|
56
|
-
metadata/raw/x86_64-12.0.fwinfo
|
|
57
61
|
metadata/raw/x86_64-12.3.fwinfo
|
|
58
62
|
metadata/raw/x86_64-13.0.fwinfo
|
|
59
|
-
metadata/raw/x86_64-14.
|
|
63
|
+
metadata/raw/x86_64-14.5.fwinfo
|
|
64
|
+
metadata/raw/x86_64-15.0.fwinfo
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
#define PY_SSIZE_T_CLEAN
|
|
2
|
+
#include "Python.h"
|
|
3
|
+
#include "pyobjc-api.h"
|
|
4
|
+
|
|
5
|
+
#import <Foundation/Foundation.h>
|
|
6
|
+
#import <Virtualization/Virtualization.h>
|
|
7
|
+
|
|
8
|
+
/* We include the source code here instead of
|
|
9
|
+
* using the linker due to limitations in pyobjc-api.h
|
|
10
|
+
*/
|
|
11
|
+
#include "_Virtualization_protocols.m"
|
|
12
|
+
|
|
13
|
+
static PyMethodDef mod_methods[] = {
|
|
14
|
+
{0, 0, 0, 0} /* sentinel */
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
static int mod_exec_module(PyObject* m)
|
|
18
|
+
{
|
|
19
|
+
return 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
static struct PyModuleDef_Slot mod_slots[] = {
|
|
23
|
+
{
|
|
24
|
+
.slot = Py_mod_exec,
|
|
25
|
+
.value = (void*)mod_exec_module
|
|
26
|
+
},
|
|
27
|
+
#if PY_VERSION_HEX >= 0x030c0000
|
|
28
|
+
{
|
|
29
|
+
/* This extension does not use the CPython API other than initializing
|
|
30
|
+
* the module, hence is safe with subinterpreters and per-interpreter
|
|
31
|
+
* GILs
|
|
32
|
+
*/
|
|
33
|
+
.slot = Py_mod_multiple_interpreters,
|
|
34
|
+
.value = Py_MOD_PER_INTERPRETER_GIL_SUPPORTED,
|
|
35
|
+
},
|
|
36
|
+
#endif
|
|
37
|
+
#if PY_VERSION_HEX >= 0x030d0000
|
|
38
|
+
{
|
|
39
|
+
/* The code in this extension should be safe to use without the GIL */
|
|
40
|
+
.slot = Py_mod_gil,
|
|
41
|
+
.value = Py_MOD_GIL_NOT_USED,
|
|
42
|
+
},
|
|
43
|
+
#endif
|
|
44
|
+
{ /* Sentinel */
|
|
45
|
+
.slot = 0,
|
|
46
|
+
.value = 0
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
static struct PyModuleDef mod_module = {
|
|
51
|
+
.m_base = PyModuleDef_HEAD_INIT,
|
|
52
|
+
.m_name = "_Virtualization",
|
|
53
|
+
.m_doc = NULL,
|
|
54
|
+
.m_size = 0,
|
|
55
|
+
.m_methods = mod_methods,
|
|
56
|
+
.m_slots = mod_slots,
|
|
57
|
+
.m_traverse = NULL,
|
|
58
|
+
.m_clear = NULL,
|
|
59
|
+
.m_free = NULL,
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
PyObject* PyInit__Virtualization(void);
|
|
63
|
+
|
|
64
|
+
PyObject* __attribute__((__visibility__("default"))) PyInit__Virtualization(void)
|
|
65
|
+
{
|
|
66
|
+
return PyModuleDef_Init(&mod_module);
|
|
67
|
+
}
|
|
@@ -23,4 +23,10 @@ static void __attribute__((__used__)) use_protocols(void)
|
|
|
23
23
|
p = PyObjC_IdToPython(@protocol(VZNetworkBlockDeviceStorageDeviceAttachmentDelegate));
|
|
24
24
|
Py_XDECREF(p);
|
|
25
25
|
#endif
|
|
26
|
+
#if PyObjC_BUILD_RELEASE >= 1500
|
|
27
|
+
p = PyObjC_IdToPython(@protocol(VZUSBDeviceConfiguration));
|
|
28
|
+
Py_XDECREF(p);
|
|
29
|
+
p = PyObjC_IdToPython(@protocol(VZUSBDevice));
|
|
30
|
+
Py_XDECREF(p);
|
|
31
|
+
#endif
|
|
26
32
|
}
|
{pyobjc-framework-Virtualization-10.2 → pyobjc_framework_virtualization-11.0}/Modules/pyobjc-api.h
RENAMED
|
@@ -83,7 +83,7 @@ struct pyobjc_api {
|
|
|
83
83
|
PyObject* _Nullable (*_Nonnull unsupported_method_caller)(
|
|
84
84
|
PyObject* _Nonnull, PyObject* _Nonnull, PyObject* _Nonnull const* _Nonnull,
|
|
85
85
|
size_t);
|
|
86
|
-
void (*_Nonnull err_python_to_objc_gil)(PyGILState_STATE* _Nonnull state);
|
|
86
|
+
void (*_Nonnull err_python_to_objc_gil)(PyGILState_STATE* _Nonnull state) __attribute__((__noreturn__));
|
|
87
87
|
int (*_Nonnull simplify_sig)(const char* signature, char* buf, size_t buflen);
|
|
88
88
|
void (*_Nonnull free_c_array)(int, Py_buffer*);
|
|
89
89
|
int (*_Nonnull py_to_c_array)(BOOL, BOOL, const char* _Nonnull, PyObject* _Nonnull,
|
|
@@ -11,6 +11,12 @@
|
|
|
11
11
|
|
|
12
12
|
NS_ASSUME_NONNULL_BEGIN
|
|
13
13
|
|
|
14
|
+
#ifdef USE_STATIC_ANALYZER
|
|
15
|
+
#define CLANG_SUPPRESS [[clang::suppress]]
|
|
16
|
+
#else
|
|
17
|
+
#define CLANG_SUPPRESS
|
|
18
|
+
#endif
|
|
19
|
+
|
|
14
20
|
/*
|
|
15
21
|
*
|
|
16
22
|
* Start of compiler definitions
|
|
@@ -153,10 +159,6 @@ extern PyObject* _Nullable PyObject_VectorcallMethod(
|
|
|
153
159
|
|
|
154
160
|
extern int PyObjC_Cmp(PyObject* o1, PyObject* o2, int* result);
|
|
155
161
|
|
|
156
|
-
extern PyObject* _Nullable PyObjCBytes_InternFromString(const char* v);
|
|
157
|
-
extern PyObject* _Nullable PyObjCBytes_InternFromStringAndSize(const char* v,
|
|
158
|
-
Py_ssize_t l);
|
|
159
|
-
|
|
160
162
|
/*
|
|
161
163
|
* A micro optimization: when using Python 3.3 or later it
|
|
162
164
|
* is possible to access a 'char*' with an ASCII representation
|
|
@@ -238,7 +240,80 @@ _PyObjCTuple_GetItem(PyObject* tuple, Py_ssize_t idx)
|
|
|
238
240
|
PyGILState_Release(_GILState); \
|
|
239
241
|
} while (0)
|
|
240
242
|
|
|
241
|
-
|
|
243
|
+
#if PY_VERSION_HEX < 0x030a0000
|
|
244
|
+
|
|
245
|
+
static inline PyObject* Py_NewRef(PyObject* o)
|
|
246
|
+
{
|
|
247
|
+
Py_INCREF(o);
|
|
248
|
+
return o;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
static inline PyObject* Py_XNewRef(PyObject* o)
|
|
252
|
+
{
|
|
253
|
+
Py_XINCREF(o);
|
|
254
|
+
return o;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
#endif /* PY_VERSION_HEX < 0x030a0000 */
|
|
258
|
+
|
|
259
|
+
#if PY_VERSION_HEX < 0x030d0000
|
|
260
|
+
#define Py_BEGIN_CRITICAL_SECTION(value) { (void)(value);
|
|
261
|
+
#define Py_END_CRITICAL_SECTION() }
|
|
262
|
+
#define Py_EXIT_CRITICAL_SECTION() ((void)0)
|
|
263
|
+
|
|
264
|
+
#define Py_BEGIN_CRITICAL_SECTION2(value1, value2) { (void)(value1); (void)(value2);
|
|
265
|
+
#define Py_END_CRITICAL_SECTION2() }
|
|
266
|
+
#define Py_EXIT_CRITICAL_SECTION2() ((void)0)
|
|
267
|
+
|
|
268
|
+
#define PyObjC_ATOMIC
|
|
269
|
+
|
|
270
|
+
#else
|
|
271
|
+
|
|
272
|
+
#ifdef Py_GIL_DISABLED
|
|
273
|
+
#define Py_EXIT_CRITICAL_SECTION() PyCriticalSection_End(&_py_cs)
|
|
274
|
+
#define Py_EXIT_CRITICAL_SECTION2() PyCriticalSection2_End(&_py_cs2)
|
|
275
|
+
#define PyObjC_ATOMIC _Atomic
|
|
276
|
+
#else
|
|
277
|
+
#define Py_EXIT_CRITICAL_SECTION() ((void)0)
|
|
278
|
+
#define Py_EXIT_CRITICAL_SECTION2() ((void)0)
|
|
279
|
+
#define PyObjC_ATOMIC
|
|
280
|
+
#endif
|
|
281
|
+
|
|
282
|
+
#endif
|
|
283
|
+
|
|
284
|
+
#if PY_VERSION_HEX < 0x030d0000
|
|
285
|
+
static inline int PyDict_GetItemRef(PyObject *p, PyObject *key, PyObject * _Nonnull* _Nullable result)
|
|
286
|
+
{
|
|
287
|
+
*result = PyDict_GetItemWithError(p, key);
|
|
288
|
+
if (*result == NULL) {
|
|
289
|
+
if (PyErr_Occurred()) {
|
|
290
|
+
return -1;
|
|
291
|
+
} else {
|
|
292
|
+
return 0;
|
|
293
|
+
}
|
|
294
|
+
} else {
|
|
295
|
+
Py_INCREF(*result);
|
|
296
|
+
return 1;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
static inline PyObject* _Nullable PyList_GetItemRef(PyObject* l, Py_ssize_t i)
|
|
301
|
+
{
|
|
302
|
+
PyObject* result = PyList_GetItem(l, i);
|
|
303
|
+
Py_XINCREF(result);
|
|
304
|
+
return result;
|
|
305
|
+
}
|
|
306
|
+
#endif
|
|
307
|
+
|
|
308
|
+
#if PY_VERSION_HEX < 0x030c0000
|
|
309
|
+
static inline PyObject* PyType_GetDict(PyTypeObject* type)
|
|
310
|
+
{
|
|
311
|
+
PyObject* result = type->tp_dict;
|
|
312
|
+
Py_INCREF(result);
|
|
313
|
+
return result;
|
|
314
|
+
}
|
|
315
|
+
#endif
|
|
316
|
+
|
|
242
317
|
|
|
243
318
|
NS_ASSUME_NONNULL_END
|
|
244
319
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pyobjc-framework-Virtualization
|
|
3
|
-
Version:
|
|
3
|
+
Version: 11.0
|
|
4
4
|
Summary: Wrappers for the framework Virtualization on macOS
|
|
5
5
|
Home-page: https://github.com/ronaldoussoren/pyobjc
|
|
6
6
|
Author: Ronald Oussoren
|
|
@@ -18,20 +18,20 @@ Classifier: Operating System :: MacOS :: MacOS X
|
|
|
18
18
|
Classifier: Programming Language :: Python
|
|
19
19
|
Classifier: Programming Language :: Python :: 3
|
|
20
20
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
21
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
22
21
|
Classifier: Programming Language :: Python :: 3.9
|
|
23
22
|
Classifier: Programming Language :: Python :: 3.10
|
|
24
23
|
Classifier: Programming Language :: Python :: 3.11
|
|
25
24
|
Classifier: Programming Language :: Python :: 3.12
|
|
26
25
|
Classifier: Programming Language :: Python :: 3.13
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
27
27
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
28
28
|
Classifier: Programming Language :: Objective C
|
|
29
29
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
30
30
|
Classifier: Topic :: Software Development :: User Interfaces
|
|
31
|
-
Requires-Python: >=3.
|
|
31
|
+
Requires-Python: >=3.9
|
|
32
32
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
33
|
-
Requires-Dist: pyobjc-core>=
|
|
34
|
-
Requires-Dist: pyobjc-framework-Cocoa>=
|
|
33
|
+
Requires-Dist: pyobjc-core>=11.0
|
|
34
|
+
Requires-Dist: pyobjc-framework-Cocoa>=11.0
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
Wrappers for the "Virtualization" framework on macOS.
|
|
@@ -29,3 +29,8 @@ class TestVZError(TestCase):
|
|
|
29
29
|
Virtualization.VZErrorNetworkBlockDeviceNegotiationFailed, 20001
|
|
30
30
|
)
|
|
31
31
|
self.assertEqual(Virtualization.VZErrorNetworkBlockDeviceDisconnected, 20002)
|
|
32
|
+
|
|
33
|
+
self.assertEqual(Virtualization.VZErrorUSBControllerNotFound, 30001)
|
|
34
|
+
self.assertEqual(Virtualization.VZErrorDeviceAlreadyAttached, 30002)
|
|
35
|
+
self.assertEqual(Virtualization.VZErrorDeviceInitializationFailure, 30003)
|
|
36
|
+
self.assertEqual(Virtualization.VZErrorDeviceNotFound, 30004)
|