-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbiod_config.h
41 lines (32 loc) · 1.2 KB
/
biod_config.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
// 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.
#ifndef BIOD_BIOD_CONFIG_H_
#define BIOD_BIOD_CONFIG_H_
#include <string>
#include <base/optional.h>
#include <cros_config/cros_config_interface.h>
namespace biod {
extern const char kCrosConfigFPPath[];
extern const char kCrosConfigFPBoard[];
extern const char kCrosConfigFPLocation[];
/**
* @brief Deduce if fingerprint is explicitly not supported.
*
* This will only register as unsupported if cros_config explicitly
* indicates that fingerprint is not supported on the model.
*
* @return true if fingerprint is not supported on this platform,
* false if fingerprint may be supported on this platform
*/
bool FingerprintUnsupported(brillo::CrosConfigInterface* cros_config);
/**
* @brief Fetch the fingerprint board name (dartmonkey, bloonchipper, etc).
*
* @return no value if cros_config does not report the fingerprint board,
* else the fingerprint board as a string
*/
base::Optional<std::string> FingerprintBoard(
brillo::CrosConfigInterface* cros_config);
} // namespace biod
#endif // BIOD_BIOD_CONFIG_H_