57 #ifndef DLT_OFFLINE_TRACE_H 58 #define DLT_OFFLINE_TRACE_H 64 #define DLT_OFFLINETRACE_FILENAME_BASE "dlt_offlinetrace" 65 #define DLT_OFFLINETRACE_FILENAME_DELI "." 66 #define DLT_OFFLINETRACE_FILENAME_EXT ".dlt" 67 #define DLT_OFFLINETRACE_INDEX_MAX_SIZE 10 68 #define DLT_OFFLINETRACE_FILENAME_TO_COMPARE "dlt_offlinetrace_" 70 #define DLT_OFFLINETRACE_FILENAME_MAX_SIZE (sizeof(DLT_OFFLINETRACE_FILENAME_BASE) + \ 71 sizeof(DLT_OFFLINETRACE_FILENAME_DELI) + \ 72 DLT_OFFLINETRACE_INDEX_MAX_SIZE + \ 73 sizeof(DLT_OFFLINETRACE_FILENAME_EXT) + 1) 77 char directory[NAME_MAX + 1];
78 char filename[NAME_MAX + 1];
void dlt_offline_trace_file_name(char *log_file_name, char *name, unsigned int idx)
DltReturnValue dlt_offline_trace_write(DltOfflineTrace *trace, unsigned char *data1, int size1, unsigned char *data2, int size2, unsigned char *data3, int size3)
DltReturnValue dlt_offline_trace_init(DltOfflineTrace *trace, const char *directory, int fileSize, int maxSize, int filenameTimestampBased)
DltReturnValue dlt_offline_trace_free(DltOfflineTrace *buf)
unsigned long dlt_offline_trace_get_total_size(DltOfflineTrace *trace)
unsigned int dlt_offline_trace_get_idx_of_log_file(char *file)
unsigned int dlt_offline_trace_storage_dir_info(char *path, char *file_name, char *newest, char *oldest)
int filenameTimestampBased