feat: moved from the AppleScript for asking a root access when manipulating the fans to the Helper (SMJobBless + XPC) (#1173)

This commit is contained in:
Serhiy Mytrovtsiy
2022-11-18 22:51:34 +01:00
parent ed737fe0b4
commit e9bc4cc5d3
12 changed files with 443 additions and 64 deletions

20
SMC/Helper/protocol.swift Normal file
View File

@@ -0,0 +1,20 @@
//
// protocol.swift
// Helper
//
// Created by Serhiy Mytrovtsiy on 17/11/2022
// Using Swift 5.0
// Running on macOS 13.0
//
// Copyright © 2022 Serhiy Mytrovtsiy. All rights reserved.
//
import Foundation
@objc public protocol HelperProtocol {
func version(completion: @escaping (String) -> Void)
func setSMCPath(_ path: String)
func setFanMode(id: Int, mode: Int, completion: @escaping (String?) -> Void)
func setFanSpeed(id: Int, value: Int, completion: @escaping (String?) -> Void)
}