dec++-ify jni part

- Refactoring to c

Co-authored-by: lamadaemon <i@lama.icu>
Co-authored-by: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com>
Signed-off-by: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com>
This commit is contained in:
ShirkNeko
2025-06-15 17:17:19 +08:00
parent 67a05e8813
commit 730d58f18b
8 changed files with 360 additions and 360 deletions

View File

@@ -5,6 +5,7 @@
#ifndef KERNELSU_KSU_H
#define KERNELSU_KSU_H
#include "prelude.h"
#include <linux/capability.h>
bool become_manager(const char *);
@@ -25,8 +26,6 @@ bool is_lkm_mode();
#define KSU_MAX_GROUPS 32
#define KSU_SELINUX_DOMAIN 64
using p_key_t = char[KSU_MAX_PACKAGE_NAME];
struct root_profile {
int32_t uid;
int32_t gid;
@@ -75,9 +74,9 @@ struct app_profile {
};
};
bool set_app_profile(const app_profile *profile);
bool set_app_profile(const struct app_profile* profile);
bool get_app_profile(p_key_t key, app_profile *profile);
bool get_app_profile(char* key, struct app_profile* profile);
bool set_su_enabled(bool enabled);
@@ -85,6 +84,6 @@ bool is_su_enabled();
bool is_KPM_enable();
const char* get_hook_type();
bool get_hook_type(char* hook_type, size_t size);
#endif //KERNELSU_KSU_H