MCPcopy Create free account
hub / github.com/jetkvm/kvm / rpcSetAutoUpdateState

Function rpcSetAutoUpdateState

jsonrpc.go:222–228  ·  view source on GitHub ↗
(enabled bool)

Source from the content-addressed store, hash-verified

220}
221
222func rpcSetAutoUpdateState(enabled bool) (bool, error) {
223 config.AutoUpdateEnabled = enabled
224 if err := SaveConfig(); err != nil {
225 return config.AutoUpdateEnabled, fmt.Errorf("failed to save config: %w", err)
226 }
227 return enabled, nil
228}
229
230func rpcGetEDID() (string, error) {
231 if !isHostDisplayAdvertised() {

Callers

nothing calls this directly

Calls 2

SaveConfigFunction · 0.85
ErrorfMethod · 0.80

Tested by

no test coverage detected