I have started work on a usbredir kernel module to enable USB redirection for XSpice. I'd like to reuse the usbredirparser.c code, but it needs changes to compile as part of a kernel module. These are those changes.