Magisk/native/jni/include/resetprop.h

15 lines
478 B
C
Raw Normal View History

2017-04-13 22:06:41 +00:00
/* resetprop.h - API for resetprop
*/
2018-11-04 08:38:06 +00:00
#pragma once
2018-11-01 17:23:12 +00:00
2018-11-07 07:10:38 +00:00
#include "CharArray.h"
2017-06-11 12:22:10 +00:00
int prop_exist(const char *name);
2018-11-04 08:38:06 +00:00
int setprop(const char *name, const char *value, const bool trigger = true);
2018-11-07 07:10:38 +00:00
CharArray getprop(const char *name, bool persist = false);
2018-11-04 08:38:06 +00:00
void getprop(void (*callback)(const char *, const char *, void *), void *cookie, bool persist = false);
int deleteprop(const char *name, bool persist = false);
int load_prop_file(const char *filename, const bool trigger = true);
2018-11-01 17:23:12 +00:00