summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSaya Sugiura <ssugiura@jp.adit-jv.com>2018-12-13 16:27:07 +0900
committerChristoph Lipka <clipka@users.noreply.github.com>2018-12-21 10:16:46 +0100
commit9c1c0fbcd8c12f04df4064b3b45d30f22fb3f721 (patch)
tree0b670c4916b0ea3e6e6d7a127b913fbbdd026a2e /include
parenta6b8edcaaf6ae68a20b67e7212e04aeb2218c84a (diff)
downloadDLT-daemon-9c1c0fbcd8c12f04df4064b3b45d30f22fb3f721.tar.gz
libdlt: Add error handling
Error handling was added in case it failed to send to daemon. Signed-off-by: S. Hameed <shameed@jp.adit-jv.com> Signed-off-by: Saya Sugiura <ssugiura@jp.adit-jv.com>
Diffstat (limited to 'include')
-rw-r--r--include/dlt/dlt_common.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/dlt/dlt_common.h b/include/dlt/dlt_common.h
index fa68997..3db3a27 100644
--- a/include/dlt/dlt_common.h
+++ b/include/dlt/dlt_common.h
@@ -1275,6 +1275,13 @@ extern "C"
DltReturnValue dlt_buffer_free_dynamic(DltBuffer *buf);
/**
+ * Check if message fits into buffer.
+ * @param buf Pointer to buffer structure
+ * @return DLT_RETURN_OK if enough space, DLT_RETURN_ERROR otherwise
+ */
+ DltReturnValue dlt_buffer_check_size(DltBuffer *buf, int needed);
+
+ /**
* Write one entry to ringbuffer
* @param buf Pointer to ringbuffer structure
* @param data Pointer to data to be written to ringbuffer