Prashant Malani | 224d3ca | 2017-03-14 12:44:11 -0700 | [diff] [blame] | 1 | // Copyright 2017 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 "midis/daemon.h" | ||||
6 | |||||
7 | namespace midis { | ||||
8 | |||||
9 | Daemon::Daemon() : device_tracker_(new DeviceTracker()) {} | ||||
10 | |||||
11 | Daemon::~Daemon() {} | ||||
12 | |||||
13 | int Daemon::OnInit() { | ||||
14 | if (!device_tracker_->InitDeviceTracker()) { | ||||
15 | return -1; | ||||
16 | } | ||||
17 | |||||
18 | return 0; | ||||
19 | } | ||||
20 | |||||
21 | } // namespace midis |