+++ /dev/null
-/*
- * 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) { }