Vitaly Buka | 8d8d219 | 2015-07-21 22:25:09 -0700 | [diff] [blame] | 1 | // Copyright 2015 The Chromium OS Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
Vitaly Buka | f9d5029 | 2015-07-27 16:08:51 -0700 | [diff] [blame] | 5 | #ifndef BUFFET_DBUS_CONVERSION_H_ |
| 6 | #define BUFFET_DBUS_CONVERSION_H_ |
Vitaly Buka | 8d8d219 | 2015-07-21 22:25:09 -0700 | [diff] [blame] | 7 | |
| 8 | #include <base/values.h> |
| 9 | #include <chromeos/any.h> |
| 10 | #include <chromeos/errors/error.h> |
| 11 | #include <chromeos/variant_dictionary.h> |
| 12 | |
Vitaly Buka | f9d5029 | 2015-07-27 16:08:51 -0700 | [diff] [blame] | 13 | namespace buffet { |
Vitaly Buka | 8d8d219 | 2015-07-21 22:25:09 -0700 | [diff] [blame] | 14 | |
Vitaly Buka | 8d8d219 | 2015-07-21 22:25:09 -0700 | [diff] [blame] | 15 | // Converts DictionaryValue to D-Bus variant dictionary. |
| 16 | chromeos::VariantDictionary DictionaryToDBusVariantDictionary( |
| 17 | const base::DictionaryValue& object); |
| 18 | |
Vitaly Buka | 7cbaba2 | 2015-07-23 14:24:41 -0700 | [diff] [blame] | 19 | // Converts D-Bus variant dictionary to DictionaryValue. |
| 20 | std::unique_ptr<base::DictionaryValue> DictionaryFromDBusVariantDictionary( |
| 21 | const chromeos::VariantDictionary& object, |
| 22 | chromeos::ErrorPtr* error); |
| 23 | |
Vitaly Buka | f9d5029 | 2015-07-27 16:08:51 -0700 | [diff] [blame] | 24 | } // namespace buffet |
Vitaly Buka | 8d8d219 | 2015-07-21 22:25:09 -0700 | [diff] [blame] | 25 | |
Vitaly Buka | f9d5029 | 2015-07-27 16:08:51 -0700 | [diff] [blame] | 26 | #endif // BUFFET_DBUS_CONVERSION_H_ |