mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-15 00:34:08 +09:00
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:
20
SMC/Helper/protocol.swift
Normal file
20
SMC/Helper/protocol.swift
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user