-
-
Notifications
You must be signed in to change notification settings - Fork 50
/
virtualization_12.h
48 lines (39 loc) · 2.12 KB
/
virtualization_12.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//
// virtualization_12.h
//
// Created by codehex.
//
#import "virtualization_helper.h"
#import "virtualization_view.h"
// FIXME(codehex): this is dirty hack to avoid clang-format error like below
// "Configuration file(s) do(es) not support C++: /github.com/Code-Hex/vz/.clang-format"
#define NSURLComponents NSURLComponents
bool vmCanStop(void *machine, void *queue);
void stopWithCompletionHandler(void *machine, void *queue, uintptr_t cgoHandle);
void *newVZGenericPlatformConfiguration();
void *newVZVirtioSoundDeviceInputStreamConfiguration();
void *newVZVirtioSoundDeviceHostInputStreamConfiguration(); // use in Go
void *newVZVirtioSoundDeviceOutputStreamConfiguration();
void *newVZVirtioSoundDeviceHostOutputStreamConfiguration(); // use in Go
void *newVZDiskImageStorageDeviceAttachmentWithCacheAndSyncMode(const char *diskPath, bool readOnly, int cacheMode, int syncMode, void **error);
void *newVZUSBScreenCoordinatePointingDeviceConfiguration();
void *newVZUSBKeyboardConfiguration();
void *newVZVirtioSoundDeviceConfiguration();
void setStreamsVZVirtioSoundDeviceConfiguration(void *audioDeviceConfiguration, void *streams);
void *newVZSharedDirectory(const char *dirPath, bool readOnly);
void *newVZSingleDirectoryShare(void *sharedDirectory);
void *newVZMultipleDirectoryShare(void *sharedDirectories);
void *newVZVirtioFileSystemDeviceConfiguration(const char *tag, void **error);
void setVZVirtioFileSystemDeviceConfigurationShare(void *config, void *share);
void setDirectorySharingDevicesVZVirtualMachineConfiguration(void *config, void *directorySharingDevices);
void setPlatformVZVirtualMachineConfiguration(void *config,
void *platform);
void setGraphicsDevicesVZVirtualMachineConfiguration(void *config,
void *graphicsDevices);
void setPointingDevicesVZVirtualMachineConfiguration(void *config,
void *pointingDevices);
void setKeyboardsVZVirtualMachineConfiguration(void *config,
void *keyboards);
void setAudioDevicesVZVirtualMachineConfiguration(void *config,
void *audioDevices);
void startVirtualMachineWindow(void *machine, void *queue, double width, double height, const char *title, bool enableController);