summaryrefslogtreecommitdiff
path: root/wrapper/wrapper_io.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'wrapper/wrapper_io.hpp')
-rw-r--r--wrapper/wrapper_io.hpp21
1 files changed, 17 insertions, 4 deletions
diff --git a/wrapper/wrapper_io.hpp b/wrapper/wrapper_io.hpp
index 3427e3f..aff572b 100644
--- a/wrapper/wrapper_io.hpp
+++ b/wrapper/wrapper_io.hpp
@@ -1,8 +1,21 @@
#pragma once
-#include <rawaccel.hpp>
+#include <rawaccel-settings.h>
+
+using namespace rawaccel;
+using namespace System;
struct wrapper_io {
- void writeToDriver(rawaccel::mouse_modifier* modifier);
- rawaccel::mouse_modifier* readFromDriver();
-}; \ No newline at end of file
+ static void writeToDriver(const settings&);
+ static void readFromDriver(settings&);
+};
+
+public ref struct DriverIOException : public IO::IOException {
+public:
+ DriverIOException() {}
+ DriverIOException(String^ what) : IO::IOException(what) {}
+};
+
+public ref struct DriverNotInstalledException : public DriverIOException {};
+
+public ref struct DriverWriteCDException : public DriverIOException {};