]> cvs.zerfleddert.de Git - hmcfgusb/blobdiff - hmcfgusb.h
flash-ota: make it possible to reduce the payload-length with -l
[hmcfgusb] / hmcfgusb.h
index df6d1c1717c525cdf05ae97641fff53985b58ac2..7bfc53dd53bf1667df348a017b1cadc0faed05eb 100644 (file)
@@ -29,6 +29,8 @@ 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);
@@ -36,5 +38,8 @@ 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);
Impressum, Datenschutz