From a9a43701138c99b3211ded8d388666161f7cde67 Mon Sep 17 00:00:00 2001 From: Frederic Berat Date: Tue, 1 Dec 2015 11:13:12 +0100 Subject: dlt-daemon: receiver rework The receiver structures have been removed from the dlt-daemon structure, they are now part of the connection. The overall usage of the receiver structrure has also been reviewed in the daemon. Signed-off-by: Frederic Berat Change-Id: I7cf80d79ed73bd6d4f370bb3f278d26ccc9d8d7a --- include/dlt/dlt_common.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'include') diff --git a/include/dlt/dlt_common.h b/include/dlt/dlt_common.h index 2a87ade..b6a83a8 100644 --- a/include/dlt/dlt_common.h +++ b/include/dlt/dlt_common.h @@ -1084,6 +1084,19 @@ extern "C" */ DltReturnValue dlt_receiver_move_to_begin(DltReceiver *receiver); + /** + * Check whether to_get amount of data is available in receiver and + * copy it to dest. Skip the DltUserHeader if skip_header is set to 1. + * @param receiver pointer to dlt receiver structure + * @param dest pointer to the destination buffer + * @param to_get size of the data to copy in dest + * @skip_header whether if the DltUserHeader must be skipped. + */ + int dlt_receiver_check_and_get(DltReceiver *receiver, + void *dest, + unsigned int to_get, + unsigned int skip_header); + /** * Fill out storage header of a dlt message * @param storageheader pointer to storage header of a dlt message -- cgit v1.2.1