Prune unused nodes from trie

This commit is contained in:
topjohnwu
2021-10-09 02:15:03 -07:00
parent 2fef98a5af
commit 7f18616cc0
7 changed files with 54 additions and 15 deletions

View File

@@ -67,7 +67,7 @@ class SystemProperties {
int Get(const char* name, char* value);
int Update(prop_info* pi, const char* value, unsigned int len);
int Add(const char* name, unsigned int namelen, const char* value, unsigned int valuelen);
int Delete(const char *name);
int Delete(const char *name, bool trim_node);
uint32_t Serial(const prop_info* pi);
uint32_t WaitAny(uint32_t old_serial);
bool Wait(const prop_info* pi, uint32_t old_serial, uint32_t* new_serial_ptr,