[shill] Add support for weird Cellular.SimLockStatus property
SimLockStatus is bizarre in that its type is a dictionary that maps
names to values of different types. It's { string:string,
string:uint32 }, which doesn't fit nicely into dbus-c++, because you
can't represent it trivially with an STL container -- and therefore I
have to do something special to convert it.
BUG=chromium-os:17281
TEST=unit tests
STATUS=Verified
Change-Id: I9c4e43f75c666570caae66e04293bce6207a1b99
Reviewed-on: http://gerrit.chromium.org/gerrit/3619
Reviewed-by: Chris Masone <cmasone@chromium.org>
Tested-by: Chris Masone <cmasone@chromium.org>
diff --git a/device.cc b/device.cc
index 1f196ce..1e9127a 100644
--- a/device.cc
+++ b/device.cc
@@ -146,16 +146,16 @@
}
void Device::HelpRegisterDerivedString(const string &name,
- string(Device::*get)(void),
- bool(Device::*set)(const string&)) {
+ string(Device::*get)(void),
+ bool(Device::*set)(const string&)) {
store_.RegisterDerivedString(
name,
StringAccessor(new CustomAccessor<Device, string>(this, get, set)));
}
void Device::HelpRegisterDerivedStrings(const string &name,
- Strings(Device::*get)(void),
- bool(Device::*set)(const Strings&)) {
+ Strings(Device::*get)(void),
+ bool(Device::*set)(const Strings&)) {
store_.RegisterDerivedStrings(
name,
StringsAccessor(new CustomAccessor<Device, Strings>(this, get, set)));