From 1236195e9b93aeb6bfa625956fa027f96003756d Mon Sep 17 00:00:00 2001 From: Lutz Helwing Date: Wed, 15 Jul 2015 14:14:19 +0200 Subject: DLT daemon improvement - dlt_init()-check DLT daemon improvement - parameter value range check Adapt unit tests to check for enum return values Changed C version to gnu99 and C++ version to gnu++0c Signed-off-by: Alexander Wenzel --- include/dlt/dlt_shm.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/dlt/dlt_shm.h') diff --git a/include/dlt/dlt_shm.h b/include/dlt/dlt_shm.h index 52e8e1a..20f9110 100644 --- a/include/dlt/dlt_shm.h +++ b/include/dlt/dlt_shm.h @@ -99,7 +99,7 @@ typedef struct * @param key the identifier of the shm, must be the same for server and client * @return negative value if there was an error */ -extern int dlt_shm_init_client(DltShm *buf,int key); +extern DltReturnValue dlt_shm_init_client(DltShm *buf,int key); /** * Initialise the shared memory on the server side. @@ -109,7 +109,7 @@ extern int dlt_shm_init_client(DltShm *buf,int key); * @param size the requested size of the shm * @return negative value if there was an error */ -extern int dlt_shm_init_server(DltShm *buf,int key,int size); +extern DltReturnValue dlt_shm_init_server(DltShm *buf,int key,int size); /** * Push data from client onto the shm. @@ -172,7 +172,7 @@ extern void dlt_shm_status(DltShm *buf); * @param buf pointer to shm structure * @return negative value if there was an error */ -extern int dlt_shm_free_client(DltShm *buf); +extern DltReturnValue dlt_shm_free_client(DltShm *buf); /** * Returns the total size of the shm. -- cgit v1.2.1