summaryrefslogtreecommitdiff
path: root/src/daemon/dlt_daemon_common.c
diff options
context:
space:
mode:
authorBui Nguyen Quoc Thanh <thanh.buinguyenquoc@vn.bosch.com>2020-10-26 16:28:00 +0700
committerSaya Sugiura <39760799+ssugiura@users.noreply.github.com>2021-01-06 09:27:28 +0900
commit4eb5be749b23081d2c92680d2a481e36f7ac0685 (patch)
treeee8a41dd31baa4136e1685082c598f41f0bef2c1 /src/daemon/dlt_daemon_common.c
parent1bbccc2bb07109007fecaf8007a6552d056edb66 (diff)
downloadDLT-daemon-4eb5be749b23081d2c92680d2a481e36f7ac0685.tar.gz
daemon: Correct order of runtime config load.
Since order of runtime config load for app-ctx and dlt-runtime are different from each other, so they could not be in the same load_runtime function. Signed-off-by: Bui Nguyen Quoc Thanh <thanh.buinguyenquoc@vn.bosch.com>
Diffstat (limited to 'src/daemon/dlt_daemon_common.c')
-rw-r--r--src/daemon/dlt_daemon_common.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/daemon/dlt_daemon_common.c b/src/daemon/dlt_daemon_common.c
index 4349753..cff1a9e 100644
--- a/src/daemon/dlt_daemon_common.c
+++ b/src/daemon/dlt_daemon_common.c
@@ -140,8 +140,9 @@ DltDaemonRegisteredUsers *dlt_daemon_find_users_list(DltDaemon *daemon,
dlt_vlog(LOG_ERR, "Cannot find user list for ECU: %4s\n", ecu);
return (DltDaemonRegisteredUsers *)NULL;
}
-int dlt_daemon_load_runtime_configuration(DltDaemon *daemon, const char *runtime_directory, int verbose)
+int dlt_daemon_init_runtime_configuration(DltDaemon *daemon, const char *runtime_directory, int verbose)
{
+ PRINT_FUNCTION_VERBOSE(verbose);
int append_length = 0;
if (daemon == NULL)
@@ -193,14 +194,6 @@ int dlt_daemon_load_runtime_configuration(DltDaemon *daemon, const char *runtime
strcat(daemon->runtime_configuration, DLT_RUNTIME_CONFIGURATION); /* strcat uncritical here, because max length already checked */
- /* Check for runtime cfg, if it is loadable, load it! */
- if ((dlt_daemon_applications_load(daemon, daemon->runtime_application_cfg, verbose) == 0) &&
- (dlt_daemon_contexts_load(daemon, daemon->runtime_context_cfg, verbose) == 0))
- daemon->runtime_context_cfg_loaded = 1;
-
- /* load configuration if available */
- dlt_daemon_configuration_load(daemon, daemon->runtime_configuration, verbose);
-
return DLT_RETURN_OK;
}