.name = "hidkb",
.probe = usb_hidkb_probe,
.check = usb_hidkb_check,
+ .remove = usb_hidkb_remove,
.data = NULL
};
return hidkb.data ? 1 : 0;
}
+void usb_hidkb_remove() {
+ hidkb.data = NULL;
+}
+
struct kbrep *usb_hidkb_getChars() {
struct usb_device *dev = (struct usb_device*) hidkb.data;
struct kbrep *ret = (struct kbrep*) malloc(sizeof(struct kbrep));