squashfs.h 768 B

1234567891011121314151617181920212223242526
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (C) 2020 Bootlin
  4. *
  5. * Author: Joao Marcos Costa <joaomarcos.costa@bootlin.com>
  6. *
  7. * squashfs.h: SquashFS filesystem implementation.
  8. */
  9. #ifndef _SQFS_H_
  10. #define _SQFS_H_
  11. struct disk_partition;
  12. int sqfs_opendir(const char *filename, struct fs_dir_stream **dirsp);
  13. int sqfs_readdir(struct fs_dir_stream *dirs, struct fs_dirent **dentp);
  14. int sqfs_probe(struct blk_desc *fs_dev_desc,
  15. struct disk_partition *fs_partition);
  16. int sqfs_read(const char *filename, void *buf, loff_t offset,
  17. loff_t len, loff_t *actread);
  18. int sqfs_size(const char *filename, loff_t *size);
  19. int sqfs_exists(const char *filename);
  20. void sqfs_close(void);
  21. void sqfs_closedir(struct fs_dir_stream *dirs);
  22. #endif /* SQFS_H */