diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index a0c540a..8be530f 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -12,13 +12,9 @@
-
-
-
-
-
-
+
+
@@ -30,11 +26,11 @@
-
+
-
-
+
+
@@ -48,7 +44,7 @@
-
+
@@ -63,8 +59,8 @@
-
-
+
+
@@ -73,7 +69,7 @@
-
+
@@ -151,10 +147,10 @@
-
-
+
+
@@ -358,12 +354,12 @@
-
+
-
+
@@ -378,11 +374,11 @@
-
+
-
+
@@ -1175,17 +1171,10 @@
-
-
-
-
-
-
-
-
+
@@ -1234,17 +1223,10 @@
-
-
-
-
-
-
-
-
+
-
+
@@ -1265,5 +1247,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/FlippR-Driver/contrib/pre-commit b/FlippR-Driver/contrib/pre-commit
new file mode 100755
index 0000000..e2b0d22
--- /dev/null
+++ b/FlippR-Driver/contrib/pre-commit
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+echo "Making sure the code compiles!!!"
+
+if [ ! -d 'FlippR-Driver/build' ]; then
+ echo "Make sure you have the build folder!"
+ exit 1
+fi
+
+cd FlippR-Driver/build
+cmake ..
+make
+
+exit $rc
diff --git a/FlippR-Driver/src/utility/networking/input/SocketHandler.cpp b/FlippR-Driver/src/utility/networking/input/SocketHandler.cpp
index 573db35..57594be 100644
--- a/FlippR-Driver/src/utility/networking/input/SocketHandler.cpp
+++ b/FlippR-Driver/src/utility/networking/input/SocketHandler.cpp
@@ -35,7 +35,7 @@ void SocketHandler::run()
while(true)
{
- Event event = this->queue.pop();
+ Event event = this->queue->pop();
if(event.name == "END")
{
@@ -50,7 +50,7 @@ void SocketHandler::run()
void SocketHandler::handle(Event &event)
{
- this->queue.push(event);
+ this->queue->push(event);
}
}
diff --git a/FlippR-Driver/src/utility/networking/input/SocketHandler.h b/FlippR-Driver/src/utility/networking/input/SocketHandler.h
index 663c442..7279768 100644
--- a/FlippR-Driver/src/utility/networking/input/SocketHandler.h
+++ b/FlippR-Driver/src/utility/networking/input/SocketHandler.h
@@ -11,10 +11,10 @@
#include
-#include "BlockingQueue.hpp"
-#include "InputDriver.h"
-#include "detail/EventHandler.h"
-#include "Event.h"
+#include "utility/IBlockingQueue.h"
+#include "input/InputDriver.h"
+#include "input/detail/EventHandler.h"
+#include "input/Event.h"
namespace flippR_driver
{
@@ -33,7 +33,7 @@ public:
void handle(flippR_driver::input::Event &event) override;
private:
- flippR_driver::utility::BlockingQueue queue;
+ flippR_driver::utility::IBlockingQueue* queue;
};
}