summaryrefslogtreecommitdiffstats
path: root/usr.sbin/wsmoused/mouse_protocols.h
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2009-06-05 03:37:10 +0000
committermiod <miod@openbsd.org>2009-06-05 03:37:10 +0000
commitbe45c8af7b5ea619dc995c7164764e06e5fb707e (patch)
treefe0fff8fc0edfbcbb362f198fd89e0b4df439bab /usr.sbin/wsmoused/mouse_protocols.h
parentEPERM from VOP_ACCESS() is always an error, so don't hide it. (diff)
downloadwireguard-openbsd-be45c8af7b5ea619dc995c7164764e06e5fb707e.tar.xz
wireguard-openbsd-be45c8af7b5ea619dc995c7164764e06e5fb707e.zip
Add the ability to attach wsmoused to a different wsdisplay than wsdisplay0
(i.e. ttyCcfg) with the new -D option. While there, a lot of cleanup, including not creating a pidfile by default (since there might be more than one wsmoused running on multiple wsdisplay systems).
Diffstat (limited to 'usr.sbin/wsmoused/mouse_protocols.h')
-rw-r--r--usr.sbin/wsmoused/mouse_protocols.h25
1 files changed, 13 insertions, 12 deletions
diff --git a/usr.sbin/wsmoused/mouse_protocols.h b/usr.sbin/wsmoused/mouse_protocols.h
index 14a2ab64451..11a586fad9e 100644
--- a/usr.sbin/wsmoused/mouse_protocols.h
+++ b/usr.sbin/wsmoused/mouse_protocols.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: mouse_protocols.h,v 1.5 2007/04/10 22:37:17 miod Exp $ */
+/* $OpenBSD: mouse_protocols.h,v 1.6 2009/06/05 03:37:10 miod Exp $ */
/*
* Copyright (c) 2001 Jean-Baptiste Marchand, Julien Montagne and Jerome Verdon
@@ -53,16 +53,17 @@
/* Mouse protocols */
-#define P_UNKNOWN (-1)
-#define P_MS 0 /* Microsoft Serial, 3 bytes */
-#define P_MSC 1 /* Mouse Systems, 5 bytes */
-#define P_LOGI 2 /* Logitech, 3 bytes */
-#define P_MM 3 /* MM series, 3 bytes */
-#define P_LOGIMAN 4 /* Logitech MouseMan 3/4 bytes */
-#define P_MMHIT 5 /* Hitachi Tablet 3 bytes */
-#define P_GLIDEPOINT 6 /* ALPS GlidePoint, 3/4 bytes */
-#define P_IMSERIAL 7 /* MS IntelliMouse, 4 bytes */
-#define P_THINKING 8 /* Kensignton Thinking Mouse, 3/4 bytes */
+#define P_UNKNOWN -2
+#define P_WSCONS -1 /* wsmouse */
+#define P_MS 0 /* Microsoft Serial, 3 bytes */
+#define P_MSC 1 /* Mouse Systems, 5 bytes */
+#define P_LOGI 2 /* Logitech, 3 bytes */
+#define P_MM 3 /* MM series, 3 bytes */
+#define P_LOGIMAN 4 /* Logitech MouseMan 3/4 bytes */
+#define P_MMHIT 5 /* Hitachi Tablet 3 bytes */
+#define P_GLIDEPOINT 6 /* ALPS GlidePoint, 3/4 bytes */
+#define P_IMSERIAL 7 /* MS IntelliMouse, 4 bytes */
+#define P_THINKING 8 /* Kensignton Thinking Mouse, 3/4 bytes */
/* flags */
@@ -201,6 +202,6 @@ typedef struct mousestatus {
void mouse_init(void);
int mouse_identify(void);
int mouse_protocol(unsigned char, mousestatus_t *);
-char *mouse_name(int type);
+const char *mouse_name(int type);
void wsmouse_init(void);