Make parse prop file a util function

This commit is contained in:
topjohnwu
2019-03-05 20:27:09 -05:00
parent b278d07b05
commit 04ef1e6405
8 changed files with 35 additions and 59 deletions

View File

@@ -11,5 +11,4 @@ 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);
void load_prop_file(const char *filename, bool trigger = true);