diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2017-10-19 15:07:40 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-10-19 15:07:40 +0200 |
commit | a10a8e5e502fb5d5a6f945e208bd00a9bdeca5e2 (patch) | |
tree | cd4f007c081b7693424411cea71cb6c9e98ff379 /include | |
parent | 7f04124c149fa4d8e8f657907c581f10987003e2 (diff) | |
parent | 05761813eff43493ee0519f0699a396de3f007a5 (diff) | |
download | barebox-a10a8e5e502fb5d5a6f945e208bd00a9bdeca5e2.tar.gz barebox-a10a8e5e502fb5d5a6f945e208bd00a9bdeca5e2.tar.xz |
Merge branch 'for-next/usbgadget'
Diffstat (limited to 'include')
-rw-r--r-- | include/bbu.h | 2 | ||||
-rw-r--r-- | include/file-list.h | 5 | ||||
-rw-r--r-- | include/usb/fastboot.h | 7 |
3 files changed, 14 insertions, 0 deletions
diff --git a/include/bbu.h b/include/bbu.h index 9d24ffc395..54434b03e0 100644 --- a/include/bbu.h +++ b/include/bbu.h @@ -42,6 +42,8 @@ bool barebox_update_handler_exists(struct bbu_data *); void bbu_handlers_list(void); +int bbu_handlers_iterate(int (*fn)(struct bbu_handler *, void *), void *); + #ifdef CONFIG_BAREBOX_UPDATE int bbu_register_handler(struct bbu_handler *); diff --git a/include/file-list.h b/include/file-list.h index 608181ff8d..1e02539d4d 100644 --- a/include/file-list.h +++ b/include/file-list.h @@ -20,6 +20,11 @@ struct file_list { struct file_list *file_list_parse(const char *str); void file_list_free(struct file_list *); +int file_list_add_entry(struct file_list *files, const char *name, const char *filename, + unsigned long flags); + +struct file_list_entry *file_list_entry_by_name(struct file_list *files, const char *name); + #define file_list_for_each_entry(files, entry) \ list_for_each_entry(entry, &files->list, list) diff --git a/include/usb/fastboot.h b/include/usb/fastboot.h index dab5a9a299..ced890c9ab 100644 --- a/include/usb/fastboot.h +++ b/include/usb/fastboot.h @@ -5,9 +5,16 @@ #include <file-list.h> #include <usb/composite.h> +/** + * struct f_fastboot_opts - options to configure the fastboot gadget + * @func_inst: The USB function instance to register on + * @files: A file_list containing the files (partitions) to export via fastboot + * @export_bbu: Automatically include the partitions provided by barebox update (bbu) + */ struct f_fastboot_opts { struct usb_function_instance func_inst; struct file_list *files; + bool export_bbu; }; #endif /* _USB_FASTBOOT_H */ |