Commit 232ae2a1 authored by topjohnwu's avatar topjohnwu

Update resetprop to partially use system impl

parent aa8b2310
......@@ -3,7 +3,6 @@
#include <string>
#include <functional>
bool 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 getprops(void (*callback)(const char *, const char *, void *),
......
......@@ -88,6 +88,8 @@ const pb_field_t PersistentProperties_fields[2] = {
* End of auto generated code
* ***************************/
bool use_pb = false;
#ifdef APPLET_STUB_MAIN
struct {
void push_back(...){};
......
This diff is collapsed.
......@@ -109,7 +109,7 @@ int __system_property_add(const char* __name, unsigned int __name_length, const
**
** Returns 0 on success, -1 if the property area is full.
*/
int __system_property_del(const char *__name);
int __system_property_delete(const char *__name);
/* Update the value of a system property returned by
** __system_property_find. Can only be done by a single process
......
......@@ -100,7 +100,7 @@ int __system_property_add(const char* name, unsigned int namelen, const char* va
}
__BIONIC_WEAK_FOR_NATIVE_BRIDGE
int __system_property_del(const char* name) {
int __system_property_delete(const char* name) {
return system_properties.Delete(name);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment