Christopher Wiley | a4915c4 | 2014-03-27 14:45:37 -0700 | [diff] [blame] | 1 | // 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 Wiley | 9001624 | 2014-04-01 17:33:29 -0700 | [diff] [blame] | 11 | #include <dbus/exported_object.h> |
Christopher Wiley | a4915c4 | 2014-03-27 14:45:37 -0700 | [diff] [blame] | 12 | #include <dbus/message.h> |
| 13 | |
| 14 | namespace buffet { |
| 15 | |
| 16 | namespace dbus_utils { |
| 17 | |
| 18 | scoped_ptr<dbus::Response> GetBadArgsError(dbus::MethodCall* method_call, |
| 19 | const std::string& message); |
| 20 | |
Christopher Wiley | 9001624 | 2014-04-01 17:33:29 -0700 | [diff] [blame] | 21 | dbus::ExportedObject::MethodCallCallback GetExportableDBusMethod( |
| 22 | base::Callback<scoped_ptr<dbus::Response>(dbus::MethodCall*)> handler); |
| 23 | |
Christopher Wiley | a4915c4 | 2014-03-27 14:45:37 -0700 | [diff] [blame] | 24 | } // namespace dbus_utils |
| 25 | |
| 26 | } // namespace buffet |
| 27 | |
| 28 | #endif // BUFFET_DBUS_UTILS_H_ |
| 29 | |