71 #ifndef DLT_DAEMON_COMMON_H 72 #define DLT_DAEMON_COMMON_H 81 #include <semaphore.h> 90 #define DLT_DAEMON_RINGBUFFER_MIN_SIZE 500000 91 #define DLT_DAEMON_RINGBUFFER_MAX_SIZE 10000000 92 #define DLT_DAEMON_RINGBUFFER_STEP_SIZE 500000 94 #define DLT_DAEMON_SEND_TO_ALL -3 95 #define DLT_DAEMON_SEND_FORCE -4 99 #define DLT_DAEMON_SEM_LOCK() { sem_wait(&dlt_daemon_mutex); } 100 #define DLT_DAEMON_SEM_FREE() { sem_post(&dlt_daemon_mutex); } 160 char runtime_application_cfg[PATH_MAX + 1];
161 char runtime_context_cfg[PATH_MAX + 1];
162 char runtime_configuration[PATH_MAX + 1];
184 int dlt_daemon_init(
DltDaemon *daemon,
unsigned long RingbufferMinSize,
unsigned long RingbufferMaxSize,
unsigned long RingbufferStepSize,
const char *runtime_directory,
int InitialContextLogLevel,
int InitialContextTraceStatus,
int ForceLLTS,
int verbose);
int dlt_daemon_context_del(DltDaemon *daemon, DltDaemonContext *context, int verbose)
int dlt_daemon_contexts_invalidate_fd(DltDaemon *daemon, int fd, int verbose)
int dlt_daemon_contexts_load(DltDaemon *daemon, const char *filename, int verbose)
int dlt_daemon_applications_load(DltDaemon *daemon, const char *filename, int verbose)
void dlt_daemon_user_send_all_update(DltDaemon *daemon, int8_t log_level, int verbose)
DltDaemonApplication * applications
DltLogStorage * storage_handle
DltDaemonContext * dlt_daemon_context_add(DltDaemon *daemon, char *apid, char *ctid, int8_t log_level, int8_t trace_status, int log_level_pos, int user_handle, char *description, int verbose)
int runtime_context_cfg_loaded
int dlt_daemon_configuration_load(DltDaemon *daemon, const char *filename, int verbose)
int8_t default_trace_status
DltBuffer client_ringbuffer
int dlt_daemon_contexts_clear(DltDaemon *daemon, int verbose)
void dlt_daemon_user_send_all_log_state(DltDaemon *daemon, int verbose)
DltDaemonContext * contexts
DltDaemonApplication * dlt_daemon_application_add(DltDaemon *daemon, char *apid, pid_t pid, char *description, int verbose)
int dlt_daemon_applications_clear(DltDaemon *daemon, int verbose)
int dlt_daemon_free(DltDaemon *daemon, int verbose)
int dlt_daemon_user_send_log_state(DltDaemon *daemon, DltDaemonApplication *app, int verbose)
int dlt_daemon_application_del(DltDaemon *daemon, DltDaemonApplication *application, int verbose)
void dlt_daemon_user_send_default_update(DltDaemon *daemon, int verbose)
void dlt_daemon_control_reset_to_factory_default(DltDaemon *daemon, const char *filename, const char *filename1, int InitialContextLogLevel, int InitialContextTraceStatus, int InitialEnforceLlTsStatus, int verbose)
int dlt_daemon_applications_save(DltDaemon *daemon, const char *filename, int verbose)
void dlt_daemon_change_state(DltDaemon *daemon, DltDaemonState newState)
int dlt_daemon_configuration_save(DltDaemon *daemon, const char *filename, int verbose)
int dlt_daemon_init(DltDaemon *daemon, unsigned long RingbufferMinSize, unsigned long RingbufferMaxSize, unsigned long RingbufferStepSize, const char *runtime_directory, int InitialContextLogLevel, int InitialContextTraceStatus, int ForceLLTS, int verbose)
DltDaemonApplication * dlt_daemon_application_find(DltDaemon *daemon, char *apid, int verbose)
unsigned int overflow_counter
int dlt_daemon_user_send_log_level(DltDaemon *daemon, DltDaemonContext *context, int verbose)
int dlt_daemon_contexts_save(DltDaemon *daemon, const char *filename, int verbose)
int dlt_daemon_applications_invalidate_fd(DltDaemon *daemon, int fd, int verbose)
char * context_description
DltDaemonContext * dlt_daemon_context_find(DltDaemon *daemon, char *apid, char *ctid, int verbose)
char * application_description