Ken Turner | edb9393 | 2018-02-14 05:27:31 +1100 | [diff] [blame^] | 1 | // Copyright 2018 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 "ml/daemon.h" |
| 6 | |
| 7 | namespace ml { |
| 8 | |
| 9 | Daemon::Daemon() {} |
| 10 | |
| 11 | Daemon::~Daemon() {} |
| 12 | |
| 13 | int Daemon::OnInit() { |
| 14 | InitDBus(); |
| 15 | return 0; |
| 16 | } |
| 17 | |
| 18 | void Daemon::InitDBus() { |
| 19 | // TODO(kennetht): Register the Mojo connection method for the ML service with |
| 20 | // D-Bus. |
| 21 | } |
| 22 | |
| 23 | void Daemon::BootstrapMojoConnection( |
| 24 | dbus::MethodCall* method_call, |
| 25 | dbus::ExportedObject::ResponseSender response_sender) { |
| 26 | // TODO(kennetht): Initialize the Mojo connection using the file descriptor |
| 27 | // for the IPC pipe sent with the D-Bus request. |
| 28 | } |
| 29 | |
| 30 | } // namespace ml |