28 Commits

Author SHA1 Message Date
Felix Fietkau
84492e759a ucimap: get rid of duplicate initialization warnings
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-10-29 16:50:47 +01:00
Luka Perkov
f506323c30 style: fix whitespace errors
Signed-off-by: Luka Perkov <luka@openwrt.org>
2013-10-15 13:17:09 +02:00
Felix Fietkau
4a7d8053ae fix lgpl license headers 2011-08-31 16:55:25 +02:00
Felix Fietkau
8aa3b5497c add some comments to the header file 2009-09-05 02:51:42 +02:00
Felix Fietkau
c81b25ffd3 replace the use of list.h in the ucimap core, relicense ucimap to LGPL v2.1, update copyright headers 2009-09-05 02:33:54 +02:00
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 2009-09-05 00:42:38 +02:00
Felix Fietkau
afa5662885 add sanity checks for optmap section type vs sectionmap type 2009-09-04 20:07:25 +02:00
Felix Fietkau
6c05c721c7 ucimap: add custom free() callbacks for options, only used on custom datatypes 2009-09-04 03:59:11 +02:00
Felix Fietkau
2e1e88ddee add ucimap_free_section to the api 2009-09-04 02:57:43 +02:00
Felix Fietkau
41d24d850b add type safety checks for option maps 2009-09-04 02:42:54 +02:00
Felix Fietkau
7c45dfd1c6 only call section ->add callbacks after all fixups have been processed, also call ->add for sections manually parsed later 2009-09-02 02:43:03 +02:00
Felix Fietkau
cd68df2c25 rename ucimap_data::section to ptr 2009-09-01 03:23:01 +02:00
Felix Fietkau
2a8229347c expose the ucimap_parse_section function in the api, do not defer fixups if immediate lookup works 2009-09-01 02:27:55 +02:00
Felix Fietkau
e0a0a4bf8a protect ucimap.h against multiple inclusions 2009-08-31 23:28:53 +02:00
Felix Fietkau
477c19a722 ucimap: add new UCIMAP_LIST_AUTO for automatically converting multiple list items whitespace-separated in an option 2009-08-31 22:44:34 +02:00
Felix Fietkau
f85abaa9f8 ucimap: clarify alloc 2009-08-30 02:55:22 +02:00
Felix Fietkau
9073bf0c71 ucimap: some hints 2009-08-30 02:53:48 +02:00
Felix Fietkau
82a71ad8d8 ucimap: implement format callback for custom data types 2009-08-30 02:51:11 +02:00
Felix Fietkau
ceaa2fbb3c ucimap: allow api users to take over allocation of section data structures 2009-08-29 22:59:02 +02:00
Felix Fietkau
3fa4e980d9 ucimap: move the section data to a dedicated field inside the managed structs 2009-08-29 22:53:26 +02:00
Felix Fietkau
062323b4f6 ucimap: rename uci_sectmap* to uci_sectionmap* 2009-08-29 22:28:31 +02:00
Felix Fietkau
8ae8a7fc89 ucimap: add callback for validation/conversion and custom data type 2009-08-29 20:41:34 +02:00
Felix Fietkau
75c9a5d0fa shorten callback names 2009-08-29 19:41:57 +02:00
Felix Fietkau
75888e2645 ucimap: cleanup OPTMAP_OPTION macro, rename to UCIMAP_OPTION 2009-08-29 18:46:04 +02:00
Felix Fietkau
7af0c0eda0 ucimap: clean up list handling, use arrays instead of linked lists 2009-08-29 18:34:54 +02:00
Felix Fietkau
43ff3a3a54 ucimap: allow sectmaps to specify the option map data structure size (useful for encapsulating it in another data structure 2009-08-29 16:31:36 +02:00
Felix Fietkau
99ae0f9196 add foreign key and list support for ucimap 2008-11-28 11:33:23 +01:00
Felix Fietkau
d788264ddc add libucimap 2008-11-14 22:38:57 +01:00