From 54768d5f559aa9b35ab61c20f4f56e1e9409f17a Mon Sep 17 00:00:00 2001 From: "LUONG HONG DUY KHANH(RBVH/ENG42)" Date: Tue, 12 May 2020 20:27:21 +0700 Subject: common: Isolate FIFO/Unix socket dlt_common - Add preprocessor DLT_USE_UNIX_SOCKET_IPC for dlt_log_set_fifo_basedir() and dltFifoBaseDir variable - Rename input parameter of dlt_log_set_fifo_basedir() dlt-daemon - Replace setting dltFifoBaseDir by dlt_log_set_fifo_basedir() and add preproc DLT_USE_UNIX_SOCKET_IPC - Update -h opt and flags.loggingFilename based on IPC type Signed-off-by: LUONG HONG DUY KHANH(RBVH/ENG42) --- include/dlt/dlt_common.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include') diff --git a/include/dlt/dlt_common.h b/include/dlt/dlt_common.h index be033db..9f4096b 100644 --- a/include/dlt/dlt_common.h +++ b/include/dlt/dlt_common.h @@ -415,10 +415,12 @@ extern const char dltSerialHeader[DLT_ID_SIZE]; */ extern char dltSerialHeaderChar[DLT_ID_SIZE]; +#ifndef DLT_USE_UNIX_SOCKET_IPC /** * The common base-path of the dlt-daemon-fifo and application-generated fifos */ extern char dltFifoBaseDir[DLT_PATH_MAX]; +#endif #ifdef DLT_SHM_ENABLE /** @@ -1135,6 +1137,13 @@ DltReturnValue dlt_file_free(DltFile *file, int verbose); * @param filename the filename */ void dlt_log_set_filename(const char *filename); +#ifndef DLT_USE_UNIX_SOCKET_IPC +/** + * Set FIFO base direction + * @param pipe_dir the pipe direction + */ +void dlt_log_set_fifo_basedir(const char *pipe_dir); +#endif /** * Set internal logging level * @param level the level -- cgit v1.2.1