diff options
author | Saya Sugiura <ssugiura@jp.adit-jv.com> | 2018-12-13 16:27:07 +0900 |
---|---|---|
committer | Manikandan C <mchockalingam@de.adit-jv.com> | 2018-12-17 18:23:10 +0100 |
commit | ddcada80bac339e31158f2d28ddab8ffba72cb37 (patch) | |
tree | 4ced9a4151579299238121e0cec4bb37da294154 /include/dlt/dlt_common.h | |
parent | fcf2d481410d62b0656c7f3821a341a0d51c9f10 (diff) | |
download | DLT-daemon-ddcada80bac339e31158f2d28ddab8ffba72cb37.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/dlt/dlt_common.h')
-rw-r--r-- | include/dlt/dlt_common.h | 7 |
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 |