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 windows
|
||||
package platform
|
||||
|
||||
import "wis-free-v3/internal/windows"
|
||||
|
||||
func NewOverlay() Overlay {
|
||||
return windows.NewOverlay()
|
||||
}
|
||||
|
||||
func PauseMedia() bool {
|
||||
return windows.PauseMedia()
|
||||
}
|
||||
|
||||
func ResumeMedia(wasPaused bool) {
|
||||
windows.ResumeMedia(wasPaused)
|
||||
}
|
||||
|
||||
func AddToStartup() error {
|
||||
return windows.AddToStartup()
|
||||
}
|
||||
|
||||
func RemoveFromStartup() error {
|
||||
return windows.RemoveFromStartup()
|
||||
}
|
||||
|
||||
func IsInStartup() bool {
|
||||
return windows.IsInStartup()
|
||||
}
|
||||
|
||||
func IsProcessRunning(pid int) bool {
|
||||
return windows.IsProcessRunning(pid)
|
||||
}
|
||||
Reference in New Issue
Block a user