summaryrefslogtreecommitdiff
path: root/key_value_store.h
diff options
context:
space:
mode:
authorPaul Stewart <pstew@chromium.org>2012-08-02 20:12:09 -0700
committerGerrit <chrome-bot@google.com>2012-08-08 16:49:55 -0700
commitdef189ec3772bdc440b1c45c2b673122d3e2789e (patch)
treed87e5cc3d11b02797bf1f26e46881ae359da6f0e /key_value_store.h
parent5781aa4dce2b9e9f68bf4fd4183a0a61a21b366f (diff)
downloadshill-def189ec3772bdc440b1c45c2b673122d3e2789e.tar.gz
shill: Static IP: Save DHCP-supplied IP parameters
Before Static IP parameters are applied to an IPConfig, save all DHCP-supplied parameters to corresponding "SavedIP.*" values in the service. This way the UI can display: * The current IP address confgured on the interface by showing the IPConfig value. * The current user-supplied static IP parameter by showing the "StaticIP.*" parameter. * The DHCP-supplied IP parameter by first checking for a "SavedIP.*" parameter, failing that, using the IPConfig parameter. BUG=chromium-os:33223 TEST=New unit test + manual (set StaticIP.Address parameter, reconnect, and confirm that both SavedIP.Address and StaticIP.Address parameters are set on the service) Change-Id: I6410b003bbdc63097a193cfb09881c862dcef5bd Reviewed-on: https://gerrit.chromium.org/gerrit/29130 Commit-Ready: Paul Stewart <pstew@chromium.org> Reviewed-by: Paul Stewart <pstew@chromium.org> Tested-by: Paul Stewart <pstew@chromium.org>
Diffstat (limited to 'key_value_store.h')
-rw-r--r--key_value_store.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/key_value_store.h b/key_value_store.h
index d288c393..bd66ecb1 100644
--- a/key_value_store.h
+++ b/key_value_store.h
@@ -29,6 +29,8 @@ class KeyValueStore {
public:
KeyValueStore();
+ void Clear();
+
bool ContainsBool(const std::string &name) const;
bool ContainsInt(const std::string &name) const;
bool ContainsString(const std::string &name) const;