feat: moved all reader's values to the Codable protocol

This commit is contained in:
Serhiy Mytrovtsiy
2023-06-27 17:09:38 +02:00
parent 91603406a2
commit 1e0ba3b61f
17 changed files with 327 additions and 169 deletions

View File

@@ -21,7 +21,7 @@ public enum GPU_types: GPU_type {
case discrete = "d"
}
public struct GPU_Info {
public struct GPU_Info: Codable {
public let id: String
public let type: GPU_type
@@ -50,7 +50,7 @@ public struct GPU_Info {
}
}
public struct GPUs: value_t {
public struct GPUs: value_t, Codable {
public var list: [GPU_Info] = []
internal func active() -> [GPU_Info] {