summaryrefslogtreecommitdiff
path: root/map65/libm65/ipcomm.cpp
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2025-09-16 12:37:12 +0200
committerChristoph Berg <myon@debian.org>2025-09-16 12:57:29 +0200
commit5a4967c577ad245a2117b7b2f71c13b1212fe285 (patch)
tree4d09343cfe757239895a0dd9b399242d2a07d7c2 /map65/libm65/ipcomm.cpp
parent23c903a09fb1d73fd20b50323cd80cfb3aba8799 (diff)
Merge 2.7 changes, I had uploaded -1 from the wrong branch.debian/3.0.0_rc1+repack-2
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 b40a0999..83e98ebd 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();}