OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 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 #include "cros-disks-server-impl.h" |
| 6 |
| 7 #include "disk.h" |
| 8 |
| 9 #include <sys/mount.h> |
| 10 |
| 11 namespace cros_disks { |
| 12 |
| 13 // TODO(rtc): this should probably be a flag. |
| 14 static const char* kServicePath = "/org/chromium/CrosDisks"; |
| 15 |
| 16 CrosDisksServer::CrosDisksServer(DBus::Connection& connection) |
| 17 : DBus::ObjectAdaptor(connection, kServicePath) { } |
| 18 |
| 19 CrosDisksServer::~CrosDisksServer() { } |
| 20 |
| 21 bool CrosDisksServer::IsAlive(DBus::Error& error) { // NOLINT |
| 22 return true; |
| 23 } |
| 24 |
| 25 void CrosDisksServer::FilesystemMount( |
| 26 const std::string& nullArgument, |
| 27 const std::vector<std::string>& mountOptions, |
| 28 DBus::Error& error) { // NOLINT |
| 29 |
| 30 return; |
| 31 } |
| 32 |
| 33 void CrosDisksServer::FilesystemUnmount( |
| 34 const std::vector<std::string>& mountOptions, |
| 35 DBus::Error& error) { // NOLINT |
| 36 |
| 37 return; |
| 38 } |
| 39 |
| 40 DBusDisks CrosDisksServer::GetAll(DBus::Error& error) { // NOLINT |
| 41 DBusDisks v; |
| 42 return v; |
| 43 } |
| 44 |
| 45 } // namespace cros_disks |
OLD | NEW |