xref: /aosp_15_r20/external/e2fsprogs/contrib/android/basefs_allocator.h (revision 6a54128f25917bfc36a8a6e9d722c04a0b4641b6)
1*6a54128fSAndroid Build Coastguard Worker #ifndef BASE_FS_ALLOCATOR_H
2*6a54128fSAndroid Build Coastguard Worker # define BASE_FS_ALLOCATOR_H
3*6a54128fSAndroid Build Coastguard Worker 
4*6a54128fSAndroid Build Coastguard Worker # include <time.h>
5*6a54128fSAndroid Build Coastguard Worker # include <ext2fs/ext2fs.h>
6*6a54128fSAndroid Build Coastguard Worker 
7*6a54128fSAndroid Build Coastguard Worker errcode_t base_fs_alloc_load(ext2_filsys fs, const char *file,
8*6a54128fSAndroid Build Coastguard Worker 			     const char *mountpoint, const char *src_dir);
9*6a54128fSAndroid Build Coastguard Worker void base_fs_alloc_cleanup(ext2_filsys fs);
10*6a54128fSAndroid Build Coastguard Worker 
11*6a54128fSAndroid Build Coastguard Worker errcode_t base_fs_alloc_set_target(ext2_filsys fs, const char *target_path,
12*6a54128fSAndroid Build Coastguard Worker 	const char *name, ext2_ino_t parent_ino, ext2_ino_t root, mode_t mode);
13*6a54128fSAndroid Build Coastguard Worker errcode_t base_fs_alloc_unset_target(ext2_filsys fs, const char *target_path,
14*6a54128fSAndroid Build Coastguard Worker 	const char *name, ext2_ino_t parent_ino, ext2_ino_t root, mode_t mode);
15*6a54128fSAndroid Build Coastguard Worker 
16*6a54128fSAndroid Build Coastguard Worker #endif /* !BASE_FS_ALLOCATOR_H */
17