Magisk/native/jni/include/resetprop.hpp

12 lines
429 B
C++
Raw Normal View History

2018-11-04 09:38:06 +01:00
#pragma once
2018-11-01 18:23:12 +01:00
2019-01-20 05:59:37 +01:00
#include <string>
2019-01-20 21:20:34 +01:00
#include <functional>
2018-11-07 08:10:38 +01:00
int setprop(const char *name, const char *value, bool prop_svc = true);
2019-01-20 05:59:37 +01:00
std::string getprop(const char *name, bool persist = false);
2020-05-07 15:08:30 +02:00
void getprops(void (*callback)(const char *, const char *, void *),
void *cookie = nullptr, bool persist = false);
2020-03-09 10:05:24 +01:00
int delprop(const char *name, bool persist = false);
2020-11-04 10:56:49 +01:00
void load_prop_file(const char *filename, bool prop_svc = true);