abstract Device to support multiple device types

This commit is contained in:
Sean Rhea
2009-08-09 14:49:18 -07:00
parent d8b7aceb1e
commit 47cdc3b62d
6 changed files with 97 additions and 9 deletions

View File

@@ -22,6 +22,9 @@
#define PT_DEBUG false
static bool powerTapRegistered =
Device::addDevice("PowerTap", new PowerTapDevice());
static bool
hasNewline(const char *buf, int len)
{