From 4dc75cbcd4cbd7f5f7924c4b912c2faea0ec432c Mon Sep 17 00:00:00 2001 From: Felix Date: Sun, 24 Aug 2008 17:35:29 +0200 Subject: [PATCH] add .anonymous attribute for uci sections in lua --- lua/uci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/uci.c b/lua/uci.c index e833b86..f87ce27 100644 --- a/lua/uci.c +++ b/lua/uci.c @@ -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); -- 2.41.1