diff options
Diffstat (limited to 'src/include/cbfs_core.h')
-rw-r--r-- | src/include/cbfs_core.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/cbfs_core.h b/src/include/cbfs_core.h index e74d618d92..3cef9031ab 100644 --- a/src/include/cbfs_core.h +++ b/src/include/cbfs_core.h @@ -217,6 +217,13 @@ struct cbfs_media { int (*close)(struct cbfs_media *media); }; +/* + * Locate file by name and fill in cbfs_file in host byte order. Returns + * < 0 on error, else the offset of the file data. + */ +ssize_t cbfs_locate_file(struct cbfs_media *media, struct cbfs_file *file, + const char *name); + /* returns pointer to a file entry inside CBFS or NULL */ struct cbfs_file *cbfs_get_file(struct cbfs_media *media, const char *name); |