Add resetprop magic

This commit is contained in:
topjohnwu
2018-09-06 02:54:51 -04:00
parent 7a0025673c
commit c0f45b6b1e
7 changed files with 76 additions and 10 deletions

View File

@@ -105,6 +105,12 @@ uint32_t __system_property_area_serial(void);
*/
int __system_property_add(const char* __name, unsigned int __name_length, const char* __value, unsigned int __value_length);
/* Delete a system property. Added in resetprop
**
** Returns 0 on success, -1 if the property area is full.
*/
int __system_property_del(const char *__name);
/* Update the value of a system property returned by
** __system_property_find. Can only be done by a single process
** that has write access to the property area, and that process

View File

@@ -17,6 +17,5 @@
#define __system_property_serial __system_property_serial2
#define __system_properties_init __system_properties_init2
#define __system_property_wait_any __system_property_wait_any2
#define __system_property_del(x) -1 /* Temp disable */
#endif //REDEFS_H