diff options
Diffstat (limited to 'fastboot/fastboot.h')
-rw-r--r-- | fastboot/fastboot.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/fastboot/fastboot.h b/fastboot/fastboot.h index fc5d4f45f..30e79c1a2 100644 --- a/fastboot/fastboot.h +++ b/fastboot/fastboot.h @@ -29,6 +29,7 @@ #ifndef _FASTBOOT_H_ #define _FASTBOOT_H_ +#include <stdlib.h> #include "usb.h" struct sparse_file; @@ -36,7 +37,7 @@ struct sparse_file; /* protocol.c - fastboot protocol */ int fb_command(usb_handle *usb, const char *cmd); int fb_command_response(usb_handle *usb, const char *cmd, char *response); -int fb_download_data(usb_handle *usb, const void *data, unsigned size); +int fb_download_data(usb_handle *usb, const void *data, size_t size); int fb_download_data_sparse(usb_handle *usb, struct sparse_file *s); char *fb_get_error(void); @@ -47,16 +48,16 @@ char *fb_get_error(void); int fb_getvar(struct usb_handle *usb, char *response, const char *fmt, ...); int fb_format_supported(usb_handle *usb, const char *partition, const char *type_override); void fb_queue_flash(const char *ptn, void *data, unsigned sz); -void fb_queue_flash_sparse(const char *ptn, struct sparse_file *s, unsigned sz); +void fb_queue_flash_sparse(const char *ptn, struct sparse_file *s, size_t sz); void fb_queue_erase(const char *ptn); void fb_queue_format(const char *ptn, int skip_if_not_supported, unsigned int max_chunk_sz); void fb_queue_require(const char *prod, const char *var, int invert, unsigned nvalues, const char **value); void fb_queue_display(const char *var, const char *prettyname); -void fb_queue_query_save(const char *var, char *dest, unsigned dest_size); +void fb_queue_query_save(const char *var, char *dest, size_t dest_size); void fb_queue_reboot(void); void fb_queue_command(const char *cmd, const char *msg); -void fb_queue_download(const char *name, void *data, unsigned size); +void fb_queue_download(const char *name, void *data, size_t size); void fb_queue_notice(const char *notice); void fb_queue_wait_for_disconnect(void); int fb_execute_queue(usb_handle *usb); |