-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathface_auth_daemon.h
42 lines (29 loc) · 1003 Bytes
/
face_auth_daemon.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Copyright 2022 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FACED_FACE_AUTH_DAEMON_H_
#define FACED_FACE_AUTH_DAEMON_H_
#include <memory>
#include <string>
#include <brillo/daemons/dbus_daemon.h>
#include "faced/dbus_adaptor.h"
#include "faced/face_auth_service.h"
namespace faced {
class FaceAuthDaemon : public brillo::DBusServiceDaemon {
public:
FaceAuthDaemon();
~FaceAuthDaemon() override = default;
// Disallow copy and move.
FaceAuthDaemon(const FaceAuthDaemon&) = delete;
FaceAuthDaemon& operator=(const FaceAuthDaemon&) = delete;
protected:
// brillo::DBusServiceDaemon:
int OnInit() override;
private:
void RegisterDBusObjectsAsync(
brillo::dbus_utils::AsyncEventSequencer* sequencer) override;
std::unique_ptr<DBusAdaptor> adaptor_;
std::unique_ptr<FaceAuthServiceInterface> face_auth_service_;
};
} // namespace faced
#endif // FACED_FACE_AUTH_DAEMON_H_