diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2018-02-08 09:03:46 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-02-08 09:03:46 +0100 |
commit | 490a3c496454cea131dbd5edadbe7d7cfce4cfa8 (patch) | |
tree | 5222ffde63801a98ce90168d6be2247cc39bcfa7 /include | |
parent | b84f8a712ffe04def5f3d402ef9be990d485ecce (diff) | |
parent | 5316da0098c913b1e548801a57b7d5d9fd5a4d6d (diff) | |
download | barebox-490a3c496454cea131dbd5edadbe7d7cfce4cfa8.tar.gz barebox-490a3c496454cea131dbd5edadbe7d7cfce4cfa8.tar.xz |
Merge branch 'for-next/misc'
Diffstat (limited to 'include')
-rw-r--r-- | include/driver.h | 2 | ||||
-rw-r--r-- | include/filetype.h | 1 | ||||
-rw-r--r-- | include/parseopt.h | 2 |
3 files changed, 4 insertions, 1 deletions
diff --git a/include/driver.h b/include/driver.h index e571fbbec5..f37805db17 100644 --- a/include/driver.h +++ b/include/driver.h @@ -475,7 +475,7 @@ struct cdev *cdev_readlink(struct cdev *cdev); struct cdev *cdev_by_device_node(struct device_node *node); struct cdev *cdev_by_partuuid(const char *partuuid); struct cdev *cdev_open(const char *name, unsigned long flags); -struct cdev *cdev_create_loop(const char *path, ulong flags); +struct cdev *cdev_create_loop(const char *path, ulong flags, loff_t offset); void cdev_remove_loop(struct cdev *cdev); int cdev_do_open(struct cdev *, unsigned long flags); void cdev_close(struct cdev *cdev); diff --git a/include/filetype.h b/include/filetype.h index b98dcb5014..ec5aea2635 100644 --- a/include/filetype.h +++ b/include/filetype.h @@ -50,6 +50,7 @@ const char *file_type_to_short_string(enum filetype f); enum filetype file_detect_partition_table(const void *_buf, size_t bufsize); enum filetype file_detect_type(const void *_buf, size_t bufsize); enum filetype file_name_detect_type(const char *filename); +enum filetype file_name_detect_type_offset(const char *filename, loff_t pos); enum filetype cdev_detect_type(const char *name); enum filetype is_fat_or_mbr(const unsigned char *sector, unsigned long *bootsec); int is_fat_boot_sector(const void *_buf); diff --git a/include/parseopt.h b/include/parseopt.h index 1f9763f8c9..273a371ac3 100644 --- a/include/parseopt.h +++ b/include/parseopt.h @@ -1,5 +1,7 @@ #ifndef __PARSEOPT_H__ #define __PARSEOPT_H__ +void parseopt_llu_suffix(const char *options, const char *opt, + unsigned long long *val); void parseopt_b(const char *options, const char *opt, bool *val); void parseopt_hu(const char *options, const char *opt, unsigned short *val); |