mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-06-12 21:27:41 +02:00
Modernize resetprop with fancy C++
This commit is contained in:
@ -3,9 +3,10 @@
|
||||
#include <string>
|
||||
#include <functional>
|
||||
|
||||
int prop_exist(const char *name);
|
||||
bool prop_exist(const char *name);
|
||||
int setprop(const char *name, const char *value, bool trigger = true);
|
||||
std::string getprop(const char *name, bool persist = false);
|
||||
void getprop(void (*callback)(const char *, const char *, void *), void *cookie, bool persist = false);
|
||||
void getprops(void (*callback)(const char *, const char *, void *),
|
||||
void *cookie = nullptr, bool persist = false);
|
||||
int delprop(const char *name, bool persist = false);
|
||||
void load_prop_file(const char *filename, bool trigger = true);
|
||||
|
Reference in New Issue
Block a user