blob: 369156e5e5050a6c6086027155aa1592b3e3e53f [file] [log] [blame] [edit]
// Copyright 2023 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "printscanmgr/daemon/daemon.h"
#include <dbus/printscanmgr/dbus-constants.h>
namespace printscanmgr {
Daemon::Daemon() : DBusServiceDaemon(kPrintscanmgrServiceName) {}
Daemon::~Daemon() = default;
void Daemon::RegisterDBusObjectsAsync(
brillo::dbus_utils::AsyncEventSequencer* sequencer) {
dbus_adaptor_ = std::make_unique<DbusAdaptor>(bus_);
dbus_adaptor_->RegisterAsync(
sequencer->GetHandler("RegisterAsync() failed.", true));
}
} // namespace printscanmgr