automotive-dlt
|
#include <dlt_daemon_common.h>
Data Fields | |
int | num_contexts |
DltDaemonContext * | contexts |
int | num_applications |
DltDaemonApplication * | applications |
int8_t | default_log_level |
int8_t | default_trace_status |
int8_t | force_ll_ts |
unsigned int | overflow_counter |
int | runtime_context_cfg_loaded |
char | ecuid [DLT_ID_SIZE] |
int | sendserialheader |
int | timingpackets |
DltBuffer | client_ringbuffer |
char | runtime_application_cfg [PATH_MAX+1] |
char | runtime_context_cfg [PATH_MAX+1] |
char | runtime_configuration [PATH_MAX+1] |
DltUserLogMode | mode |
char | connectionState |
char * | ECUVersionString |
DltDaemonState | state |
DltLogStorage * | storage_handle |
The parameters of a daemon.
Definition at line 145 of file dlt_daemon_common.h.
DltDaemonApplication* DltDaemon::applications |
Pointer to applications
Definition at line 150 of file dlt_daemon_common.h.
Referenced by dlt_daemon_application_add(), dlt_daemon_application_del(), dlt_daemon_application_find(), dlt_daemon_applications_clear(), dlt_daemon_applications_invalidate_fd(), dlt_daemon_applications_save(), dlt_daemon_contexts_clear(), dlt_daemon_control_get_log_info(), dlt_daemon_init(), dlt_daemon_process_user_message_set_app_ll_ts(), dlt_daemon_process_user_message_unregister_application(), and dlt_daemon_user_send_all_log_state().
DltBuffer DltDaemon::client_ringbuffer |
Ring-buffer for storing received logs while no client connection is available
Definition at line 159 of file dlt_daemon_common.h.
Referenced by dlt_daemon_client_send(), dlt_daemon_free(), dlt_daemon_init(), and dlt_daemon_send_ringbuffer_to_client().
char DltDaemon::connectionState |
state for tracing: 0 = no client connected, 1 = client connected
Definition at line 164 of file dlt_daemon_common.h.
Referenced by dlt_daemon_close_socket(), dlt_daemon_init(), dlt_daemon_process_client_connect(), and dlt_daemon_user_send_log_state().
DltDaemonContext* DltDaemon::contexts |
Pointer to contexts
Definition at line 148 of file dlt_daemon_common.h.
Referenced by dlt_daemon_context_add(), dlt_daemon_context_del(), dlt_daemon_context_find(), dlt_daemon_contexts_clear(), dlt_daemon_contexts_invalidate_fd(), dlt_daemon_contexts_save(), dlt_daemon_control_get_log_info(), dlt_daemon_find_multiple_context_and_send(), dlt_daemon_init(), dlt_daemon_process_user_message_set_app_ll_ts(), dlt_daemon_process_user_message_unregister_application(), dlt_daemon_user_send_all_update(), dlt_daemon_user_send_default_update(), and dlt_logstorage_update_all_contexts().
int8_t DltDaemon::default_log_level |
Default log level (of daemon)
Definition at line 151 of file dlt_daemon_common.h.
Referenced by dlt_daemon_context_add(), dlt_daemon_control_get_default_log_level(), dlt_daemon_control_reset_to_factory_default(), dlt_daemon_control_set_default_log_level(), dlt_daemon_init(), and dlt_daemon_user_send_log_level().
int8_t DltDaemon::default_trace_status |
Default trace status (of daemon)
Definition at line 152 of file dlt_daemon_common.h.
Referenced by dlt_daemon_context_add(), dlt_daemon_control_reset_to_factory_default(), dlt_daemon_control_set_default_trace_status(), dlt_daemon_init(), and dlt_daemon_user_send_log_level().
char DltDaemon::ecuid[DLT_ID_SIZE] |
ECU ID of daemon
Definition at line 156 of file dlt_daemon_common.h.
Referenced by dlt_daemon_client_send_control_message(), dlt_daemon_control_message_time(), dlt_daemon_init(), dlt_daemon_local_init_p2(), dlt_daemon_log_internal(), and dlt_daemon_process_user_message_log().
char* DltDaemon::ECUVersionString |
Version string to send to client. Loaded from a file at startup. May be null.
Definition at line 165 of file dlt_daemon_common.h.
Referenced by dlt_daemon_control_get_software_version(), dlt_daemon_local_cleanup(), dlt_daemon_local_ecu_version_init(), and dlt_daemon_local_init_p2().
int8_t DltDaemon::force_ll_ts |
Enforce ll and ts to not exceed default_log_level, default_trace_status
Definition at line 153 of file dlt_daemon_common.h.
Referenced by dlt_daemon_context_add(), dlt_daemon_control_reset_to_factory_default(), and dlt_daemon_init().
DltUserLogMode DltDaemon::mode |
Mode used for tracing: off, external, internal, both
Definition at line 163 of file dlt_daemon_common.h.
Referenced by dlt_daemon_client_send(), dlt_daemon_configuration_load(), dlt_daemon_configuration_save(), dlt_daemon_init(), dlt_daemon_local_init_p2(), dlt_daemon_log_internal(), and dlt_daemon_process_user_message_log_mode().
int DltDaemon::num_applications |
Number of available application
Definition at line 149 of file dlt_daemon_common.h.
Referenced by dlt_daemon_application_add(), dlt_daemon_application_del(), dlt_daemon_application_find(), dlt_daemon_applications_clear(), dlt_daemon_applications_invalidate_fd(), dlt_daemon_applications_save(), dlt_daemon_contexts_clear(), dlt_daemon_control_get_log_info(), dlt_daemon_init(), dlt_daemon_process_user_message_set_app_ll_ts(), dlt_daemon_process_user_message_unregister_application(), and dlt_daemon_user_send_all_log_state().
int DltDaemon::num_contexts |
Total number of all contexts in all applications
Definition at line 147 of file dlt_daemon_common.h.
Referenced by dlt_daemon_context_add(), dlt_daemon_context_del(), dlt_daemon_context_find(), dlt_daemon_contexts_clear(), dlt_daemon_contexts_invalidate_fd(), dlt_daemon_contexts_save(), dlt_daemon_control_get_log_info(), dlt_daemon_find_multiple_context_and_send(), dlt_daemon_init(), dlt_daemon_user_send_all_update(), dlt_daemon_user_send_default_update(), and dlt_logstorage_update_all_contexts().
unsigned int DltDaemon::overflow_counter |
counts the number of lost messages.
Definition at line 154 of file dlt_daemon_common.h.
Referenced by dlt_daemon_client_process_control(), dlt_daemon_init(), dlt_daemon_log_internal(), dlt_daemon_process_user_message_log(), dlt_daemon_process_user_message_overflow(), and dlt_daemon_send_message_overflow().
char DltDaemon::runtime_application_cfg[PATH_MAX+1] |
Path and filename of persistent application configuration. Set to path max, as it specifies a full path
Definition at line 160 of file dlt_daemon_common.h.
Referenced by dlt_daemon_client_process_control(), and dlt_daemon_init().
char DltDaemon::runtime_configuration[PATH_MAX+1] |
Path and filename of persistent configuration
Definition at line 162 of file dlt_daemon_common.h.
Referenced by dlt_daemon_init(), and dlt_daemon_process_user_message_log_mode().
char DltDaemon::runtime_context_cfg[PATH_MAX+1] |
Path and filename of persistent context configuration
Definition at line 161 of file dlt_daemon_common.h.
Referenced by dlt_daemon_client_process_control(), and dlt_daemon_init().
int DltDaemon::runtime_context_cfg_loaded |
Set to one, if runtime context configuration has been loaded, zero otherwise
Definition at line 155 of file dlt_daemon_common.h.
Referenced by dlt_daemon_context_add(), and dlt_daemon_init().
int DltDaemon::sendserialheader |
1: send serial header; 0 don't send serial header
Definition at line 157 of file dlt_daemon_common.h.
Referenced by dlt_daemon_client_send(), dlt_daemon_client_send_all_multiple(), dlt_daemon_init(), and dlt_daemon_local_init_p2().
DltDaemonState DltDaemon::state |
the current logging state of dlt daemon.
Definition at line 166 of file dlt_daemon_common.h.
Referenced by dlt_daemon_change_state(), dlt_daemon_client_send(), dlt_daemon_init(), dlt_daemon_process_one_s_timer(), and dlt_daemon_send_ringbuffer_to_client().
DltLogStorage* DltDaemon::storage_handle |
Definition at line 167 of file dlt_daemon_common.h.
Referenced by dlt_daemon_control_service_logstorage(), dlt_daemon_init(), dlt_daemon_local_cleanup(), dlt_daemon_local_init_p2(), dlt_daemon_logstorage_cleanup(), dlt_daemon_logstorage_get_device(), dlt_daemon_logstorage_get_loglevel(), dlt_daemon_logstorage_reset_application_loglevel(), dlt_daemon_logstorage_setup_internal_storage(), dlt_daemon_logstorage_sync_cache(), dlt_daemon_logstorage_update_application_loglevel(), and dlt_daemon_logstorage_write().
int DltDaemon::timingpackets |
1: send continous timing packets; 0 don't send continous timing packets
Definition at line 158 of file dlt_daemon_common.h.
Referenced by dlt_daemon_control_set_timing_packets(), dlt_daemon_init(), dlt_daemon_local_init_p2(), and dlt_daemon_process_one_s_timer().