chiark / gitweb /
get rid of old hiddev-test
authorian <ian>
Mon, 16 Jun 2008 00:16:32 +0000 (00:16 +0000)
committerian <ian>
Mon, 16 Jun 2008 00:16:32 +0000 (00:16 +0000)
hostside/.cvsignore
hostside/hiddev-test.c [deleted file]

index 7528cb58ebd94421b04539c35d84db02e5b49e1a..0cdbc7bbb10a345eecdd271cb4f901a429ed628f 100644 (file)
@@ -26,4 +26,3 @@ record-y.[ch]
 evdev-manip
 input-codes.h
 +dump.*
-hiddev-test
diff --git a/hostside/hiddev-test.c b/hostside/hiddev-test.c
deleted file mode 100644 (file)
index 3636b72..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * hiddev-test </dev/usb/hidddevN
- */
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-
-#include <sys/types.h>
-#include <sys/ioctl.h>
-
-#include <linux/types.h>
-#include <linux/hiddev.h>
-
-#include "common.h"
-
-int main(int argc, char **argv) {
-  struct hiddev_usage_ref ev;
-
-  if (!argv[0] || argv[1]) badusage("no arguments allowed");
-
-  for (;;) {
-    r= fread(&ev,1,sizeof(ev),stdin);
-    if (feof(stdin)) exit(0);
-    if (ferror(stdin)) diee("fread stdin");
-    assert(r==sizeof(ev));
-
-    if (ev.field_index == HID_FIELD_INDEX_NONE)
-      printf("report type %04x id %04x field index NONE\n",
-            ev.report_type, ev.report_id);
-  }
-}
-
-const char *progname= "hiddev-test";
-void die_hook(void) { }
-void die_vprintf_hook(const char *fmt, va_list al) { }