summaryrefslogtreecommitdiff
path: root/src/synproto.h
diff options
context:
space:
mode:
authorChristoph Brill <egore911@egore911.de>2008-07-14 20:43:55 +0200
committerChristoph Brill <egore911@egore911.de>2008-07-14 20:43:55 +0200
commit2cdb4bb00b3e643abe24da83a006629435fb5c5e (patch)
tree17b3f10cabcdc96199f999deb66fa9d2c60a45f2 /src/synproto.h
parent63d2a8ce5b34c1d98798d44842b362c4ff77d526 (diff)
Build psmcomm on *BSD systems only.
This is the second part of fixing the backend part of synaptics. The new build system is now able to detect whether it's running on *BSD or on Linux and will only build the backends that are available on these platforms. Also it will remove any reference from the built driver to the non-available backends. Thanks to Christian Schmitt for reporting.
Diffstat (limited to 'src/synproto.h')
-rw-r--r--src/synproto.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/synproto.h b/src/synproto.h
index f78009f..d5ae8f9 100644
--- a/src/synproto.h
+++ b/src/synproto.h
@@ -75,8 +75,12 @@ struct CommData {
enum SynapticsProtocol {
SYN_PROTO_PSAUX, /* Raw psaux device */
+#ifdef BUILD_EVENTCOMM
SYN_PROTO_EVENT, /* Linux kernel event interface */
+#endif /* BUILD_EVENTCOMM */
+#ifdef BUILD_PSMCOMM
SYN_PROTO_PSM, /* FreeBSD psm driver */
+#endif /* BUILD_PSMCOMM */
SYN_PROTO_ALPS /* ALPS touchpad protocol */
};
@@ -95,8 +99,12 @@ struct SynapticsProtocolOperations {
};
extern struct SynapticsProtocolOperations psaux_proto_operations;
+#ifdef BUILD_EVENTCOMM
extern struct SynapticsProtocolOperations event_proto_operations;
+#endif /* BUILD_EVENTCOMM */
+#ifdef BUILD_PSMCOMM
extern struct SynapticsProtocolOperations psm_proto_operations;
+#endif /* BUILD_PSMCOMM */
extern struct SynapticsProtocolOperations alps_proto_operations;