diff options
Diffstat (limited to 'dbus')
-rw-r--r-- | dbus/service_constants.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/dbus/service_constants.h b/dbus/service_constants.h index 755c28d..6e6082b 100644 --- a/dbus/service_constants.h +++ b/dbus/service_constants.h @@ -958,4 +958,53 @@ const char kCreateSecureMessageMethod[] = "CreateSecureMessage"; const char kUnwrapSecureMessageMethod[] = "UnwrapSecureMessage"; } // namespace easy_unlock +namespace biod { +const char kBiodServicePath[] = "/org/chromium/BiometricsDaemon"; +const char kBiodServiceName[] = "org.chromium.BiometricsDaemon"; + +// Interfaces for objects exported by biod +const char kBiometricsManagerInterface[] = + "org.chromium.BiometricsDaemon.BiometricsManager"; +const char kAuthSessionInterface[] = + "org.chromium.BiometricsDaemon.AuthSession"; +const char kEnrollSessionInterface[] = + "org.chromium.BiometricsDaemon.EnrollSession"; +const char kRecordInterface[] = "org.chromium.BiometricsDaemon.Record"; + +// Methods +const char kBiometricsManagerStartEnrollSessionMethod[] = "StartEnrollSession"; +const char kBiometricsManagerGetRecordsForUserMethod[] = "GetRecordsForUser"; +const char kBiometricsManagerDestroyAllRecordsMethod[] = "DestroyAllRecords"; +const char kBiometricsManagerStartAuthSessionMethod[] = "StartAuthSession"; +const char kAuthSessionEndMethod[] = "End"; +const char kEnrollSessionCancelMethod[] = "Cancel"; +const char kRecordRemoveMethod[] = "Remove"; +const char kRecordSetLabelMethod[] = "SetLabel"; + +// Signals +const char kBiometricsManagerEnrollScanDoneSignal[] = "EnrollScanDone"; +const char kBiometricsManagerAuthScanDoneSignal[] = "AuthScanDone"; +const char kBiometricsManagerScanFailedSignal[] = "ScanFailed"; + +// Properties +const char kBiometricsManagerBiometricTypeProperty[] = "Type"; +const char kRecordLabelProperty[] = "Label"; + +// Values +enum BiometricType { + BIOMETRIC_FINGERPRINT = 0, + BIOMETRIC_RETINA = 1, + BIOMETRIC_FACE = 2, + BIOMETRIC_VOICE = 3, +}; +enum ScanResultType { + SCAN_RESULT_SUCCESS = 0, + SCAN_RESULT_PARTIAL = 1, + SCAN_RESULT_INSUFFICIENT = 2, + SCAN_RESULT_SENSOR_DIRTY = 3, + SCAN_RESULT_TOO_SLOW = 4, + SCAN_RESULT_TOO_FAST = 5, +}; +} // namespace biod + #endif // SYSTEM_API_DBUS_SERVICE_CONSTANTS_H_ |