2017-04-14 06:06:41 +08:00
|
|
|
/* resetprop.h - API for resetprop
|
|
|
|
*/
|
|
|
|
|
2018-11-04 03:38:06 -05:00
|
|
|
#pragma once
|
2018-11-01 13:23:12 -04:00
|
|
|
|
2017-06-11 20:22:10 +08:00
|
|
|
int prop_exist(const char *name);
|
2018-11-04 03:38:06 -05:00
|
|
|
int setprop(const char *name, const char *value, const bool trigger = true);
|
|
|
|
char *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 load_prop_file(const char *filename, const bool trigger = true);
|
2018-11-01 13:23:12 -04:00
|
|
|
|