Lars-Peter Clausen
|
25f9dbfe7b
ucimap: ucimap_parse: consider smap_offset when allocating the section data
|
14 ani în urmă |
Felix Fietkau
|
8bc580cbda
simplify code (thx, henning)
|
14 ani în urmă |
Felix Fietkau
|
97e71a1c1b
ucimap: simplify the parse/format callbacks. the data argument now always points to the field in the data structure
|
15 ani în urmă |
Felix Fietkau
|
c434442c9e
ucimap: fix list size initialization, validate list size on fixups as well
|
15 ani în urmă |
Felix Fietkau
|
7791a9603c
ucimap: fix list initialization
|
15 ani în urmă |
Felix Fietkau
|
c81b25ffd3
replace the use of list.h in the ucimap core, relicense ucimap to LGPL v2.1, update copyright headers
|
15 ani în urmă |
Felix Fietkau
|
ba0d03d0cc
remove ucimap type->name conversion unless DEBUG is enabled
|
15 ani în urmă |
Felix Fietkau
|
4f27765f0d
ucimap: add support for saving lists to uci
|
15 ani în urmă |
Felix Fietkau
|
25b34febb4
ucimap: add helper function for resizing lists and freeing items (both using ucimap internal allocation list), add test coverage for config change operations
|
15 ani în urmă |
Felix Fietkau
|
afa5662885
add sanity checks for optmap section type vs sectionmap type
|
15 ani în urmă |
Felix Fietkau
|
6c05c721c7
ucimap: add custom free() callbacks for options, only used on custom datatypes
|
15 ani în urmă |
Felix Fietkau
|
2e1e88ddee
add ucimap_free_section to the api
|
15 ani în urmă |
Felix Fietkau
|
41d24d850b
add type safety checks for option maps
|
15 ani în urmă |
Felix Fietkau
|
7c45dfd1c6
only call section ->add callbacks after all fixups have been processed, also call ->add for sections manually parsed later
|
15 ani în urmă |
Felix Fietkau
|
151917e819
preserve section list order
|
15 ani în urmă |
Felix Fietkau
|
cd68df2c25
rename ucimap_data::section to ptr
|
15 ani în urmă |
Felix Fietkau
|
2a8229347c
expose the ucimap_parse_section function in the api, do not defer fixups if immediate lookup works
|
15 ani în urmă |
Felix Fietkau
|
477c19a722
ucimap: add new UCIMAP_LIST_AUTO for automatically converting multiple list items whitespace-separated in an option
|
15 ani în urmă |
Felix Fietkau
|
65f3dccc35
ucimap: fix boolean interpretation, add range checks for int values (thx, henning)
|
15 ani în urmă |
Felix Fietkau
|
82a71ad8d8
ucimap: implement format callback for custom data types
|
15 ani în urmă |
Felix Fietkau
|
ceaa2fbb3c
ucimap: allow api users to take over allocation of section data structures
|
15 ani în urmă |
Felix Fietkau
|
3fa4e980d9
ucimap: move the section data to a dedicated field inside the managed structs
|
15 ani în urmă |
Felix Fietkau
|
062323b4f6
ucimap: rename uci_sectmap* to uci_sectionmap*
|
15 ani în urmă |
Felix Fietkau
|
8ae8a7fc89
ucimap: add callback for validation/conversion and custom data type
|
15 ani în urmă |
Felix Fietkau
|
75c9a5d0fa
shorten callback names
|
15 ani în urmă |
Felix Fietkau
|
1afdbf8f22
ucimap: ignore unhandled data structure changes for now
|
15 ani în urmă |
Felix Fietkau
|
f107b5a34f
fix ucimap_set_changed
|
15 ani în urmă |
Felix Fietkau
|
ec7b1de53e
ucimap: free memory allocated for fixups
|
15 ani în urmă |
Felix Fietkau
|
7af0c0eda0
ucimap: clean up list handling, use arrays instead of linked lists
|
15 ani în urmă |
Felix Fietkau
|
43ff3a3a54
ucimap: allow sectmaps to specify the option map data structure size (useful for encapsulating it in another data structure
|
15 ani în urmă |