Add static system info to other OSs

This commit is contained in:
Maycon Santos
2024-11-29 00:04:36 +01:00
parent 07f0f9fdbd
commit b4b9aedf5a
5 changed files with 104 additions and 55 deletions
+5 -1
View File
@@ -16,7 +16,7 @@ import (
)
// GetInfo retrieves and parses the system information
func GetInfo(ctx context.Context) *Info {
func GetInfo(ctx context.Context, _ *StaticInfo) *Info {
kernel := "android"
osInfo := uname()
if len(osInfo) == 2 {
@@ -44,6 +44,10 @@ func GetInfo(ctx context.Context) *Info {
return gio
}
func getStaticInfo(ctx context.Context) *StaticInfo {
return nil
}
// checkFileAndProcess checks if the file path exists and if a process is running at that path.
func checkFileAndProcess(paths []string) ([]File, error) {
return []File{}, nil