diff options
author | ManikandanChockalingam <manikandan.chockalingam@in.bosch.com> | 2018-07-13 02:23:28 +0530 |
---|---|---|
committer | Christoph Lipka <clipka@users.noreply.github.com> | 2018-07-12 22:53:28 +0200 |
commit | ec27430eb51daee1cc02c8d27a60a8000be9f4bf (patch) | |
tree | 956fefb4bef924eea687c949027fcea74fb7be08 /src/shared/dlt_config_file_parser.h | |
parent | 4a32519592972263475a36b4c01c26eea55ffcf4 (diff) | |
download | DLT-daemon-ec27430eb51daee1cc02c8d27a60a8000be9f4bf.tar.gz |
file parser: Replace hash functions with list (#67)
file parser: Replace hash functions with list
Signed-off-by: ManikandanC <Manikandan.Chockalingam@in.bosch.com>
Signed-off-by: S. Hameed <shameed@jp.adit-jv.com>
Signed-off-by: Saya Sugiura <ssugiura@jp.adit-jv.com>
Diffstat (limited to 'src/shared/dlt_config_file_parser.h')
-rw-r--r-- | src/shared/dlt_config_file_parser.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/shared/dlt_config_file_parser.h b/src/shared/dlt_config_file_parser.h index c38a8b8..45fd150 100644 --- a/src/shared/dlt_config_file_parser.h +++ b/src/shared/dlt_config_file_parser.h @@ -59,7 +59,6 @@ #ifndef _DLT_CONFIG_FILE_PARSER_H_ #define _DLT_CONFIG_FILE_PARSER_H_ -#include <search.h> /* definitions */ #define DLT_CONFIG_FILE_PATH_MAX_LEN 100 /* absolute path including filename */ @@ -68,13 +67,20 @@ #define DLT_CONFIG_FILE_SECTIONS_MAX 100 #define DLT_CONFIG_FILE_KEYS_MAX 25 /* Maximal keys per section */ +typedef struct DltConfigKeyData +{ + char *key; + char *data; + struct DltConfigKeyData *next; +} DltConfigKeyData; + /* Config file section structure */ typedef struct { int num_entries; /* number of entries */ char *name; /* name of section */ char *keys; /* keys */ - struct hsearch_data data; /* hash table object used by hsearch_r */ + DltConfigKeyData *list; } DltConfigFileSection; typedef struct |