blob: 7c5a27570dae0036258894597ae1ad09b75835d4 [file] [log] [blame]
// Copyright 2020 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "arc/data-snapshotd/daemon.h"
#include <cstdlib>
#include <base/logging.h>
#include <dbus/arc-data-snapshotd/dbus-constants.h>
namespace arc {
namespace data_snapshotd {
Daemon::Daemon() : DBusServiceDaemon(kArcDataSnapshotdServiceName) {}
Daemon::~Daemon() = default;
int Daemon::OnInit() {
LOG(INFO) << "Starting";
return DBusServiceDaemon::OnInit();
}
void Daemon::RegisterDBusObjectsAsync(
brillo::dbus_utils::AsyncEventSequencer* sequencer) {
dbus_adaptor_.RegisterAsync(bus_, sequencer);
}
} // namespace data_snapshotd
} // namespace arc