From d0e3b2672d2f1b86cf778558f5a743045b5dd660 Mon Sep 17 00:00:00 2001 From: Soo-Hwan Na <69458352+roynatech2544@users.noreply.github.com> Date: Tue, 21 Mar 2023 10:45:12 +0900 Subject: [PATCH] kernel: Add input hook to ksu_hooks.h (#315) Then we don't have to do extern input_hook(...) ; input_hook(..) and just include header file and use input_hook(...) only Like https://github.com/hac4us06/kernel_xiaomi_chime/commit/f39f4823a196c1cb66df10e96c93dfb97872a4c4 Not https://github.com/hac4us06/kernel_xiaomi_chime/commit/0c491aca8a7c41c5d0b11616dccec6ab54e41082 --- kernel/include/ksu_hook.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kernel/include/ksu_hook.h b/kernel/include/ksu_hook.h index a3520c6b..d4a2cddb 100644 --- a/kernel/include/ksu_hook.h +++ b/kernel/include/ksu_hook.h @@ -21,4 +21,8 @@ int ksu_handle_vfs_read(struct file **file_ptr, char __user **buf_ptr, int ksu_handle_execveat(int *fd, struct filename **filename_ptr, void *argv, void *envp, int *flags); -#endif \ No newline at end of file +// For volume button +int ksu_handle_input_handle_event(unsigned int *type, unsigned int *code, + int *value); + +#endif