Felix Fietkau
|
84492e759a
ucimap: get rid of duplicate initialization warnings
|
10 years ago |
Felix Fietkau
|
1d6095d5ac
add a few missing null pointer checks, and fix check vs dereference order in some cases (patch by Stanislav Fomichev)
|
12 years ago |
Felix Fietkau
|
97e71a1c1b
ucimap: simplify the parse/format callbacks. the data argument now always points to the field in the data structure
|
14 years ago |
Felix Fietkau
|
c81b25ffd3
replace the use of list.h in the ucimap core, relicense ucimap to LGPL v2.1, update copyright headers
|
14 years ago |
Felix Fietkau
|
0a115f989a
fix a typo
|
14 years ago |
Felix Fietkau
|
4f27765f0d
ucimap: add support for saving lists to uci
|
14 years ago |
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
|
14 years ago |
Felix Fietkau
|
6c05c721c7
ucimap: add custom free() callbacks for options, only used on custom datatypes
|
14 years ago |
Felix Fietkau
|
7c45dfd1c6
only call section ->add callbacks after all fixups have been processed, also call ->add for sections manually parsed later
|
14 years ago |
Felix Fietkau
|
96aa070d01
fix missing api change
|
14 years ago |
Felix Fietkau
|
477c19a722
ucimap: add new UCIMAP_LIST_AUTO for automatically converting multiple list items whitespace-separated in an option
|
14 years ago |
Felix Fietkau
|
2be6befa78
turn ucimap-example.c into a test case
|
14 years ago |
Felix Fietkau
|
82a71ad8d8
ucimap: implement format callback for custom data types
|
14 years ago |
Felix Fietkau
|
6d75ac9588
ucimap: add example for using the alloc callback
|
14 years ago |
Felix Fietkau
|
3fa4e980d9
ucimap: move the section data to a dedicated field inside the managed structs
|
14 years ago |
Felix Fietkau
|
062323b4f6
ucimap: rename uci_sectmap* to uci_sectionmap*
|
14 years ago |
Felix Fietkau
|
8ae8a7fc89
ucimap: add callback for validation/conversion and custom data type
|
14 years ago |
Felix Fietkau
|
75c9a5d0fa
shorten callback names
|
14 years ago |
Felix Fietkau
|
95967daea5
ucimap: add an example for optmap data structure encapsulation
|
14 years ago |
Felix Fietkau
|
75888e2645
ucimap: cleanup OPTMAP_OPTION macro, rename to UCIMAP_OPTION
|
14 years ago |
Felix Fietkau
|
7af0c0eda0
ucimap: clean up list handling, use arrays instead of linked lists
|
14 years ago |
Felix Fietkau
|
d90507ccd2
ucimap-example: make data structures static
|
14 years ago |
Felix Fietkau
|
99ae0f9196
add foreign key and list support for ucimap
|
15 years ago |
Felix Fietkau
|
d788264ddc
add libucimap
|
15 years ago |