10 #include <linux/types.h>
16 #define MAXREPORTLEN 256
17 #define MAXREPORTS 256
19 typedef struct { int len; uint8_t *msg; } Last;
20 typedef struct { Last lasts[MAXREPORTS]; } LastReports;
21 typedef void ProcessReport(const uint8_t *msg, int msglen, const uint8_t *last);
23 extern const char *const descriptor;
24 extern ProcessReport *const report_processors[MAXREPORTS];
26 void dispatch(LastReports *lasts, const char *message_prefix,
27 ProcessReport *const report_processors[MAXREPORTS],
28 const uint8_t *msg, int l);
30 /*---------- specific reporters ----------*/
38 void reportbits(const uint8_t msg[], const uint8_t last[],
39 int len, const KeyBit bits[]);
44 int pos, rshift, sign; /* mask is applied before rshift */
48 void reportlocs(const uint8_t msg[], const uint8_t last[],
49 int len, const ValLoc locs[]);
52 #endif /*HIDRAWCONV_H*/