mirror of
https://github.com/jahruz67/wisp-open.git
synced 2026-08-08 18:14:08 +00:00
refactor: implement cross-platform abstraction for process management, media control, and startup configuration (TESTING)
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
//go:build linux
|
||||
package platform
|
||||
|
||||
import "wis-free-v3/internal/linux"
|
||||
|
||||
func NewOverlay() Overlay {
|
||||
return linux.NewOverlay()
|
||||
}
|
||||
|
||||
func PauseMedia() bool {
|
||||
return linux.PauseMedia()
|
||||
}
|
||||
|
||||
func ResumeMedia(wasPaused bool) {
|
||||
linux.ResumeMedia(wasPaused)
|
||||
}
|
||||
|
||||
func AddToStartup() error {
|
||||
return linux.AddToStartup()
|
||||
}
|
||||
|
||||
func RemoveFromStartup() error {
|
||||
return linux.RemoveFromStartup()
|
||||
}
|
||||
|
||||
func IsInStartup() bool {
|
||||
return linux.IsInStartup()
|
||||
}
|
||||
|
||||
func IsProcessRunning(pid int) bool {
|
||||
return linux.IsProcessRunning(pid)
|
||||
}
|
||||
Reference in New Issue
Block a user