]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blob - contrib/android/block_range.h
31e3c23fad50d7250d9d28670bef9814ba6f474c
[thirdparty/e2fsprogs.git] / contrib / android / block_range.h
1 #ifndef BLOCK_RANGE_H
2 # define BLOCK_RANGE_H
3
4 # include <sys/types.h>
5 # include <ext2fs/ext2fs.h>
6
7 struct block_range {
8 blk64_t start;
9 blk64_t end;
10 struct block_range *next;
11 };
12
13 void add_blocks_to_range(struct block_range **head, struct block_range **tail,
14 blk64_t blk_start, blk64_t blk_end);
15 void delete_block_ranges(struct block_range *head);
16 int write_block_ranges(FILE *f, struct block_range *range, char *sep);
17
18 #endif /* !BLOCK_RANGE_H */