summaryrefslogtreecommitdiffhomepage
path: root/proto-wine/ftnoir_protocol_wine.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-11-04 19:15:54 +0100
committerStanislaw Halik <sthalik@misaki.pl>2016-11-04 19:48:11 +0100
commitb89699c7551f768bf4ff47820543f8c7b8c794af (patch)
treec3a21ec23a40250ec54b97fe17b9035a932cfaf8 /proto-wine/ftnoir_protocol_wine.cpp
parent068e0c7d432ede0a388fe1478b5146fcf1809315 (diff)
modules: make names unique
Diffstat (limited to 'proto-wine/ftnoir_protocol_wine.cpp')
-rw-r--r--proto-wine/ftnoir_protocol_wine.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/proto-wine/ftnoir_protocol_wine.cpp b/proto-wine/ftnoir_protocol_wine.cpp
index bc49ac8c..ea7fadf2 100644
--- a/proto-wine/ftnoir_protocol_wine.cpp
+++ b/proto-wine/ftnoir_protocol_wine.cpp
@@ -9,7 +9,7 @@
#include <fcntl.h> /* For O_* constants */
#include "csv/csv.h"
-FTNoIR_Protocol::FTNoIR_Protocol() : lck_shm(WINE_SHM_NAME, WINE_MTX_NAME, sizeof(WineSHM)), shm(NULL), gameid(0)
+wine::wine() : lck_shm(WINE_SHM_NAME, WINE_MTX_NAME, sizeof(WineSHM)), shm(NULL), gameid(0)
{
if (lck_shm.success()) {
shm = (WineSHM*) lck_shm.ptr();
@@ -20,7 +20,7 @@ FTNoIR_Protocol::FTNoIR_Protocol() : lck_shm(WINE_SHM_NAME, WINE_MTX_NAME, sizeo
wrapper.start("wine", QStringList() << (library_path + "opentrack-wrapper-wine.exe.so"));
}
-FTNoIR_Protocol::~FTNoIR_Protocol()
+wine::~wine()
{
if (shm) {
shm->stop = true;
@@ -31,7 +31,7 @@ FTNoIR_Protocol::~FTNoIR_Protocol()
//shm_unlink("/" WINE_SHM_NAME);
}
-void FTNoIR_Protocol::pose( const double *headpose )
+void wine::pose( const double *headpose )
{
if (shm)
{
@@ -54,9 +54,9 @@ void FTNoIR_Protocol::pose( const double *headpose )
}
}
-bool FTNoIR_Protocol::correct()
+bool wine::correct()
{
return lck_shm.success();
}
-OPENTRACK_DECLARE_PROTOCOL(FTNoIR_Protocol, FTControls, FTNoIR_ProtocolDll)
+OPENTRACK_DECLARE_PROTOCOL(wine, FTControls, wineDll)