diff options
author | Bui Nguyen Quoc Thanh <Thanh.BuiNguyenQuoc@vn.bosch.com> | 2020-02-20 18:11:43 +0700 |
---|---|---|
committer | Saya Sugiura <39760799+ssugiura@users.noreply.github.com> | 2020-07-06 10:04:07 +0900 |
commit | c215d96ee6543fbc9429a1962c7d7b58593977ea (patch) | |
tree | 94da4773639060f6efdcd4001d7053155902a287 /src/shared | |
parent | 1d448c10b397e262c813d70864d05fdedeb66062 (diff) | |
download | DLT-daemon-c215d96ee6543fbc9429a1962c7d7b58593977ea.tar.gz |
gateway: Configurable interval time
- Introduce "General" section for dlt_gateway.conf
- In new section, the interval is used for gateway timer.
This entry is optional. By default, it is set to 1 second
as the existing hardcoded value.
Signed-off-by: Bui Nguyen Quoc Thanh <Thanh.BuiNguyenQuoc@vn.bosch.com>
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/dlt_config_file_parser.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shared/dlt_config_file_parser.c b/src/shared/dlt_config_file_parser.c index 7392836..b123ebf 100644 --- a/src/shared/dlt_config_file_parser.c +++ b/src/shared/dlt_config_file_parser.c @@ -504,6 +504,9 @@ int dlt_config_file_get_num_sections(const DltConfigFile *file, int *num) if ((file == NULL) || (file->num_sections < 0)) return -1; + /* + * Note: this number is also containing General section + */ *num = file->num_sections; return 0; |