From c37ecb5031eebc36bfba8be0d741ec858e8898f7 Mon Sep 17 00:00:00 2001 From: Alexander Wenzel Date: Thu, 29 Sep 2011 15:24:54 +0200 Subject: Fixed filetransfer to use shm status for flow control. Added new function to dlt user library. --- include/dlt/dlt_user.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include/dlt/dlt_user.h') diff --git a/include/dlt/dlt_user.h b/include/dlt/dlt_user.h index 1ea46cc..f2a1400 100755 --- a/include/dlt/dlt_user.h +++ b/include/dlt/dlt_user.h @@ -540,6 +540,16 @@ int dlt_log_raw(DltContext *handle,DltLogLevelType loglevel, void *data,uint16_t */ int dlt_forward_msg(void *msgdata,size_t size); +/** + * Get the total size and available size of the shared memory buffer between daemon and applications. + * This information is useful to control the flow control between applications and daemon. + * For example only 50% of the buffer should be used for file transfer. + * @param total_size total size of buffer in bytes + * @param used_size used size of buffer in bytes + * @return negative value if there was an error + */ +int dlt_user_check_buffer(int *total_size, int *used_size); + #ifdef __cplusplus } #endif -- cgit v1.2.1