Add functions to access network

Former-commit-id: 3e0a772cd7
This commit is contained in:
Owen
2025-11-17 15:53:42 -05:00
parent a6670ccab3
commit ea454d0528
2 changed files with 29 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ import (
"time"
"github.com/fosrl/newt/logger"
"github.com/fosrl/olm/network"
"github.com/fosrl/olm/websocket"
)
@@ -74,3 +75,11 @@ func keepSendingPing(olm *websocket.Client) {
}
}
}
func GetNetworkSettingsJSON() (string, error) {
return network.GetJSON()
}
func GetNetworkSettingsIncrementor() int {
return network.GetIncrementor()
}