- Fix all errors catched by cppcheck threadsafety (cppcheck --error-exitcode=0 --addon=threadsafety bbf)
- Fix some errors catched by cppcheck cert (cppcheck --error-exitcode=0 --addon=cert bbf)
- Add new str-protected macros instead of using str functions directly to avoid crashes
- Added support for Device.QoS.QueueStats object from TR181.
- The values are fetched from the below ubus call:
ubus call qos queue_stats '{"ifname":"eth0","qid":"0"}'
- Tested add/delete for QueueStats object via usp.
- Tested set/get for the QueueStats params via usp.
- As per TR181, there could be one or more unique keys for each
multi-instance object. Added support to get the unique keys
associated with the multi-instance object.
- Changes for generate_source_code.sh to have unique keys as
extra object parameter.
This commit makes all symbols that are not part of the API Interface,
or used only in the object files where they are defined, static.
Causing the following benefits:
- The compiler can resolve functions for better performance
- The library size is decreased
NOTE: Spec file generators need to be adjusted for newer spec's to not do the same mistakes again
Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
- remove unused variables
- fix coding style of most function (Indentation, Tabulation, ..)
- check the source code using cppcheck tool
- change sprintf by snprintf