mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2026-05-14 19:18:10 +02:00
Add core fingerprint operations: enrollment, verification, identification, print listing, print deletion, and storage clearing. New files: - validity_db.h/c: On-chip template database operations — command builders for all DB commands (0x45-0x4B, 0x47-0x48, 0x51, 0x5E, 0x60, 0x62, 0x63, 0x64, 0x68, 0x69, 0x6B), response parsers for DB info/user storage/user/ record value/record children/new record ID, identity builder (UUID→VCSFW binary), finger data builder, and db_write_enable blob accessor. - validity_enroll.c: 31-state enrollment SSM with interrupt-driven finger detection (EP 0x83), capture command orchestration via build_cmd_02(), enrollment session management (create/update/commit), DB record creation (user + finger), and LED glow feedback. - validity_verify.c: 17-state verify/identify SSM with match command dispatching (cmd 0x5E for verify, cmd 0x60 for identify), 6-state list SSM for enumerating enrolled prints via GPtrArray, 8-state delete SSM, and clear_storage stub. Modified files: - validity.h: Added DB header include, 5 new state enums (CalibState, EnrollState, VerifyState, ListState, DeleteState), new struct fields for enrollment/verification/list/delete state, function declarations. - validity.c: Replaced all operation stubs with real implementations, added cleanup for new fields in dev_close, wired all FpDevice methods. - meson.build: Added 3 new source files to driver. - tests/meson.build: Added test-validity-db executable. - tests/validity/custom.py: Updated feature assertions (STORAGE, STORAGE_LIST, STORAGE_CLEAR now enabled). Tests: 29 new unit tests in test-validity-db.c covering all command builders, response parsers, identity/finger data builders, and blob accessor. All 37 tests pass (0 fail, 2 skip). |
||
|---|---|---|
| .. | ||
| drivers | ||
| nbis | ||
| drivers_api.h | ||
| empty_file | ||
| fp-context.c | ||
| fp-context.h | ||
| fp-device-private.h | ||
| fp-device.c | ||
| fp-device.h | ||
| fp-image-device-private.h | ||
| fp-image-device.c | ||
| fp-image-device.h | ||
| fp-image.c | ||
| fp-image.h | ||
| fp-print-private.h | ||
| fp-print.c | ||
| fp-print.h | ||
| fpi-assembling.c | ||
| fpi-assembling.h | ||
| fpi-byte-reader.c | ||
| fpi-byte-reader.h | ||
| fpi-byte-utils.h | ||
| fpi-byte-writer.c | ||
| fpi-byte-writer.h | ||
| fpi-compat.h | ||
| fpi-context.h | ||
| fpi-device.c | ||
| fpi-device.h | ||
| fpi-image-device.c | ||
| fpi-image-device.h | ||
| fpi-image.c | ||
| fpi-image.h | ||
| fpi-log.h | ||
| fpi-minutiae.h | ||
| fpi-print.c | ||
| fpi-print.h | ||
| fpi-spi-transfer.c | ||
| fpi-spi-transfer.h | ||
| fpi-ssm.c | ||
| fpi-ssm.h | ||
| fpi-usb-transfer.c | ||
| fpi-usb-transfer.h | ||
| fprint-list-metainfo.c | ||
| fprint-list-supported-devices.c | ||
| fprint-list-udev-hwdb.c | ||
| fprint-list-udev-rules.c | ||
| fprint.h | ||
| libfprint.ver | ||
| meson.build | ||