mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-25 22:17:37 +00:00
16 lines
587 B
C++
16 lines
587 B
C++
/* resetprop.h - API for resetprop
|
|
*/
|
|
|
|
#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 deleteprop(const char *name, bool persist = false);
|
|
int parse_prop_file(const char *filename, const std::function<bool (const char *, const char *)> &cb);
|
|
int load_prop_file(const char *filename, bool trigger = true);
|