mukesh agrawal | 4d0401c | 2012-01-06 16:05:31 -0800 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium OS Authors. All rights reserved. |
Chris Masone | b925cc8 | 2011-06-22 15:39:57 -0700 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include "shill/property_store.h" |
| 6 | |
| 7 | #include <map> |
| 8 | #include <string> |
| 9 | #include <vector> |
| 10 | |
| 11 | #include <base/basictypes.h> |
| 12 | #include <base/logging.h> |
Chris Masone | 27c4aa5 | 2011-07-02 13:10:14 -0700 | [diff] [blame] | 13 | #include <base/stl_util-inl.h> |
Chris Masone | b925cc8 | 2011-06-22 15:39:57 -0700 | [diff] [blame] | 14 | |
| 15 | #include "shill/error.h" |
| 16 | #include "shill/property_accessor.h" |
| 17 | |
| 18 | using std::map; |
| 19 | using std::string; |
| 20 | using std::vector; |
| 21 | |
| 22 | namespace shill { |
| 23 | |
| 24 | PropertyStore::PropertyStore() {} |
| 25 | |
| 26 | PropertyStore::~PropertyStore() {} |
| 27 | |
mukesh agrawal | de29fa8 | 2011-09-16 16:16:36 -0700 | [diff] [blame] | 28 | bool PropertyStore::Contains(const std::string &prop) const { |
Chris Masone | 889666b | 2011-07-03 12:58:50 -0700 | [diff] [blame] | 29 | return (bool_properties_.find(prop) != bool_properties_.end() || |
| 30 | int16_properties_.find(prop) != int16_properties_.end() || |
| 31 | int32_properties_.find(prop) != int32_properties_.end() || |
| 32 | string_properties_.find(prop) != string_properties_.end() || |
| 33 | stringmap_properties_.find(prop) != stringmap_properties_.end() || |
| 34 | stringmaps_properties_.find(prop) != stringmaps_properties_.end() || |
| 35 | strintpair_properties_.find(prop) != strintpair_properties_.end() || |
| 36 | strings_properties_.find(prop) != strings_properties_.end() || |
| 37 | uint8_properties_.find(prop) != uint8_properties_.end() || |
| 38 | uint16_properties_.find(prop) != uint16_properties_.end() || |
| 39 | uint32_properties_.find(prop) != uint32_properties_.end()); |
Chris Masone | b925cc8 | 2011-06-22 15:39:57 -0700 | [diff] [blame] | 40 | } |
| 41 | |
| 42 | bool PropertyStore::SetBoolProperty(const std::string& name, |
| 43 | bool value, |
| 44 | Error *error) { |
mukesh agrawal | ffa3d04 | 2011-10-06 15:26:10 -0700 | [diff] [blame] | 45 | return SetProperty(name, value, error, bool_properties_, "a bool"); |
Chris Masone | b925cc8 | 2011-06-22 15:39:57 -0700 | [diff] [blame] | 46 | } |
| 47 | |
| 48 | bool PropertyStore::SetInt16Property(const std::string& name, |
| 49 | int16 value, |
| 50 | Error *error) { |
mukesh agrawal | ffa3d04 | 2011-10-06 15:26:10 -0700 | [diff] [blame] | 51 | return SetProperty(name, value, error, int16_properties_, "an int16"); |
Chris Masone | b925cc8 | 2011-06-22 15:39:57 -0700 | [diff] [blame] | 52 | } |
| 53 | |
| 54 | bool PropertyStore::SetInt32Property(const std::string& name, |
| 55 | int32 value, |
| 56 | Error *error) { |
mukesh agrawal | ffa3d04 | 2011-10-06 15:26:10 -0700 | [diff] [blame] | 57 | return SetProperty(name, value, error, int32_properties_, "an int32."); |
Chris Masone | b925cc8 | 2011-06-22 15:39:57 -0700 | [diff] [blame] | 58 | } |
| 59 | |
| 60 | bool PropertyStore::SetStringProperty(const std::string& name, |
| 61 | const std::string& value, |
| 62 | Error *error) { |
mukesh agrawal | ffa3d04 | 2011-10-06 15:26:10 -0700 | [diff] [blame] | 63 | return SetProperty(name, value, error, string_properties_, "a string"); |
Chris Masone | b925cc8 | 2011-06-22 15:39:57 -0700 | [diff] [blame] | 64 | } |
| 65 | |
| 66 | bool PropertyStore::SetStringmapProperty( |
| 67 | const std::string& name, |
| 68 | const std::map<std::string, std::string>& values, |
| 69 | Error *error) { |
mukesh agrawal | ffa3d04 | 2011-10-06 15:26:10 -0700 | [diff] [blame] | 70 | return SetProperty(name, values, error, stringmap_properties_, |
| 71 | "a string map"); |
Chris Masone | b925cc8 | 2011-06-22 15:39:57 -0700 | [diff] [blame] | 72 | } |
| 73 | |
| 74 | bool PropertyStore::SetStringsProperty(const std::string& name, |
| 75 | const std::vector<std::string>& values, |
| 76 | Error *error) { |
mukesh agrawal | ffa3d04 | 2011-10-06 15:26:10 -0700 | [diff] [blame] | 77 | return SetProperty(name, values, error, strings_properties_, "a string list"); |
Chris Masone | b925cc8 | 2011-06-22 15:39:57 -0700 | [diff] [blame] | 78 | } |
| 79 | |
| 80 | bool PropertyStore::SetUint8Property(const std::string& name, |
| 81 | uint8 value, |
| 82 | Error *error) { |
mukesh agrawal | ffa3d04 | 2011-10-06 15:26:10 -0700 | [diff] [blame] | 83 | return SetProperty(name, value, error, uint8_properties_, "a uint8"); |
Chris Masone | b925cc8 | 2011-06-22 15:39:57 -0700 | [diff] [blame] | 84 | } |
| 85 | |
| 86 | bool PropertyStore::SetUint16Property(const std::string& name, |
| 87 | uint16 value, |
| 88 | Error *error) { |
mukesh agrawal | ffa3d04 | 2011-10-06 15:26:10 -0700 | [diff] [blame] | 89 | return SetProperty(name, value, error, uint16_properties_, "a uint16"); |
Chris Masone | b925cc8 | 2011-06-22 15:39:57 -0700 | [diff] [blame] | 90 | } |
| 91 | |
| 92 | bool PropertyStore::SetUint32Property(const std::string& name, |
| 93 | uint32 value, |
| 94 | Error *error) { |
mukesh agrawal | ffa3d04 | 2011-10-06 15:26:10 -0700 | [diff] [blame] | 95 | return SetProperty(name, value, error, uint32_properties_, "a uint32"); |
Chris Masone | b925cc8 | 2011-06-22 15:39:57 -0700 | [diff] [blame] | 96 | } |
| 97 | |
Gaurav Shah | 1b7a616 | 2011-11-09 11:41:01 -0800 | [diff] [blame] | 98 | ReadablePropertyConstIterator<bool> PropertyStore::GetBoolPropertiesIter() |
mukesh agrawal | de29fa8 | 2011-09-16 16:16:36 -0700 | [diff] [blame] | 99 | const { |
Gaurav Shah | 1b7a616 | 2011-11-09 11:41:01 -0800 | [diff] [blame] | 100 | return ReadablePropertyConstIterator<bool>(bool_properties_); |
Chris Masone | a8a2c25 | 2011-06-27 22:16:30 -0700 | [diff] [blame] | 101 | } |
| 102 | |
Gaurav Shah | 1b7a616 | 2011-11-09 11:41:01 -0800 | [diff] [blame] | 103 | ReadablePropertyConstIterator<int16> PropertyStore::GetInt16PropertiesIter() |
mukesh agrawal | de29fa8 | 2011-09-16 16:16:36 -0700 | [diff] [blame] | 104 | const { |
Gaurav Shah | 1b7a616 | 2011-11-09 11:41:01 -0800 | [diff] [blame] | 105 | return ReadablePropertyConstIterator<int16>(int16_properties_); |
Chris Masone | a8a2c25 | 2011-06-27 22:16:30 -0700 | [diff] [blame] | 106 | } |
| 107 | |
Gaurav Shah | 1b7a616 | 2011-11-09 11:41:01 -0800 | [diff] [blame] | 108 | ReadablePropertyConstIterator<int32> PropertyStore::GetInt32PropertiesIter() |
mukesh agrawal | de29fa8 | 2011-09-16 16:16:36 -0700 | [diff] [blame] | 109 | const { |
Gaurav Shah | 1b7a616 | 2011-11-09 11:41:01 -0800 | [diff] [blame] | 110 | return ReadablePropertyConstIterator<int32>(int32_properties_); |
Chris Masone | 889666b | 2011-07-03 12:58:50 -0700 | [diff] [blame] | 111 | } |
| 112 | |
Gaurav Shah | 1b7a616 | 2011-11-09 11:41:01 -0800 | [diff] [blame] | 113 | ReadablePropertyConstIterator<std::string> |
| 114 | PropertyStore::GetStringPropertiesIter() const { |
| 115 | return ReadablePropertyConstIterator<std::string>(string_properties_); |
Chris Masone | a8a2c25 | 2011-06-27 22:16:30 -0700 | [diff] [blame] | 116 | } |
| 117 | |
Gaurav Shah | 1b7a616 | 2011-11-09 11:41:01 -0800 | [diff] [blame] | 118 | ReadablePropertyConstIterator<Stringmap> |
| 119 | PropertyStore::GetStringmapPropertiesIter() const { |
| 120 | return ReadablePropertyConstIterator<Stringmap>(stringmap_properties_); |
Chris Masone | a8a2c25 | 2011-06-27 22:16:30 -0700 | [diff] [blame] | 121 | } |
| 122 | |
Gaurav Shah | 1b7a616 | 2011-11-09 11:41:01 -0800 | [diff] [blame] | 123 | ReadablePropertyConstIterator<Stringmaps> |
| 124 | PropertyStore::GetStringmapsPropertiesIter() |
| 125 | const { |
| 126 | return ReadablePropertyConstIterator<Stringmaps>(stringmaps_properties_); |
| 127 | } |
| 128 | |
| 129 | ReadablePropertyConstIterator<Strings> PropertyStore::GetStringsPropertiesIter() |
| 130 | const { |
| 131 | return ReadablePropertyConstIterator<Strings>(strings_properties_); |
| 132 | } |
| 133 | |
| 134 | ReadablePropertyConstIterator<StrIntPair> |
| 135 | PropertyStore::GetStrIntPairPropertiesIter() const { |
| 136 | return ReadablePropertyConstIterator<StrIntPair>(strintpair_properties_); |
| 137 | } |
| 138 | |
| 139 | ReadablePropertyConstIterator<uint8> PropertyStore::GetUint8PropertiesIter() |
| 140 | const { |
| 141 | return ReadablePropertyConstIterator<uint8>(uint8_properties_); |
| 142 | } |
| 143 | |
| 144 | ReadablePropertyConstIterator<uint16> PropertyStore::GetUint16PropertiesIter() |
| 145 | const { |
| 146 | return ReadablePropertyConstIterator<uint16>(uint16_properties_); |
| 147 | } |
| 148 | |
| 149 | ReadablePropertyConstIterator<uint32> PropertyStore::GetUint32PropertiesIter() |
| 150 | const { |
| 151 | return ReadablePropertyConstIterator<uint32>(uint32_properties_); |
Chris Masone | a8a2c25 | 2011-06-27 22:16:30 -0700 | [diff] [blame] | 152 | } |
| 153 | |
Chris Masone | b925cc8 | 2011-06-22 15:39:57 -0700 | [diff] [blame] | 154 | void PropertyStore::RegisterBool(const string &name, bool *prop) { |
| 155 | bool_properties_[name] = BoolAccessor(new PropertyAccessor<bool>(prop)); |
| 156 | } |
| 157 | |
| 158 | void PropertyStore::RegisterConstBool(const string &name, const bool *prop) { |
| 159 | bool_properties_[name] = BoolAccessor(new ConstPropertyAccessor<bool>(prop)); |
| 160 | } |
| 161 | |
Gaurav Shah | 1b7a616 | 2011-11-09 11:41:01 -0800 | [diff] [blame] | 162 | void PropertyStore::RegisterWriteOnlyBool(const string &name, bool *prop) { |
| 163 | bool_properties_[name] = BoolAccessor( |
| 164 | new WriteOnlyPropertyAccessor<bool>(prop)); |
| 165 | } |
| 166 | |
Chris Masone | b925cc8 | 2011-06-22 15:39:57 -0700 | [diff] [blame] | 167 | void PropertyStore::RegisterInt16(const string &name, int16 *prop) { |
| 168 | int16_properties_[name] = Int16Accessor(new PropertyAccessor<int16>(prop)); |
| 169 | } |
| 170 | |
| 171 | void PropertyStore::RegisterConstInt16(const string &name, const int16 *prop) { |
| 172 | int16_properties_[name] = |
| 173 | Int16Accessor(new ConstPropertyAccessor<int16>(prop)); |
| 174 | } |
| 175 | |
Gaurav Shah | 1b7a616 | 2011-11-09 11:41:01 -0800 | [diff] [blame] | 176 | void PropertyStore::RegisterWriteOnlyInt16(const string &name, int16 *prop) { |
| 177 | int16_properties_[name] = |
| 178 | Int16Accessor(new WriteOnlyPropertyAccessor<int16>(prop)); |
| 179 | } |
Chris Masone | b925cc8 | 2011-06-22 15:39:57 -0700 | [diff] [blame] | 180 | void PropertyStore::RegisterInt32(const string &name, int32 *prop) { |
| 181 | int32_properties_[name] = Int32Accessor(new PropertyAccessor<int32>(prop)); |
| 182 | } |
| 183 | |
| 184 | void PropertyStore::RegisterConstInt32(const string &name, const int32 *prop) { |
| 185 | int32_properties_[name] = |
| 186 | Int32Accessor(new ConstPropertyAccessor<int32>(prop)); |
| 187 | } |
| 188 | |
Gaurav Shah | 1b7a616 | 2011-11-09 11:41:01 -0800 | [diff] [blame] | 189 | void PropertyStore::RegisterWriteOnlyInt32(const string &name, int32 *prop) { |
| 190 | int32_properties_[name] = |
| 191 | Int32Accessor(new WriteOnlyPropertyAccessor<int32>(prop)); |
| 192 | } |
| 193 | |
Chris Masone | b925cc8 | 2011-06-22 15:39:57 -0700 | [diff] [blame] | 194 | void PropertyStore::RegisterString(const string &name, string *prop) { |
| 195 | string_properties_[name] = StringAccessor(new PropertyAccessor<string>(prop)); |
| 196 | } |
| 197 | |
| 198 | void PropertyStore::RegisterConstString(const string &name, |
| 199 | const string *prop) { |
| 200 | string_properties_[name] = |
| 201 | StringAccessor(new ConstPropertyAccessor<string>(prop)); |
| 202 | } |
| 203 | |
Gaurav Shah | 1b7a616 | 2011-11-09 11:41:01 -0800 | [diff] [blame] | 204 | void PropertyStore::RegisterWriteOnlyString(const string &name, string *prop) { |
| 205 | string_properties_[name] = |
| 206 | StringAccessor(new WriteOnlyPropertyAccessor<string>(prop)); |
| 207 | } |
| 208 | |
Chris Masone | 43b48a1 | 2011-07-01 13:37:07 -0700 | [diff] [blame] | 209 | void PropertyStore::RegisterStringmap(const string &name, Stringmap *prop) { |
Chris Masone | b925cc8 | 2011-06-22 15:39:57 -0700 | [diff] [blame] | 210 | stringmap_properties_[name] = |
Chris Masone | 43b48a1 | 2011-07-01 13:37:07 -0700 | [diff] [blame] | 211 | StringmapAccessor(new PropertyAccessor<Stringmap>(prop)); |
Chris Masone | b925cc8 | 2011-06-22 15:39:57 -0700 | [diff] [blame] | 212 | } |
| 213 | |
| 214 | void PropertyStore::RegisterConstStringmap(const string &name, |
Chris Masone | 43b48a1 | 2011-07-01 13:37:07 -0700 | [diff] [blame] | 215 | const Stringmap *prop) { |
Chris Masone | b925cc8 | 2011-06-22 15:39:57 -0700 | [diff] [blame] | 216 | stringmap_properties_[name] = |
Chris Masone | 43b48a1 | 2011-07-01 13:37:07 -0700 | [diff] [blame] | 217 | StringmapAccessor(new ConstPropertyAccessor<Stringmap>(prop)); |
| 218 | } |
| 219 | |
Gaurav Shah | 1b7a616 | 2011-11-09 11:41:01 -0800 | [diff] [blame] | 220 | void PropertyStore::RegisterWriteOnlyStringmap(const string &name, |
| 221 | Stringmap *prop) { |
| 222 | stringmap_properties_[name] = |
| 223 | StringmapAccessor(new WriteOnlyPropertyAccessor<Stringmap>(prop)); |
| 224 | } |
| 225 | |
Darin Petkov | c086531 | 2011-09-16 15:31:20 -0700 | [diff] [blame] | 226 | void PropertyStore::RegisterStringmaps(const string &name, Stringmaps *prop) { |
| 227 | stringmaps_properties_[name] = |
| 228 | StringmapsAccessor(new PropertyAccessor<Stringmaps>(prop)); |
| 229 | } |
| 230 | |
| 231 | void PropertyStore::RegisterConstStringmaps(const string &name, |
| 232 | const Stringmaps *prop) { |
| 233 | stringmaps_properties_[name] = |
| 234 | StringmapsAccessor(new ConstPropertyAccessor<Stringmaps>(prop)); |
| 235 | } |
| 236 | |
Gaurav Shah | 1b7a616 | 2011-11-09 11:41:01 -0800 | [diff] [blame] | 237 | void PropertyStore::RegisterWriteOnlyStringmaps(const string &name, |
| 238 | Stringmaps *prop) { |
| 239 | stringmaps_properties_[name] = |
| 240 | StringmapsAccessor(new WriteOnlyPropertyAccessor<Stringmaps>(prop)); |
| 241 | } |
| 242 | |
Chris Masone | 43b48a1 | 2011-07-01 13:37:07 -0700 | [diff] [blame] | 243 | void PropertyStore::RegisterStrings(const string &name, Strings *prop) { |
| 244 | strings_properties_[name] = |
| 245 | StringsAccessor(new PropertyAccessor<Strings>(prop)); |
Chris Masone | b925cc8 | 2011-06-22 15:39:57 -0700 | [diff] [blame] | 246 | } |
| 247 | |
Chris Masone | 889666b | 2011-07-03 12:58:50 -0700 | [diff] [blame] | 248 | void PropertyStore::RegisterConstStrings(const string &name, |
| 249 | const Strings *prop) { |
| 250 | strings_properties_[name] = |
| 251 | StringsAccessor(new ConstPropertyAccessor<Strings>(prop)); |
| 252 | } |
| 253 | |
Gaurav Shah | 1b7a616 | 2011-11-09 11:41:01 -0800 | [diff] [blame] | 254 | void PropertyStore::RegisterWriteOnlyStrings(const string &name, |
| 255 | Strings *prop) { |
| 256 | strings_properties_[name] = |
| 257 | StringsAccessor(new WriteOnlyPropertyAccessor<Strings>(prop)); |
| 258 | } |
| 259 | |
Chris Masone | 889666b | 2011-07-03 12:58:50 -0700 | [diff] [blame] | 260 | void PropertyStore::RegisterUint8(const string &name, uint8 *prop) { |
| 261 | uint8_properties_[name] = Uint8Accessor(new PropertyAccessor<uint8>(prop)); |
| 262 | } |
| 263 | |
Chris Masone | b925cc8 | 2011-06-22 15:39:57 -0700 | [diff] [blame] | 264 | void PropertyStore::RegisterConstUint8(const string &name, const uint8 *prop) { |
| 265 | uint8_properties_[name] = |
| 266 | Uint8Accessor(new ConstPropertyAccessor<uint8>(prop)); |
| 267 | } |
| 268 | |
Gaurav Shah | 1b7a616 | 2011-11-09 11:41:01 -0800 | [diff] [blame] | 269 | void PropertyStore::RegisterWriteOnlyUint8(const string &name, uint8 *prop) { |
| 270 | uint8_properties_[name] = |
| 271 | Uint8Accessor(new WriteOnlyPropertyAccessor<uint8>(prop)); |
| 272 | } |
| 273 | |
Chris Masone | b925cc8 | 2011-06-22 15:39:57 -0700 | [diff] [blame] | 274 | void PropertyStore::RegisterUint16(const std::string &name, uint16 *prop) { |
| 275 | uint16_properties_[name] = Uint16Accessor(new PropertyAccessor<uint16>(prop)); |
| 276 | } |
| 277 | |
| 278 | void PropertyStore::RegisterConstUint16(const string &name, |
| 279 | const uint16 *prop) { |
| 280 | uint16_properties_[name] = |
| 281 | Uint16Accessor(new ConstPropertyAccessor<uint16>(prop)); |
| 282 | } |
| 283 | |
Gaurav Shah | 1b7a616 | 2011-11-09 11:41:01 -0800 | [diff] [blame] | 284 | void PropertyStore::RegisterWriteOnlyUint16(const string &name, uint16 *prop) { |
| 285 | uint16_properties_[name] = |
| 286 | Uint16Accessor(new WriteOnlyPropertyAccessor<uint16>(prop)); |
| 287 | } |
| 288 | |
Chris Masone | 27c4aa5 | 2011-07-02 13:10:14 -0700 | [diff] [blame] | 289 | void PropertyStore::RegisterDerivedBool(const std::string &name, |
| 290 | const BoolAccessor &accessor) { |
| 291 | bool_properties_[name] = accessor; |
| 292 | } |
| 293 | |
mukesh agrawal | 4d0401c | 2012-01-06 16:05:31 -0800 | [diff] [blame] | 294 | void PropertyStore::RegisterDerivedInt32(const std::string &name, |
| 295 | const Int32Accessor &accessor) { |
| 296 | int32_properties_[name] = accessor; |
| 297 | } |
| 298 | |
Chris Masone | 27c4aa5 | 2011-07-02 13:10:14 -0700 | [diff] [blame] | 299 | void PropertyStore::RegisterDerivedString(const std::string &name, |
| 300 | const StringAccessor &accessor) { |
| 301 | string_properties_[name] = accessor; |
| 302 | } |
| 303 | |
| 304 | void PropertyStore::RegisterDerivedStrings(const std::string &name, |
| 305 | const StringsAccessor &accessor) { |
| 306 | strings_properties_[name] = accessor; |
Chris Masone | b925cc8 | 2011-06-22 15:39:57 -0700 | [diff] [blame] | 307 | } |
| 308 | |
Chris Masone | 889666b | 2011-07-03 12:58:50 -0700 | [diff] [blame] | 309 | void PropertyStore::RegisterDerivedStringmaps(const std::string &name, |
| 310 | const StringmapsAccessor &acc) { |
| 311 | stringmaps_properties_[name] = acc; |
| 312 | } |
| 313 | |
| 314 | void PropertyStore::RegisterDerivedStrIntPair(const std::string &name, |
| 315 | const StrIntPairAccessor &acc) { |
| 316 | strintpair_properties_[name] = acc; |
| 317 | } |
| 318 | |
Paul Stewart | be5f5b3 | 2011-12-07 17:11:11 -0800 | [diff] [blame] | 319 | void PropertyStore::RegisterDerivedUint16(const std::string &name, |
| 320 | const Uint16Accessor &acc) { |
| 321 | uint16_properties_[name] = acc; |
| 322 | } |
| 323 | |
mukesh agrawal | ffa3d04 | 2011-10-06 15:26:10 -0700 | [diff] [blame] | 324 | // private |
| 325 | template <class V> |
| 326 | bool PropertyStore::SetProperty( |
| 327 | const string &name, |
| 328 | const V &value, |
| 329 | Error *error, |
| 330 | map< string, std::tr1::shared_ptr< AccessorInterface<V> > >&collection, |
| 331 | const string &value_type_english) { |
| 332 | VLOG(2) << "Setting " << name << " as " << value_type_english << "."; |
| 333 | if (ContainsKey(collection, name)) { |
| 334 | collection[name]->Set(value, error); |
| 335 | } else { |
| 336 | if (Contains(name)) { |
| 337 | error->Populate( |
| 338 | Error::kInvalidArguments, |
| 339 | "Property " + name + " is not " + value_type_english + "."); |
| 340 | } else { |
| 341 | error->Populate( |
| 342 | Error::kInvalidProperty, "Property " + name + " does not exist."); |
| 343 | } |
| 344 | } |
| 345 | return error->IsSuccess(); |
| 346 | }; |
| 347 | |
Chris Masone | b925cc8 | 2011-06-22 15:39:57 -0700 | [diff] [blame] | 348 | } // namespace shill |