Minor cleanup

This commit is contained in:
topjohnwu
2023-12-03 19:32:58 +08:00
parent 4e99997013
commit 1dcf325547
6 changed files with 38 additions and 44 deletions
+26
View File
@@ -0,0 +1,26 @@
#pragma once
namespace rust {
struct MagiskD;
}
struct MagiskD {
// Make sure only references can exist
~MagiskD() = delete;
// Binding to Rust
static const MagiskD &get();
// C++ implementation
void reboot() const;
bool post_fs_data() const;
void late_start() const;
void boot_complete() const;
const rust::MagiskD *operator->() const;
private:
const rust::MagiskD &as_rust() const;
};
const char *get_magisk_tmp();