diff options
author | Darin Petkov <petkov@chromium.org> | 2011-06-30 12:54:12 -0700 |
---|---|---|
committer | Darin Petkov <petkov@chromium.org> | 2011-06-30 15:06:35 -0700 |
commit | b2841fda690034b6952fe56ef1931200bb3b8e12 (patch) | |
tree | 591cf61fef3d2a36e3d68c057c96d81608cb0a1f /store_interface.h | |
parent | 52cd19bfd52226611d924930f1178307f79d5fdc (diff) | |
download | shill-b2841fda690034b6952fe56ef1931200bb3b8e12.tar.gz |
shill: Add persistent store support for getting/setting string lists.
BUG=chromium-os:17144
TEST=unit tests
Change-Id: Ib85935f3e53b606757aa50786d94975b1fe5109c
Reviewed-on: http://gerrit.chromium.org/gerrit/3486
Tested-by: Darin Petkov <petkov@chromium.org>
Reviewed-by: Chris Masone <cmasone@chromium.org>
Diffstat (limited to 'store_interface.h')
-rw-r--r-- | store_interface.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/store_interface.h b/store_interface.h index 46a71cc1..b03d3c0b 100644 --- a/store_interface.h +++ b/store_interface.h @@ -7,6 +7,7 @@ #include <set> #include <string> +#include <vector> namespace shill { @@ -78,6 +79,19 @@ class StoreInterface { const std::string &key, int value) = 0; + // Gets a string list |value| associated with |group|:|key|. Returns true on + // success and false on failure (including when |group|:|key| is not present + // in the store). + virtual bool GetStringList(const std::string &group, + const std::string &key, + std::vector<std::string> *value) = 0; + + // Associates |group|:|key| with a string list |value|. Returns true on + // success, false otherwise. + virtual bool SetStringList(const std::string &group, + const std::string &key, + const std::vector<std::string> &value) = 0; + // Gets and decrypts string |value| associated with |group|:|key|. Returns // true on success and false on failure (including when |group|:|key| is not // present in the store). |