commit | 68e9b6bc947eaca4135085615860ba90a8656ca4 | [log] [tgz] |
---|---|---|
author | Greg Hackmann <ghackmann@google.com> | Wed Feb 13 10:49:50 2013 -0800 |
committer | Colin Cross <ccross@android.com> | Tue Jun 18 19:26:28 2013 -0700 |
tree | f9ec16b11301b6103847e01211e44c3866bbba9b | |
parent | 6967935eb30875ca9caf4717684141c92a0b6d4b [diff] |
toolbox: reimplement watchprops using __system_property_foreach() Internally, replace the watchlist array with a hashmap since the array assumes properties are enumerated in a consistent order and foreach() probably won't. (find_nth() never guaranteed this either but it usually worked in practice.) Signed-off-by: Greg Hackmann <ghackmann@google.com> (cherry picked from commit 389e358017ad15485f2bd9120feebfffa489131b) Change-Id: I1db3137b130474f4bb205f01f0bdcf37cf974764