blob: 6d9eee397ae26cc4c7fecd32f21ed5f187b2f4f5 [file] [log] [blame]
// Copyright 2020 The ChromiumOS Authors
// 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