Magisk/native/jni/include/resetprop.h

16 lines
587 B
C
Raw Normal View History

2017-04-14 00:06:41 +02:00
/* resetprop.h - API for resetprop
*/
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
2017-06-11 14:22:10 +02:00
int prop_exist(const char *name);
2019-01-20 05:59:37 +01:00
int setprop(const char *name, const char *value, bool trigger = true);
std::string getprop(const char *name, bool persist = false);
2018-11-04 09:38:06 +01:00
void getprop(void (*callback)(const char *, const char *, void *), void *cookie, bool persist = false);
int deleteprop(const char *name, bool persist = false);
2019-01-20 21:20:34 +01:00
int parse_prop_file(const char *filename, const std::function<bool (const char *, const char *)> &cb);
2019-01-20 05:59:37 +01:00
int load_prop_file(const char *filename, bool trigger = true);