blob: 20c3f587136e4d083b7bfd6ed9068087ac070f47 [file] [log] [blame]
// Copyright 2015 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef BUFFET_DBUS_CONVERSION_H_
#define BUFFET_DBUS_CONVERSION_H_
#include <base/values.h>
#include <chromeos/any.h>
#include <chromeos/errors/error.h>
#include <chromeos/variant_dictionary.h>
namespace buffet {
// Converts DictionaryValue to D-Bus variant dictionary.
chromeos::VariantDictionary DictionaryToDBusVariantDictionary(
const base::DictionaryValue& object);
// Converts D-Bus variant dictionary to DictionaryValue.
std::unique_ptr<base::DictionaryValue> DictionaryFromDBusVariantDictionary(
const chromeos::VariantDictionary& object,
chromeos::ErrorPtr* error);
} // namespace buffet
#endif // BUFFET_DBUS_CONVERSION_H_