summaryrefslogtreecommitdiffhomepage
path: root/proto-iokit-foohid
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-12-18 09:05:25 +0100
committerStanislaw Halik <sthalik@misaki.pl>2017-12-18 09:12:55 +0100
commitc2f88ee8bec8cdd0ea573b54aee89a241c7d4deb (patch)
tree3b311ad8bec8c05bf82e4f7ef77ace6468798fb4 /proto-iokit-foohid
parent6167effc23b8ca8a3034f1ab465565f92c621187 (diff)
plugins: rename check_status -> initialize
It's a contract for plugin invocation that the particular function fills the role of initialization. Rename accordingly.
Diffstat (limited to 'proto-iokit-foohid')
-rw-r--r--proto-iokit-foohid/iokitprotocol.cpp2
-rw-r--r--proto-iokit-foohid/iokitprotocol.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/proto-iokit-foohid/iokitprotocol.cpp b/proto-iokit-foohid/iokitprotocol.cpp
index d3f0d2c9..b66aeb7b 100644
--- a/proto-iokit-foohid/iokitprotocol.cpp
+++ b/proto-iokit-foohid/iokitprotocol.cpp
@@ -22,7 +22,7 @@ IOKitProtocol::IOKitProtocol()
qWarning("%s\n", qPrintable(joystick->errorMessage()));
}
-module_status IOKitProtocol::check_status()
+module_status IOKitProtocol::initialize()
{
if (!joystick)
return otr_tr("Load failure");
diff --git a/proto-iokit-foohid/iokitprotocol.h b/proto-iokit-foohid/iokitprotocol.h
index 39bccf52..1282b3d2 100644
--- a/proto-iokit-foohid/iokitprotocol.h
+++ b/proto-iokit-foohid/iokitprotocol.h
@@ -18,7 +18,7 @@ class IOKitProtocol : public IProtocol
public:
IOKitProtocol();
- module_status check_status() override;
+ module_status initialize() override;
void pose(const double *headpose) final;
QString game_name() final;