blob: d4d5799b2302238b670a3439320015b60c79873d [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
8#include <string>
9
10#include <base/memory/scoped_ptr.h>
Christopher Wiley90016242014-04-01 17:33:29 -070011#include <dbus/exported_object.h>
Christopher Wileya4915c42014-03-27 14:45:37 -070012#include <dbus/message.h>
13
14namespace buffet {
15
16namespace dbus_utils {
17
18scoped_ptr<dbus::Response> GetBadArgsError(dbus::MethodCall* method_call,
19 const std::string& message);
20
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