Files
UTM/Configuration/UTMConfiguration+System.h
T
osy 8d52f20353 UTM: Swift compatibility changes and project updates
* Old design now only built in Legacy scheme
* New iOS scheme targets iOS 14 and macOS scheme targets macOS 11
* Added stubs for Legacy not supported Swift bridge features
* Made UTMConfiguration Objective-C code more friendly to Swift
2020-09-10 12:13:36 -07:00

46 lines
1.8 KiB
Objective-C

//
// Copyright © 2020 osy. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
#import "UTMConfiguration.h"
NS_ASSUME_NONNULL_BEGIN
@interface UTMConfiguration (System)
@property (nonatomic, nullable, copy) NSString *systemArchitecture;
@property (nonatomic, nullable, copy) NSNumber *systemMemory;
@property (nonatomic, nullable, copy) NSNumber *systemCPUCount;
@property (nonatomic, nullable, copy) NSString *systemTarget;
@property (nonatomic, nullable, copy) NSString *systemBootDevice;
@property (nonatomic, nullable, copy) NSNumber *systemJitCacheSize;
@property (nonatomic, assign) BOOL systemForceMulticore;
@property (nonatomic, nullable, copy) NSString *systemUUID;
@property (nonatomic, nullable, copy) NSString *systemMachineProperties;
@property (nonatomic, nullable, readonly) NSArray<NSString *> *systemArguments;
@property (nonatomic, readonly) NSInteger countArguments;
- (void)migrateSystemConfigurationIfNecessary;
- (NSInteger)newArgument:(NSString *)argument;
- (nullable NSString *)argumentForIndex:(NSInteger)index;
- (void)moveArgumentIndex:(NSInteger)index to:(NSInteger)newIndex;
- (void)updateArgumentAtIndex:(NSInteger)index withValue:(NSString*)argument;
- (void)removeArgumentAtIndex:(NSInteger)index;
@end
NS_ASSUME_NONNULL_END