blob: ed4a76c615a684e3b8fb771cbf870ff5c010753f [file] [log] [blame]
Christopher Wileya4915c42014-03-27 14:45:37 -07001// Copyright 2014 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
5#ifndef BUFFET_DBUS_UTILS_H_
6#define BUFFET_DBUS_UTILS_H_
7
Christopher Wileya4915c42014-03-27 14:45:37 -07008#include <base/memory/scoped_ptr.h>
Christopher Wiley90016242014-04-01 17:33:29 -07009#include <dbus/exported_object.h>
Christopher Wileya4915c42014-03-27 14:45:37 -070010#include <dbus/message.h>
11
Alex Vakulenkob3aac252014-05-07 17:35:24 -070012#include "buffet/error.h"
13
Christopher Wileya4915c42014-03-27 14:45:37 -070014namespace buffet {
15
16namespace dbus_utils {
17
Alex Vakulenkob3aac252014-05-07 17:35:24 -070018scoped_ptr<dbus::Response> GetDBusError(dbus::MethodCall* method_call,
Alex Vakulenkoaf23b322014-05-08 16:25:45 -070019 const Error* error);
Alex Vakulenkob3aac252014-05-07 17:35:24 -070020
Christopher Wiley90016242014-04-01 17:33:29 -070021dbus::ExportedObject::MethodCallCallback GetExportableDBusMethod(
22 base::Callback<scoped_ptr<dbus::Response>(dbus::MethodCall*)> handler);
23
Christopher Wileya4915c42014-03-27 14:45:37 -070024} // namespace dbus_utils
25
26} // namespace buffet
27
28#endif // BUFFET_DBUS_UTILS_H_
29