mirror of
https://github.com/AppHouseKitchen/AlDente-Battery_Care_and_Monitoring.git
synced 2026-04-23 17:28:37 +02:00
first commit
This commit is contained in:
21
Common/HelperToolProtocol.swift
Normal file
21
Common/HelperToolProtocol.swift
Normal file
@@ -0,0 +1,21 @@
|
||||
//
|
||||
// HelperToolProtocol.swift
|
||||
// AlDente
|
||||
//
|
||||
// Created by David Wernhart on 13.02.20.
|
||||
// Copyright © 2020 David Wernhart. All rights reserved.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
let helperVersion: String = "4" //for some reason the integrated version check does not work, so I use this one
|
||||
|
||||
@objc(HelperToolProtocol) protocol HelperToolProtocol {
|
||||
//protocol HelperToolProtocol {
|
||||
func getVersion(withReply reply: @escaping (String) -> Void)
|
||||
|
||||
//TODO: more functions for other data types, altough this is sufficient for battery max charge level
|
||||
func setSMCByte(key: String, value: UInt8)
|
||||
func readSMCByte(key: String, withReply reply: @escaping (UInt8) -> Void)
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user