blob: 9a2851c8c1f794e0f5a1aadb43c709d0b3251b96 [file] [log] [blame]
// Copyright 2014 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_UTILS_H_
#define BUFFET_DBUS_UTILS_H_
#include <base/memory/scoped_ptr.h>
#include <chromeos/error.h>
#include <dbus/exported_object.h>
#include <dbus/message.h>
namespace buffet {
namespace dbus_utils {
scoped_ptr<dbus::Response> GetDBusError(dbus::MethodCall* method_call,
const chromeos::Error* error);
dbus::ExportedObject::MethodCallCallback GetExportableDBusMethod(
base::Callback<scoped_ptr<dbus::Response>(dbus::MethodCall*)> handler);
} // namespace dbus_utils
} // namespace buffet
#endif // BUFFET_DBUS_UTILS_H_