diff options
Diffstat (limited to 'libs')
-rw-r--r-- | libs/luci-lib-httpclient/luasrc/httpclient.lua | 15 | ||||
-rw-r--r-- | libs/luci-lib-httpclient/luasrc/httpclient/receiver.lua | 15 | ||||
-rw-r--r-- | libs/luci-lib-json/luasrc/json.lua | 43 | ||||
-rw-r--r-- | libs/luci-lib-rpcc/luasrc/rpcc.lua | 14 | ||||
-rw-r--r-- | libs/luci-lib-rpcc/luasrc/rpcc/ruci.lua | 14 |
5 files changed, 11 insertions, 90 deletions
diff --git a/libs/luci-lib-httpclient/luasrc/httpclient.lua b/libs/luci-lib-httpclient/luasrc/httpclient.lua index e9fec5dbb..94c2e9eca 100644 --- a/libs/luci-lib-httpclient/luasrc/httpclient.lua +++ b/libs/luci-lib-httpclient/luasrc/httpclient.lua @@ -1,16 +1,5 @@ ---[[ -LuCI - Lua Development Framework - -Copyright 2009 Steven Barth <steven@midlink.org> - -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$ -]]-- +-- Copyright 2009 Steven Barth <steven@midlink.org> +-- Licensed to the public under the Apache License 2.0. require "nixio.util" local nixio = require "nixio" diff --git a/libs/luci-lib-httpclient/luasrc/httpclient/receiver.lua b/libs/luci-lib-httpclient/luasrc/httpclient/receiver.lua index 4f08e93fe..b886e9606 100644 --- a/libs/luci-lib-httpclient/luasrc/httpclient/receiver.lua +++ b/libs/luci-lib-httpclient/luasrc/httpclient/receiver.lua @@ -1,16 +1,5 @@ ---[[ -LuCI - Lua Development Framework - -Copyright 2009 Steven Barth <steven@midlink.org> - -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$ -]]-- +-- Copyright 2009 Steven Barth <steven@midlink.org> +-- Licensed to the public under the Apache License 2.0. require "nixio.util" local nixio = require "nixio" diff --git a/libs/luci-lib-json/luasrc/json.lua b/libs/luci-lib-json/luasrc/json.lua index 8dbaf9183..9cf206e96 100644 --- a/libs/luci-lib-json/luasrc/json.lua +++ b/libs/luci-lib-json/luasrc/json.lua @@ -1,43 +1,6 @@ ---[[ -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$ - -Decoder: - Info: - null will be decoded to luci.json.null if first parameter of Decoder() is true - - Example: - decoder = luci.json.Decoder() - luci.ltn12.pump.all(luci.ltn12.source.string("decodableJSON"), decoder:sink()) - luci.util.dumptable(decoder:get()) - - Known issues: - does not support unicode conversion \uXXYY with XX != 00 will be ignored - - -Encoder: - Info: - Accepts numbers, strings, nil, booleans as they are - Accepts luci.json.null as replacement for nil - Accepts full associative and full numerically indexed tables - Mixed tables will loose their associative values during conversion - Iterator functions will be encoded as an array of their return values - Non-iterator functions will probably corrupt the encoder - - Example: - encoder = luci.json.Encoder(encodableData) - luci.ltn12.pump.all(encoder:source(), luci.ltn12.sink.file(io.open("someFile", w))) -]]-- +-- Copyright 2008 Steven Barth <steven@midlink.org> +-- Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> +-- Licensed to the public under the Apache License 2.0. local nixio = require "nixio" local util = require "luci.util" diff --git a/libs/luci-lib-rpcc/luasrc/rpcc.lua b/libs/luci-lib-rpcc/luasrc/rpcc.lua index ef94d3bbd..fc52b7eb0 100644 --- a/libs/luci-lib-rpcc/luasrc/rpcc.lua +++ b/libs/luci-lib-rpcc/luasrc/rpcc.lua @@ -1,15 +1,5 @@ ---[[ -LuCIRPCc -(c) 2009 Steven Barth <steven@midlink.org> - -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$ -]]-- +-- Copyright 2009 Steven Barth <steven@midlink.org> +-- Licensed to the public under the Apache License 2.0. local util = require "luci.util" local json = require "luci.json" diff --git a/libs/luci-lib-rpcc/luasrc/rpcc/ruci.lua b/libs/luci-lib-rpcc/luasrc/rpcc/ruci.lua index 05cb72805..666d58585 100644 --- a/libs/luci-lib-rpcc/luasrc/rpcc/ruci.lua +++ b/libs/luci-lib-rpcc/luasrc/rpcc/ruci.lua @@ -1,15 +1,5 @@ ---[[ -LuCIRPCc -(c) 2009 Steven Barth <steven@midlink.org> - -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$ -]]-- +-- Copyright 2009 Steven Barth <steven@midlink.org> +-- Licensed to the public under the Apache License 2.0. local util = require "luci.util" local rawget, setmetatable = rawget, setmetatable |