Quartzdrv - add Beep
Steven Edwards
winehacker at gmail.com
Sat Aug 25 04:43:44 CDT 2007
I got tired of seeing it sitting there with nothing in it.
--
Steven Edwards
"There is one thing stronger than all the armies in the world, and
that is an idea whose time has come." - Victor Hugo
-------------- next part --------------
From cc6593f5ba56dc76adb418adbb3627e70cb81138 Mon Sep 17 00:00:00 2001
From: Steven Edwards <winehacker at gmail.com>
Date: Sat, 25 Aug 2007 05:41:03 -0400
Subject: [PATCH] Added system beep to quartzdrv
---
dlls/winequartz.drv/Makefile.in | 2 ++
dlls/winequartz.drv/keyboard.c | 28 ++++++++++++++++++++++++++++
dlls/winequartz.drv/winequartz.drv.spec | 1 +
3 files changed, 31 insertions(+), 0 deletions(-)
diff --git a/dlls/winequartz.drv/Makefile.in b/dlls/winequartz.drv/Makefile.in
index b2214b6..91ffbb5 100644
--- a/dlls/winequartz.drv/Makefile.in
+++ b/dlls/winequartz.drv/Makefile.in
@@ -4,8 +4,10 @@ SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = winequartz.drv
IMPORTS = user32 gdi32 advapi32 kernel32 ntdll
+EXTRALIBS = -framework Cocoa
C_SRCS = \
+ keyboard.c \
quartzdrv_main.c
@MAKE_DLL_RULES@
diff --git a/dlls/winequartz.drv/keyboard.c b/dlls/winequartz.drv/keyboard.c
new file mode 100644
index 0000000..bb78f03
--- /dev/null
+++ b/dlls/winequartz.drv/keyboard.c
@@ -0,0 +1,28 @@
+/*
+ * keyboard.c
+ *
+ * Copyright 2006 Emmanuel Maillard
+ *
+ * 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 Street, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#include "config.h"
+
+extern void NSBeep(void);
+
+void QDRV_Beep(void)
+{
+ NSBeep();
+}
diff --git a/dlls/winequartz.drv/winequartz.drv.spec b/dlls/winequartz.drv/winequartz.drv.spec
index d98d860..48a6497 100644
--- a/dlls/winequartz.drv/winequartz.drv.spec
+++ b/dlls/winequartz.drv/winequartz.drv.spec
@@ -1 +1,2 @@
# Nothing Yet
+@ cdecl Beep() QDRV_Beep
--
1.4.0
More information about the wine-patches
mailing list