#include "hidrawconv.h"
-static void pr(uint8_t msg[MAXREPORTLEN], int msglen,
- const uint8_t last[MAXREPORTLEN]) {
+static void pr(const uint8_t *msg, int msglen, const uint8_t *last) {
dumphex(stdout, msg, msglen);
putchar('\n');
}
{ 0 }
};
-static void pr(uint8_t msg[MAXREPORTLEN], int msglen,
- const uint8_t last[MAXREPORTLEN]) {
+static void pr(const uint8_t *msg, int msglen, const uint8_t *last) {
reportbits(msg, last, msglen, keybits);
reportlocs(msg, last, msglen, vallocs);
}
#define MAXREPORTLEN 256
#define MAXREPORTS 256
-typedef void ProcessReport(uint8_t msg[MAXREPORTLEN], int msglen,
- const uint8_t last[MAXREPORTLEN]);
+typedef void ProcessReport(const uint8_t *msg, int msglen, const uint8_t *last);
extern const char *const descriptor;
extern ProcessReport *const report_processors[MAXREPORTS];