summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexander Wenzel <Alexander.AW.Wenzel@bmw.de>2011-09-23 21:12:51 +0200
committerAlexander Wenzel <Alexander.AW.Wenzel@bmw.de>2011-09-23 21:12:51 +0200
commit1ad9971d8a87721b8a6a98198e31b3b54d1be7ce (patch)
treef8c36b6f81e952086e080e692c57ecd5a38631ed /include
parent0eaf6ec6b762018db31f7626bbc6e2cdfc374c5c (diff)
downloadDLT-daemon-1ad9971d8a87721b8a6a98198e31b3b54d1be7ce.tar.gz
Merged version for SHM now works.
Diffstat (limited to 'include')
-rw-r--r--include/dlt/dlt_shm.h28
-rwxr-xr-xinclude/dlt/dlt_version.h2
2 files changed, 29 insertions, 1 deletions
diff --git a/include/dlt/dlt_shm.h b/include/dlt/dlt_shm.h
new file mode 100644
index 0000000..9727f4b
--- /dev/null
+++ b/include/dlt/dlt_shm.h
@@ -0,0 +1,28 @@
+
+#define DLT_SHM_KEY 10002
+#define DLT_SHM_SIZE (1024*4000)
+#define DLT_SHM_SEM 20013
+
+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 areay in shared memory
+ char* mem; // pointer to data area in shared memory
+} DltShm;
+
+#define DLT_SHM_SEM_GET(id) dlt_shm_pv(id,-1)
+#define DLT_SHM_SEM_FREE(id) dlt_shm_pv(id,1)
+
+extern int dlt_shm_init_client(DltShm *buf,int key,int size);
+extern int dlt_shm_init_server(DltShm *buf,int key,int size);
+
+extern int dlt_shm_push(DltShm *buf,const char *data1, int size1,const char *data2, int size2,const char *data3, int size3);
+extern int dlt_shm_pull(DltShm *buf,char *data, int size);
+
+extern void dlt_shm_info(DltShm *buf);
+extern void dlt_shm_status(DltShm *buf);
+
+extern int dlt_shm_free_client(DltShm *buf);
+extern int dlt_shm_free_server(DltShm *buf);
diff --git a/include/dlt/dlt_version.h b/include/dlt/dlt_version.h
index 1ea8756..37b45b9 100755
--- a/include/dlt/dlt_version.h
+++ b/include/dlt/dlt_version.h
@@ -7,6 +7,6 @@
#define PACKAGE_MAJOR_VERSION "2"
#define PACKAGE_MINOR_VERSION "3"
#define PACKAGE_PATCH_LEVEL "0"
-#define PACKAGE_REVISION "v2.3.0"
+#define PACKAGE_REVISION "v2.3.0-13-g0eaf6ec"
#endif