diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2015-06-30 08:23:42 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-07-01 09:04:22 +0200 |
commit | 74ac4489cf058d5c466765418de8fd89306fefa2 (patch) | |
tree | 61fdfbee398b38732e730041c79b93561ce4a54b /include/bbu.h | |
parent | fc6cb7aeaf6f96505ba15a99b5d02102377ee79a (diff) | |
download | barebox-74ac4489cf058d5c466765418de8fd89306fefa2.tar.gz barebox-74ac4489cf058d5c466765418de8fd89306fefa2.tar.xz |
bbu: Add a standard file-to-device-copy handler
The most standard update handler will simply copy a file to a device.
This can be shared across several users, so add a standard handler for
this operation.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/bbu.h')
-rw-r--r-- | include/bbu.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/bbu.h b/include/bbu.h index 4a3d35e7ce..af2f84a64e 100644 --- a/include/bbu.h +++ b/include/bbu.h @@ -4,6 +4,7 @@ #include <asm-generic/errno.h> #include <linux/list.h> #include <linux/types.h> +#include <filetype.h> struct bbu_data { #define BBU_FLAG_FORCE (1 << 0) @@ -41,6 +42,9 @@ void bbu_handlers_list(void); int bbu_register_handler(struct bbu_handler *); +int bbu_register_std_file_update(const char *name, unsigned long flags, + char *devicefile, enum filetype imagetype); + #else static inline int bbu_register_handler(struct bbu_handler *unused) @@ -48,6 +52,11 @@ static inline int bbu_register_handler(struct bbu_handler *unused) return -EINVAL; } +static inline int bbu_register_std_file_update(const char *name, unsigned long flags, + char *devicefile, enum filetype imagetype) +{ + return -ENOSYS; +} #endif #endif /* __INCLUDE_BBU_H */ |