summaryrefslogtreecommitdiffstats
path: root/openntpd-model.lua
diff options
context:
space:
mode:
Diffstat (limited to 'openntpd-model.lua')
-rw-r--r--openntpd-model.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/openntpd-model.lua b/openntpd-model.lua
index 9924701..097eba2 100644
--- a/openntpd-model.lua
+++ b/openntpd-model.lua
@@ -52,11 +52,11 @@ end
-- ################################################################################
-- PUBLIC FUNCTIONS
-function get_startstop(clientdata)
+function get_startstop(self, clientdata)
return modelfunctions.get_startstop(processname)
end
-function startstop_service(startstop, action)
+function startstop_service(self, startstop, action)
return modelfunctions.startstop_service(startstop, action)
end
@@ -99,7 +99,7 @@ function read_config ()
return cfe({ type="group", value=config, label="OpenNTPD Config" })
end
-function update_config(config)
+function update_config(self, config)
local success, config = validate_config(config)
if success then
@@ -158,7 +158,7 @@ function get_filedetails()
return modelfunctions.getfiledetails(configfile)
end
-function update_filedetails(filedetails)
- return modelfunctions.setfiledetails(filedetails, {configfile})
+function update_filedetails(self, filedetails)
+ return modelfunctions.setfiledetails(self, filedetails, {configfile})
end