summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLUONG HONG DUY KHANH(RBVH/ENG42) <KHANH.LUONGHONGDUY@vn.bosch.com>2020-05-12 20:27:21 +0700
committerSaya Sugiura <39760799+ssugiura@users.noreply.github.com>2020-07-06 10:04:07 +0900
commit54768d5f559aa9b35ab61c20f4f56e1e9409f17a (patch)
tree3ebf52c5e1a536421c907d282589ea1e31104aba /include
parent9b3ba69399a92ee3c999959fa75a582879550ad4 (diff)
downloadDLT-daemon-54768d5f559aa9b35ab61c20f4f56e1e9409f17a.tar.gz
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) <KHANH.LUONGHONGDUY@vn.bosch.com>
Diffstat (limited to 'include')
-rw-r--r--include/dlt/dlt_common.h9
1 files changed, 9 insertions, 0 deletions
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