Magisk/native/jni/include/resetprop.hpp
2020-03-09 02:05:24 -07:00

12 lines
442 B
C++

#pragma once
#include <string>
#include <functional>
int 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);
int delprop(const char *name, bool persist = false);
void load_prop_file(const char *filename, bool trigger = true);