diff options
author | Felix <nbd@openwrt.org> | 2008-08-24 17:35:29 +0200 |
---|---|---|
committer | Felix <nbd@openwrt.org> | 2008-08-24 17:35:29 +0200 |
commit | 4dc75cbcd4cbd7f5f7924c4b912c2faea0ec432c (patch) | |
tree | 28879cf24f5e34cebee09f4c7d6b8c1637af3db5 | |
parent | a51c515dc1cdf93edb89484238259c941da8f3b6 (diff) | |
download | uci-4dc75cbcd4cbd7f5f7924c4b912c2faea0ec432c.tar.gz |
add .anonymous attribute for uci sections in lua
-rw-r--r-- | lua/uci.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -175,6 +175,8 @@ static void uci_push_section(lua_State *L, struct uci_section *s) struct uci_element *e; lua_newtable(L); + lua_pushboolean(L, s->anonymous); + lua_setfield(L, -2, ".anonymous"); lua_pushstring(L, s->type); lua_setfield(L, -2, ".type"); lua_pushstring(L, s->e.name); |