blob: 5d09ce3791e37d7e14f5d1e4f3e9f5204cff2db3 [file] [log] [blame]
Ken Turneredb93932018-02-14 05:27:31 +11001// 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
7namespace ml {
8
9Daemon::Daemon() {}
10
11Daemon::~Daemon() {}
12
13int Daemon::OnInit() {
14 InitDBus();
15 return 0;
16}
17
18void Daemon::InitDBus() {
19 // TODO(kennetht): Register the Mojo connection method for the ML service with
20 // D-Bus.
21}
22
23void 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