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_shm.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'include/dlt/dlt_shm.h') diff --git a/include/dlt/dlt_shm.h b/include/dlt/dlt_shm.h index fc37117..e3608c3 100644 --- a/include/dlt/dlt_shm.h +++ b/include/dlt/dlt_shm.h @@ -176,6 +176,27 @@ extern void dlt_shm_status(DltShm *buf); */ extern int dlt_shm_free_client(DltShm *buf); +/** + * Returns the total size of the shm. + * @param buf pointer to shm structure + * @return size of the shared memory. + */ +extern int dlt_shm_get_total_size(DltShm *buf); + +/** + * Returns the used size in the shm. + * @param buf pointer to shm structure + * @return size of the shared memory. + */ +extern int dlt_shm_get_used_size(DltShm *buf); + +/** + * Returns the number of messages in the shm. + * @param buf pointer to shm structure + * @return size of the shared memory. + */ +extern int dlt_shm_get_message_count(DltShm *buf); + /** * Deinitialise the shared memory on the server side. * @param buf pointer to shm structure -- cgit v1.2.1