summaryrefslogtreecommitdiff
path: root/map65/libm65/ipcomm.cpp
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2025-01-09 22:12:12 +0100
committerChristoph Berg <myon@debian.org>2025-01-09 22:12:12 +0100
commit98c02f78b26811ba5d9962ba27ec24cacf82bb22 (patch)
treedaaf609cde31d8fb3b6c3457c43663d14f0dda80 /map65/libm65/ipcomm.cpp
parent332d2ce88c2f0bc2908cacdc6707e2f9fa49f26d (diff)
parent992d4b4b8d3f3a630a2cf00d593ee4ce4dfa7ce8 (diff)
Update upstream source from tag 'upstream/2.7.0_rc8+repack'
Update to upstream version '2.7.0~rc8+repack' with Debian dir 6fce941c8282d35c8df23d3de779a42e27688bc1
Diffstat (limited to 'map65/libm65/ipcomm.cpp')
-rwxr-xr-xmap65/libm65/ipcomm.cpp68
1 files changed, 34 insertions, 34 deletions
diff --git a/map65/libm65/ipcomm.cpp b/map65/libm65/ipcomm.cpp
index 83e98ebd..b40a0999 100755
--- a/map65/libm65/ipcomm.cpp
+++ b/map65/libm65/ipcomm.cpp
@@ -1,34 +1,34 @@
-#include <QDebug>
-#include <qsharedmemory.h>
-#include <QSystemSemaphore>
-
-QSharedMemory mem_m65("mem_m65");
-QSystemSemaphore sem_m65("sem_m65", 1, QSystemSemaphore::Open);
-
-extern "C" {
- bool attach_m65_();
- bool create_m65_(int nsize);
- bool detach_m65_();
- bool lock_m65_();
- bool unlock_m65_();
- char* address_m65_();
- int size_m65_();
-
- bool acquire_m65_();
- bool release_m65_();
-
- extern struct {
- char c[10];
- } m65com_;
-}
-
-bool attach_m65_() {return mem_m65.attach();}
-bool create_m65_(int nsize) {return mem_m65.create(nsize);}
-bool detach_m65_() {return mem_m65.detach();}
-bool lock_m65_() {return mem_m65.lock();}
-bool unlock_m65_() {return mem_m65.unlock();}
-char* address_m65_() {return (char*)mem_m65.constData();}
-int size_m65_() {return (int)mem_m65.size();}
-
-bool acquire_m65_() {return sem_m65.acquire();}
-bool release_m65_() {return sem_m65.release();}
+#include <QDebug>
+#include <qsharedmemory.h>
+#include <QSystemSemaphore>
+
+QSharedMemory mem_m65("mem_m65");
+QSystemSemaphore sem_m65("sem_m65", 1, QSystemSemaphore::Open);
+
+extern "C" {
+ bool attach_m65_();
+ bool create_m65_(int nsize);
+ bool detach_m65_();
+ bool lock_m65_();
+ bool unlock_m65_();
+ char* address_m65_();
+ int size_m65_();
+
+ bool acquire_m65_();
+ bool release_m65_();
+
+ extern struct {
+ char c[10];
+ } m65com_;
+}
+
+bool attach_m65_() {return mem_m65.attach();}
+bool create_m65_(int nsize) {return mem_m65.create(nsize);}
+bool detach_m65_() {return mem_m65.detach();}
+bool lock_m65_() {return mem_m65.lock();}
+bool unlock_m65_() {return mem_m65.unlock();}
+char* address_m65_() {return (char*)mem_m65.constData();}
+int size_m65_() {return (int)mem_m65.size();}
+
+bool acquire_m65_() {return sem_m65.acquire();}
+bool release_m65_() {return sem_m65.release();}