I want to know how luci web interface is calling uci for set and get?
Does the luci use uci linux command? or it's calling uci via libuci C functions ?
(Last edited by kallel on 1 Dec 2014, 09:42)
The content of this topic has been archived on 21 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.
I want to know how luci web interface is calling uci for set and get?
Does the luci use uci linux command? or it's calling uci via libuci C functions ?
(Last edited by kallel on 1 Dec 2014, 09:42)
Luci call the uci through this file, lua/luci/model/uci.lua, which is written in lua by the encapsulating uci with lua API of C. This is very convenient to use.
Hope it will help.
Wandy
So it's using the uci C functions and not the uci shell command
(Last edited by kallel on 1 Dec 2014, 11:18)
You can find the API here:
http://luci.subsignal.org/api/luci/modu … l.uci.html
I've been looking to the file to figure out whether wraps C or calls command and it seems to wrap /usr/lib/lua/uci.so. You can find the lua code here:
https://github.com/openwrt/luci/blob/d2 … el/uci.lua
I hope it helps!
The discussion might have continued from here.