From c74050b028d91c9bb8995dafba440babc7b621ff Mon Sep 17 00:00:00 2001 From: Alexander Wenzel Date: Mon, 14 Nov 2011 19:28:47 +0100 Subject: Created abstraction of shm buffer management. --- 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 3744ec7..b623981 100644 --- a/include/dlt/dlt_shm.h +++ b/include/dlt/dlt_shm.h @@ -68,6 +68,8 @@ #ifndef DLT_SHM_H #define DLT_SHM_H +#include + /* shared memory key */ /* must be the same for server and cleint */ #define DLT_SHM_KEY 11771 @@ -88,9 +90,7 @@ typedef struct { int shmid; /* Id of shared memory */ int semid; /* Id of semaphore */ - char* shm; /* pointer to beginning of shared memory */ - int size; /* size of data area in shared memory */ - char* mem; /* pointer to data area in shared memory */ + DltBuffer buffer; } DltShm; typedef struct -- cgit v1.2.1