Amin Ben Ramdhane
5e97bdb5e4
bbf: add support for vendor extension
2021-03-25 16:06:31 +01:00
Amin Ben Ramdhane
92d1f62cab
bbf: cleanup
...
- fix flawfinder and cppcheck issues
- remove all unused functions
2021-02-10 17:31:55 +01:00
Amin Ben Ramdhane
3906faa12d
Ticket refs #3730 : bbf: fix Static Code Analysis
2020-12-16 10:00:19 +01:00
Amin Ben Ramdhane
44b6c08273
Fix add method based on the latest changes
...
update_instance: read config and type section from the passed section
2020-12-07 21:59:00 +01:00
Amin Ben Ramdhane
5d10fba083
bbf: improve and cleanup the code
...
- update_instance_alias: read config and type section from the passed section in handle_update_instance
- remove append_dot_to_string() function
2020-12-06 22:18:18 +01:00
Amin Ben Ramdhane
18643f29b3
bbf: enhance the code
...
- remove unused argument from dmuci_add_section() and dmuci_add_section_bbfdm() functions
- use snprintf instead of dmasptintf
- change function name: add_list_paramameter -> add_list_parameter
2020-11-23 10:58:48 +01:00
Amin Ben Ramdhane
50b9d73af7
Align bbf tools with latest changes
...
- Update the generator of source code
- Fix the generator of data model in XML format (generate_xml.sh/generate_xml_bbf.sh)
- Update README.md file
2020-11-18 22:00:12 +01:00
Omar Kallel
c8de221c11
Ticket refs #3725 : bbf: remove unnecessary arguments from object/parameter definition
2020-11-17 16:21:11 +01:00
Amin Ben Ramdhane
8ba74d624b
bbf: add unique_keys argument to the comment
...
- change (const char *[]) -> LIST_KEY
2020-10-17 14:54:33 +01:00
Amin Ben Ramdhane
5839164c29
TR-181: Fixed invalid int && unsignedInt && hexBinary parameter values
2020-10-17 14:08:40 +01:00
Amin Ben Ramdhane
9b2fdc3562
Ticket refs #2845 : fix add object issues
2020-08-31 10:22:31 +01:00
Amin Ben Ramdhane
bbecdd7444
Ticket refs #2845 : bbf: add support the case uci config is updated manually
2020-08-22 16:37:32 +01:00
Amin Ben Ramdhane
efe2ca135b
Device.IP: fix the get/set of IPv4Capable and IPv6Capable parameters
2020-05-31 20:57:52 +01:00
Amin Ben Ramdhane
3f4a97c1af
Ticket refs#2512: libbbf: an object should not be presented if the uci file or ubus object it depends on does not exist
2020-05-27 08:55:07 +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
67891bd0e4
Fix compiler errors on x86 environment
2020-04-12 17:58:39 +01:00
Amin Ben Ramdhane
63d449df13
Added support for ubus array in dynamic addition parameters using JSON file + example of JSON file
2020-04-09 16:48:34 +01:00
Daniel Danzberger
521e38a853
Fix snprintf destination buffer sizes
...
Fixes snprintf truncated output compiler warnings.
Example:
--
../dmentrylibrary.c:31:38: warning: ‘snprintf’ output may be truncated before the last format character [-Wformat-truncation=]
31 | snprintf(buf, sizeof(buf), "%s/%s", folder_path, entry->d_name);
| ^
../dmentrylibrary.c:31:5: note: ‘snprintf’ output 2 or more bytes (assuming 257) into a destination of size 256
31 | snprintf(buf, sizeof(buf), "%s/%s", folder_path, entry->d_name);
--
Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
2020-03-10 14:34:08 +01:00
Daniel Danzberger
f9a9896005
dmentryjson.c: Fix use of uninitialized memory
...
next_obj wasn't initialized when the object number was zero.
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
Sukru Senli
1e11720828
Change License to LGPLv2.1
2019-12-04 09:52:05 +01:00
Amin Ben Ramdhane
8ab504585c
Fix memory leaks and all warnings
2019-11-11 10:46:10 +01:00
Amin Ben Ramdhane
d4298475a3
Ticket refs #1262 : bbf-datamodels: dynamic addition of datamodel parameters
2019-10-17 15:58:22 +01:00