* Based on unmerged pull-request https://github.com/tiann/KernelSU/pull/ 2285 Co-authored-by: Ylarod <me@ylarod.cn> Signed-off-by: Faris <rissu.ntk@gmail.com>
16 lines
323 B
C
16 lines
323 B
C
#ifndef __KSU_H_FILE_WRAPPER
|
|
#define __KSU_H_FILE_WRAPPER
|
|
|
|
#include <linux/file.h>
|
|
#include <linux/fs.h>
|
|
|
|
struct ksu_file_wrapper {
|
|
struct file *orig;
|
|
struct file_operations ops;
|
|
};
|
|
|
|
struct ksu_file_wrapper *mksu_create_file_wrapper(struct file *fp);
|
|
void mksu_delete_file_wrapper(struct ksu_file_wrapper *data);
|
|
|
|
#endif
|