diff options
author | Bui Nguyen Quoc Thanh <Thanh.BuiNguyenQuoc@vn.bosch.com> | 2020-03-13 10:41:01 +0700 |
---|---|---|
committer | Saya Sugiura <39760799+ssugiura@users.noreply.github.com> | 2020-07-06 10:04:07 +0900 |
commit | 472137c469bcd1faf2c6f12d9bb15e2675dd6870 (patch) | |
tree | dc8ba8534679e14b21fa70aafde34d0d8f5fa397 /src/shared/dlt_config_file_parser.h | |
parent | fbe9c0c0ee1b134ac335392ff18d239d69ab50c7 (diff) | |
download | DLT-daemon-472137c469bcd1faf2c6f12d9bb15e2675dd6870.tar.gz |
gateway: Improvement of handling Gateway config
In the current implementation, we believe in user to treat
General section as Mandatory. Hence system could be reset
due to memory of connections incorrectly.
At the moment, General could be handled as Optional with default value
of interval. It means General could be absent from config file.
Improvement is to raise WARNING to user, set default value and
update the number of connections properly.
Signed-off-by: Bui Nguyen Quoc Thanh <Thanh.BuiNguyenQuoc@vn.bosch.com>
Diffstat (limited to 'src/shared/dlt_config_file_parser.h')
-rw-r--r-- | src/shared/dlt_config_file_parser.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/shared/dlt_config_file_parser.h b/src/shared/dlt_config_file_parser.h index acde08c..3c1a6fd 100644 --- a/src/shared/dlt_config_file_parser.h +++ b/src/shared/dlt_config_file_parser.h @@ -148,4 +148,16 @@ int dlt_config_file_get_value(const DltConfigFile *file, const char *section, const char *key, char *value); + +/** + * dlt_config_file_check_section_name_exists + * + * Get name of section number. + * + * @param[in] file DltConfigFile + * @param[in] name Section name + * @return 0 on success/exist, else -1 + */ +int dlt_config_file_check_section_name_exists(const DltConfigFile *file, + const char *name); #endif |