lua: support extended section notation
authorJo-Philipp Wich <jo@mein.io>
Sun, 31 Dec 2017 10:08:22 +0000 (11:08 +0100)
committerJo-Philipp Wich <jo@mein.io>
Mon, 1 Jan 2018 15:00:09 +0000 (16:00 +0100)
commitff33bb219bc409ce3071734a1c28d9165392d6ea
tree8cfeea1fbba35456a4bfc2f0059fb7f8836b5557
parent25fd142c8dbed12354f544acbe08b3bf71075e53
lua: support extended section notation

Wrap uci_lookup_ptr() to enable extended section format lookups
when the passed section literal is in "@" notation.

This allows calls in the form `cursor:get("conf", "@stype[0]", "opt")`
which is useful to resolve options in numerically indexed anonymous
sections.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
lua/uci.c