Re: [OpenWrt-Devel] Parsing list of options with the callback method

2014-08-28 Thread Baptiste Jonglez
Ah, I had missed the "list_cb()" callback, which correctly receives each (key, value) pair in a list. Still, I don't think receiving "import_table_ITEM1" and "import_table_LENGTH" in the "option_cb()" is correct. I'm not sure whether it comes from this shell script: http://git.openwrt.org/?p=

[OpenWrt-Devel] Parsing list of options with the callback method

2014-08-27 Thread Baptiste Jonglez
Hi, According to [1], it should be possible to parse list of options in a UCI file using an "option_cb()" callback. It does not seem to work as expected, for instance this block: config example list 'import_table' '42' list 'import_table' '53' leads to the following calls: config_cb ex