summaryrefslogtreecommitdiffstats
path: root/qos-model.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2012-04-18 01:20:36 +0000
committerTed Trask <ttrask01@yahoo.com>2012-04-18 01:20:36 +0000
commit2e998a74933a039aa12bb9ce70f5a27d07bcc1cf (patch)
treef2ccbbe6fc490110ace2ac78b57f63f6d1220773 /qos-model.lua
parent99476b8cea8eefe835582d4609b53f9bfb44be7b (diff)
downloadacf-iproute2-qos-2e998a74933a039aa12bb9ce70f5a27d07bcc1cf.tar.bz2
acf-iproute2-qos-2e998a74933a039aa12bb9ce70f5a27d07bcc1cf.tar.xz
Started work on updating for acf-core-0.15
Removed controllerfunctions library (still needs more work and corresponding work in model) Updated startstop functionality and deleted view Updated for viewfunctions to htmlviewfunctions and modified require statements for acf libraries
Diffstat (limited to 'qos-model.lua')
-rw-r--r--qos-model.lua12
1 files changed, 8 insertions, 4 deletions
diff --git a/qos-model.lua b/qos-model.lua
index 81ba993..693ab5e 100644
--- a/qos-model.lua
+++ b/qos-model.lua
@@ -2,8 +2,8 @@ module(..., package.seeall)
-- Load libraries
require("modelfunctions")
-require("fs")
-require("format")
+fs = require("acf.fs")
+format = require("acf.format")
-- Set variables
local packagename = "iproute2-qos"
@@ -52,8 +52,12 @@ end
-- ################################################################################
-- PUBLIC FUNCTIONS
-function startstop_service(processname, action)
- return modelfunctions.startstop_service(processname, action)
+function get_startstop(clientdata)
+ return modelfunctions.get_startstop(processname)
+end
+
+function startstop_service(startstop, action)
+ return modelfunctions.startstop_service(startstop, action)
end
function getstatus()