automotive-dlt
dlt-logstorage-common.h
Go to the documentation of this file.
1 
25 #ifndef _DLT_LOGSTORAGE_COMMON_H_
26 #define _DLT_LOGSTORAGE_COMMON_H_
27 
28 #define CONF_NAME "dlt_logstorage.conf"
29 
30 #define EVENT_UNMOUNTING 0
31 #define EVENT_MOUNTED 1
32 #define EVENT_SYNC_CACHE 2
33 
34 typedef enum
35 {
40 
42 void set_handler_type(char *);
43 
44 char *get_default_path(void);
45 void set_default_path(char *);
46 
47 int get_default_event_type(void);
48 void set_default_event_type(long type);
49 
50 typedef struct {
51  int fd;
52  int (*callback)(void); /* callback for event handling */
53  void *prvt; /* Private data */
55 
56 /* Get a reference to the logstorage control instance */
62 
71 int dlt_logstorage_send_event(int, char *);
72 
83 
91 
92 #endif
void set_handler_type(char *)
char * get_default_path(void)
DltLogstorageCtrl * get_logstorage_control(void)
int dlt_logstorage_get_handler_fd(void)
int dlt_logstorage_check_config_file(char *)
Search for config file in given mount point.
void set_default_event_type(long type)
DltLogstorageHandler get_handler_type(void)
int get_default_event_type(void)
DltLogstorageHandler
int dlt_logstorage_deinit_handler(void)
Clean-up the handler based on configuration.
int dlt_logstorage_init_handler(void)
Initialized the handler based on configuration.
void * dlt_logstorage_get_handler_cb(void)
int dlt_logstorage_send_event(int, char *)
Send a logstorage event to DLT.
void set_default_path(char *)
int dlt_logstorage_check_directory_permission(char *mnt_point)
Check if given mount point is writable.