Add bitfield_set function from libubox. The bitfield functions and macros where removed from libubox. Add the bitfield_set function which is used by uci, and prefix it with uci_. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Revert "mandatory anonymous section identifier" This reverts commits: df72af474075 "mandatory anonymous section identifier" 2eb9c097e392 "cli: remove now-defunct UCI_FLAG_EXPORT_NAME support" fe45f97302cb "test: adjust for auto-naming anonymous sections" After some discussion we came to the conclusion that we need a different fix. Signed-off-by: Felix Fietkau <nbd@nbd.name>
cli: remove now-defunct UCI_FLAG_EXPORT_NAME support Preserve command line switches for compatibility reasons Signed-off-by: Felix Fietkau <nbd@nbd.name>
mandatory anonymous section identifier This change makes sure there are no more anonymous (unnamed) sections in configuration files. Previously it was optional and now the choice is being removed. All sections will have generated identifiers. This is important because anonymous sections will be simpler to manipulate. Signed-off-by: Antonio Paunovic <antonio.paunovic@sartura.hr> Signed-off-by: Luka Perkov <luka.perkov@sartura.hr>
Fix delta path handling. - Make ctx->savedir sit at the end of ctx->delta_path. - Add notes to uci_set_savedir() and uci_add_delta_path() to document the behaviour changes.
Add a few notes on the return value of uci_lookup_ptr(). While at it, use UCI_OK instead of literal integer 0 for return value of uci_lookup_ptr(). Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
delta: use a table for converting between UCI_CMD_XXX and prefixes. Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
delta: add a simple duplication check when adding delta path. Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
remove unused hook support Signed-off-by: Felix Fietkau <nbd@openwrt.org>
remove plugin support, it has been unused for a long time and should not be used for any new code Signed-off-by: Felix Fietkau <nbd@openwrt.org>
add new command del_list
fix lgpl license headers
constify arguments to parser function
add parser helpers similar to the blobmsg parser in libubox
improve support for C++ stuff
add a helper function for looking up an option string
fix return value in inline lookup functions
add convenience functions for looking up packages/sections/options
uci_history -> uci_delta
export uci_parse_ptr