2008-09-05 15:38:53 +00:00
|
|
|
--[[
|
|
|
|
LuCI - Lua Configuration Interface
|
|
|
|
|
|
|
|
Copyright 2008 Steven Barth <steven@midlink.org>
|
|
|
|
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
$Id$
|
|
|
|
]]--
|
|
|
|
|
2008-09-05 19:09:11 +00:00
|
|
|
local uvl = require "luci.uvl".UVL()
|
2008-09-05 15:38:53 +00:00
|
|
|
local table = require "table"
|
|
|
|
|
2008-09-05 19:27:19 +00:00
|
|
|
module "luci.jsonrpcbind.uvl"
|
2008-09-05 15:38:53 +00:00
|
|
|
_M, _PACKAGE, _NAME = nil, nil, nil
|
|
|
|
|
|
|
|
|
|
|
|
function get_scheme(...)
|
|
|
|
return uvl:get_scheme(...)
|
|
|
|
end
|
|
|
|
|
|
|
|
function validate(...)
|
2008-09-05 15:43:57 +00:00
|
|
|
return {uvl:validate(...)}
|
2008-09-05 15:38:53 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
function validate_config(...)
|
2008-09-05 15:43:57 +00:00
|
|
|
return {uvl:validate_config(...)}
|
2008-09-05 15:38:53 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
function validate_section(...)
|
2008-09-05 15:43:57 +00:00
|
|
|
return {uvl:validate_section(...)}
|
2008-09-05 15:38:53 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
function validate_option(...)
|
2008-09-05 15:43:57 +00:00
|
|
|
return {uvl:validate_option(...)}
|
2008-09-05 15:38:53 +00:00
|
|
|
end
|