summaryrefslogtreecommitdiff
path: root/include/dlt/dlt_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/dlt/dlt_common.h')
-rw-r--r--include/dlt/dlt_common.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/dlt/dlt_common.h b/include/dlt/dlt_common.h
index 550cc10..0b9fd8d 100644
--- a/include/dlt/dlt_common.h
+++ b/include/dlt/dlt_common.h
@@ -337,6 +337,11 @@ enum {
#define DLT_ENTRY_MAX 100
/**
+ * Maximal IPC path len
+ */
+#define DLT_IPC_PATH_MAX 100
+
+/**
* Provision to test static function
*/
#ifndef DLT_UNIT_TESTS
@@ -1085,6 +1090,13 @@ extern "C"
*/
int dlt_receiver_receive_fd(DltReceiver *receiver);
/**
+ * Receive data from file/fifo/socket, calls corresponding function based on
+ * CMake configuration.
+ * @param receiver pointer to dlt receiver structure
+ * @return number of received bytes or negative value if there was an error
+ */
+ int dlt_receiver_receive(DltReceiver *receiver);
+ /**
* Remove a specific size of bytes from the received data
* @param receiver pointer to dlt receiver structure
* @param size amount of bytes to be removed
@@ -1384,11 +1396,13 @@ extern "C"
*/
void dlt_check_envvar();
+#ifndef DLT_USE_UNIX_SOCKET_IPC
/**
* Create the specified path, recursive if necessary
* behaves like calling mkdir -p <dir> on the console
*/
int dlt_mkdir_recursive(const char *dir);
+#endif
#ifdef __cplusplus
}