winemir.drv: Add Mir driver

André Hentschel nerv at dawncrow.de
Mon Apr 1 07:50:26 CDT 2013


Mir is the new display server by Ubuntu and will soon be used by _every_ distro.
my work is based on Detlefs wayland driver.
An iOS driver will follow in... let's say 365 days ;)

---
 dlls/winemir.drv/Makefile.in          |    8 ++++
 dlls/winemir.drv/mir.c            |   51 +++++++++++++++++++++++++++++
 dlls/winemir.drv/winemir.drv.spec |    2 +
 3 files changed, 61 insertions(+), 0 deletions(-)
 create mode 100644 dlls/winemir.drv/Makefile.in
 create mode 100644 dlls/winemir.drv/mir.c
 create mode 100644 dlls/winemir.drv/winemir.drv.spec

diff --git a/dlls/winemir.drv/Makefile.in b/dlls/winemir.drv/Makefile.in
new file mode 100644
index 0000000..62daa57
--- /dev/null
+++ b/dlls/winemir.drv/Makefile.in
@@ -0,0 +1,8 @@
+MODULE    = winemir.drv
+IMPORTS   = winewayland.drv
+
+C_SRCS = \
+	mir.c
+
+ at MAKE_DLL_RULES@
diff --git a/dlls/winemir.drv/mir.c b/dlls/winemir.drv/mir.c
new file mode 100644
index 0000000..f574c3c
--- /dev/null
+++ b/dlls/winemir.drv/mir.c
@@ -0,0 +1,51 @@
+/*
+ * Mir driver for Wine
+ *
+ * Copyright 2013 Detlef Riekenberg
+ * Copyright 2013 André Hentschel
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#include "config.h"
+
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(mir);
+
+/*****************************************************
+ * DllMain
+ */
+BOOL WINAPI DllMain(HINSTANCE hdll, DWORD reason, LPVOID reserved)
+{
+    TRACE("(%p, %d, %p)\n",hdll, reason, reserved);
+
+    switch(reason)
+    {
+        case DLL_PROCESS_ATTACH:
+            /* ToDo ...*/
+            break;
+        case DLL_THREAD_ATTACH:
+            /* ToDo ...*/
+            break;
+        case DLL_THREAD_DETACH:
+            /* ToDo ...*/
+            break;
+        case DLL_PROCESS_DETACH:
+            /* ToDo ...*/
+            break;
+    }
+    return TRUE;
+}
+
diff --git a/dlls/winemir.drv/winemir.drv.spec b/dlls/winemir.drv/winemir.drv.spec
new file mode 100644
index 0000000..a5a7942
--- /dev/null
+++ b/dlls/winemir.drv/winemir.drv.spec
@@ -0,0 +1,2 @@
+@ stub Fail(?)
+
-- 
1.7.5.4








More information about the wine-patches mailing list