automotive-dlt
dlt_daemon_common.h File Reference
#include <limits.h>
#include <semaphore.h>
#include "dlt_common.h"
#include "dlt_user.h"
#include "dlt_offline_logstorage.h"
Include dependency graph for dlt_daemon_common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  DltDaemonApplication
 
struct  DltDaemonContext
 
struct  DltDaemon
 

Macros

#define DLT_DAEMON_RINGBUFFER_MIN_SIZE   500000
 
#define DLT_DAEMON_RINGBUFFER_MAX_SIZE   10000000
 
#define DLT_DAEMON_RINGBUFFER_STEP_SIZE   500000
 
#define DLT_DAEMON_SEND_TO_ALL   -3
 
#define DLT_DAEMON_SEND_FORCE   -4
 
#define DLT_DAEMON_SEM_LOCK()   { sem_wait(&dlt_daemon_mutex); }
 
#define DLT_DAEMON_SEM_FREE()   { sem_post(&dlt_daemon_mutex); }
 

Enumerations

enum  DltDaemonState {
  DLT_DAEMON_STATE_INIT = 0, DLT_DAEMON_STATE_BUFFER = 1, DLT_DAEMON_STATE_BUFFER_FULL = 2, DLT_DAEMON_STATE_SEND_BUFFER = 3,
  DLT_DAEMON_STATE_SEND_DIRECT = 4
}
 

Functions

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_free (DltDaemon *daemon, int verbose)
 
DltDaemonApplicationdlt_daemon_application_add (DltDaemon *daemon, char *apid, pid_t pid, char *description, int verbose)
 
int dlt_daemon_application_del (DltDaemon *daemon, DltDaemonApplication *application, int verbose)
 
DltDaemonApplicationdlt_daemon_application_find (DltDaemon *daemon, char *apid, int verbose)
 
int dlt_daemon_applications_load (DltDaemon *daemon, const char *filename, int verbose)
 
int dlt_daemon_applications_save (DltDaemon *daemon, const char *filename, int verbose)
 
int dlt_daemon_applications_invalidate_fd (DltDaemon *daemon, int fd, int verbose)
 
int dlt_daemon_applications_clear (DltDaemon *daemon, int verbose)
 
DltDaemonContextdlt_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 dlt_daemon_context_del (DltDaemon *daemon, DltDaemonContext *context, int verbose)
 
DltDaemonContextdlt_daemon_context_find (DltDaemon *daemon, char *apid, char *ctid, int verbose)
 
int dlt_daemon_contexts_invalidate_fd (DltDaemon *daemon, int fd, int verbose)
 
int dlt_daemon_contexts_clear (DltDaemon *daemon, int verbose)
 
int dlt_daemon_contexts_load (DltDaemon *daemon, const char *filename, int verbose)
 
int dlt_daemon_contexts_save (DltDaemon *daemon, const char *filename, int verbose)
 
int dlt_daemon_configuration_load (DltDaemon *daemon, const char *filename, int verbose)
 
int dlt_daemon_configuration_save (DltDaemon *daemon, const char *filename, int verbose)
 
int dlt_daemon_user_send_log_level (DltDaemon *daemon, DltDaemonContext *context, int verbose)
 
int dlt_daemon_user_send_log_state (DltDaemon *daemon, DltDaemonApplication *app, int verbose)
 
void dlt_daemon_user_send_default_update (DltDaemon *daemon, int verbose)
 
void dlt_daemon_user_send_all_update (DltDaemon *daemon, int8_t log_level, int verbose)
 
void dlt_daemon_user_send_all_log_state (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)
 
void dlt_daemon_change_state (DltDaemon *daemon, DltDaemonState newState)
 

Variables

sem_t dlt_daemon_mutex
 

Detailed Description

Author
Alexander Wenzel alexa.nosp@m.nder.nosp@m..aw.w.nosp@m.enze.nosp@m.l@bmw.nosp@m..de

Definition in file dlt_daemon_common.h.