X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/hmcfgusb/blobdiff_plain/4371275b6337ea3ae513f1c19463f8b4745d89d8..dc9f58f02b49575ad6de45626468a7f55dd57a12:/hmcfgusb.h?ds=sidebyside diff --git a/hmcfgusb.h b/hmcfgusb.h index 8a0751a..7bfc53d 100644 --- a/hmcfgusb.h +++ b/hmcfgusb.h @@ -29,11 +29,17 @@ struct hmcfgusb_dev { int n_usb_pfd; struct pollfd *pfd; int n_pfd; + int bootloader; + time_t opened_at; }; int hmcfgusb_send(struct hmcfgusb_dev *usbdev, unsigned char* send_data, int len, int done); +int hmcfgusb_send_null_frame(struct hmcfgusb_dev *usbdev, int silent); struct hmcfgusb_dev *hmcfgusb_init(hmcfgusb_cb_fn cb, void *data); int hmcfgusb_add_pfd(struct hmcfgusb_dev *dev, int fd, short events); int hmcfgusb_poll(struct hmcfgusb_dev *dev, int timeout); +void hmcfgusb_enter_bootloader(struct hmcfgusb_dev *dev); +void hmcfgusb_leave_bootloader(struct hmcfgusb_dev *dev); void hmcfgusb_close(struct hmcfgusb_dev *dev); +void hmcfgusb_exit(void); void hmcfgusb_set_debug(int d);