summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_protocol_ftn
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-07-16 11:29:59 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-07-16 11:29:59 +0200
commitb0b7c2b0e1762a7c0058e7f507a3b7cc9a03daf6 (patch)
tree246864539eba1669fc19a2007038dfb692a04788 /ftnoir_protocol_ftn
parentdfbe00cb1d9ce4cb52448cf4c1d577fe7b1eaad7 (diff)
all: use macros for symbol exposure
Diffstat (limited to 'ftnoir_protocol_ftn')
-rw-r--r--ftnoir_protocol_ftn/ftnoir_protocol_ftn.cpp5
-rw-r--r--ftnoir_protocol_ftn/ftnoir_protocol_ftn_dialog.cpp5
-rw-r--r--ftnoir_protocol_ftn/ftnoir_protocol_ftn_dll.cpp31
3 files changed, 1 insertions, 40 deletions
diff --git a/ftnoir_protocol_ftn/ftnoir_protocol_ftn.cpp b/ftnoir_protocol_ftn/ftnoir_protocol_ftn.cpp
index f5911b2a..6aed5210 100644
--- a/ftnoir_protocol_ftn/ftnoir_protocol_ftn.cpp
+++ b/ftnoir_protocol_ftn/ftnoir_protocol_ftn.cpp
@@ -48,7 +48,4 @@ bool FTNoIR_Protocol::correct()
return outSocket.bind(QHostAddress::Any, 0, QUdpSocket::ShareAddress | QUdpSocket::ReuseAddressHint);
}
-extern "C" OPENTRACK_EXPORT IProtocol* GetConstructor()
-{
- return new FTNoIR_Protocol;
-}
+OPENTRACK_DECLARE_PROTOCOL(FTNoIR_Protocol, FTNControls, FTNoIR_ProtocolDll)
diff --git a/ftnoir_protocol_ftn/ftnoir_protocol_ftn_dialog.cpp b/ftnoir_protocol_ftn/ftnoir_protocol_ftn_dialog.cpp
index 8104a9de..8a66f13b 100644
--- a/ftnoir_protocol_ftn/ftnoir_protocol_ftn_dialog.cpp
+++ b/ftnoir_protocol_ftn/ftnoir_protocol_ftn_dialog.cpp
@@ -54,8 +54,3 @@ void FTNControls::doCancel() {
s.b->reload();
this->close();
}
-
-extern "C" OPENTRACK_EXPORT IProtocolDialog* GetDialog( )
-{
- return new FTNControls;
-}
diff --git a/ftnoir_protocol_ftn/ftnoir_protocol_ftn_dll.cpp b/ftnoir_protocol_ftn/ftnoir_protocol_ftn_dll.cpp
deleted file mode 100644
index d1fa3e33..00000000
--- a/ftnoir_protocol_ftn/ftnoir_protocol_ftn_dll.cpp
+++ /dev/null
@@ -1,31 +0,0 @@
-/********************************************************************************
-* FaceTrackNoIR This program is a private project of some enthusiastic *
-* gamers from Holland, who don't like to pay much for *
-* head-tracking. *
-* *
-* Copyright (C) 2012 Wim Vriend (Developing) *
-* Ron Hendriks (Researching and Testing) *
-* *
-* Homepage *
-* *
-* This program is free software; you can redistribute it and/or modify it *
-* under the terms of the GNU General Public License as published by the *
-* Free Software Foundation; either version 3 of the License, or (at your *
-* option) any later version. *
-* *
-* This program is distributed in the hope that it will be useful, but *
-* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *
-* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for *
-* more details. *
-* *
-* You should have received a copy of the GNU General Public License along *
-* with this program; if not, see <http://www.gnu.org/licenses/>. *
-* *
-********************************************************************************/
-#include "ftnoir_protocol_ftn.h"
-#include "opentrack/plugin-api.hpp"
-
-extern "C" OPENTRACK_EXPORT Metadata* GetMetadata()
-{
- return new FTNoIR_ProtocolDll;
-}