1*33b1fccfSAndroid Build Coastguard Worker /* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ 2*33b1fccfSAndroid Build Coastguard Worker #ifndef __EROFS_REBUILD_H 3*33b1fccfSAndroid Build Coastguard Worker #define __EROFS_REBUILD_H 4*33b1fccfSAndroid Build Coastguard Worker 5*33b1fccfSAndroid Build Coastguard Worker #ifdef __cplusplus 6*33b1fccfSAndroid Build Coastguard Worker extern "C" 7*33b1fccfSAndroid Build Coastguard Worker { 8*33b1fccfSAndroid Build Coastguard Worker #endif 9*33b1fccfSAndroid Build Coastguard Worker 10*33b1fccfSAndroid Build Coastguard Worker #include "internal.h" 11*33b1fccfSAndroid Build Coastguard Worker 12*33b1fccfSAndroid Build Coastguard Worker enum erofs_rebuild_datamode { 13*33b1fccfSAndroid Build Coastguard Worker EROFS_REBUILD_DATA_BLOB_INDEX, 14*33b1fccfSAndroid Build Coastguard Worker EROFS_REBUILD_DATA_RESVSP, 15*33b1fccfSAndroid Build Coastguard Worker EROFS_REBUILD_DATA_FULL, 16*33b1fccfSAndroid Build Coastguard Worker }; 17*33b1fccfSAndroid Build Coastguard Worker 18*33b1fccfSAndroid Build Coastguard Worker struct erofs_dentry *erofs_rebuild_get_dentry(struct erofs_inode *pwd, 19*33b1fccfSAndroid Build Coastguard Worker char *path, bool aufs, bool *whout, bool *opq, bool to_head); 20*33b1fccfSAndroid Build Coastguard Worker 21*33b1fccfSAndroid Build Coastguard Worker int erofs_rebuild_load_tree(struct erofs_inode *root, struct erofs_sb_info *sbi, 22*33b1fccfSAndroid Build Coastguard Worker enum erofs_rebuild_datamode mode); 23*33b1fccfSAndroid Build Coastguard Worker 24*33b1fccfSAndroid Build Coastguard Worker #ifdef __cplusplus 25*33b1fccfSAndroid Build Coastguard Worker } 26*33b1fccfSAndroid Build Coastguard Worker #endif 27*33b1fccfSAndroid Build Coastguard Worker 28*33b1fccfSAndroid Build Coastguard Worker #endif 29