Commit graph

11 commits

Author SHA1 Message Date
Amin Ben Ramdhane
8da2fd3564 db config: get config path in init call 2020-09-11 15:32:40 +01:00
Amin Ben Ramdhane
e087f42404 db config: use '/lib/db/config' if exists else '/etc/board-db/config' path 2020-09-11 14:55:25 +01:00
Amin Ben Ramdhane
8d721664e6 db config: move /lib/db -> /etc/board-db due to changes in targets 2020-09-08 12:24:55 +01:00
Amin Ben Ramdhane
2e4bc3688b UCI: added get value functions with a default value 2020-06-28 19:02:09 +01:00
Amin Ben Ramdhane
3dd66344b3 Ticket refs #2511: libbbf: JSON schema support for Alias and Link 2020-05-12 00:59:17 +01:00
Amin Ben Ramdhane
cd391b939b Ticket refs#2344: TR-181: Correct implementation of Device.Ethernet.VLANTermination 2020-04-08 21:51:23 +01:00
Amin Ben Ramdhane
905d78844c Ticket refs #1254: TR-x69: add support for parameter validation 2020-02-20 23:25:49 +01:00
Daniel Danzberger
7ce4410723 dmuci: fix some const compiler warnings
Read-only values should be marked with const to help the compiler
optimize code. But this would requrire a bigger rewirte of all the code,
hence the original code did not use const at all.

This should be done in the future to ensure good code quality
and performance.

Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
2020-02-19 11:51:28 +01:00
Daniel Danzberger
fb12136904 dmuci: fix returning of invalid pointers
This fixes segfaults and pointers with invalid strings for:
 - dmuci_add_section
 - dmuci_set_value_by_section
 - dmuci_set_value

Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
2020-02-19 11:51:28 +01:00
Amin Ben Ramdhane
ff14c27fc3 clean up the source code
- remove unused variables
- fix coding style of most function (Indentation, Tabulation, ..)
- check the source code using cppcheck tool
- change sprintf by snprintf
2020-02-12 19:08:49 +01:00
Amin Ben Ramdhane
4ab526b9f2 Ticket refs#1598: libbbfdm: plug-in based with support for dynamic loading of libraries + separate libbbfdm into two libraries: libbbf_api (API) and libbbfdm (data model) 2020-01-21 22:43:37 +01:00
Renamed from dmuci.h (Browse further)