diff options
author | Lutz Helwing <lutz_helwing@mentor.com> | 2015-07-15 14:14:19 +0200 |
---|---|---|
committer | Alexander Wenzel <Alexander.AW.Wenzel@bmw.de> | 2015-10-07 10:40:33 +0200 |
commit | 1236195e9b93aeb6bfa625956fa027f96003756d (patch) | |
tree | 07b08c892a486f9f97c1674e0d253099eb3388f3 /include/dlt/dlt_shm.h | |
parent | 033a69218af3490f6be409f66f350c1568655f61 (diff) | |
download | DLT-daemon-1236195e9b93aeb6bfa625956fa027f96003756d.tar.gz |
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 <Alexander.AW.Wenzel@bmw.de>
Diffstat (limited to 'include/dlt/dlt_shm.h')
-rw-r--r-- | include/dlt/dlt_shm.h | 6 |
1 files changed, 3 insertions, 3 deletions
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. |