examples/storage: Clear storage per device

We used to clear the whole storage file, but this has to be done
per-device, not globally
This commit is contained in:
Marco Trevisan (Treviño)
2025-02-20 16:08:11 +01:00
parent 817281f6fd
commit 5b300edbe5
3 changed files with 56 additions and 18 deletions

View File

@@ -29,7 +29,8 @@ int print_data_save (FpPrint *print,
FpPrint * print_data_load (FpDevice *dev,
FpFinger finger);
GPtrArray * gallery_data_load (FpDevice *dev);
gboolean clear_saved_prints (GError **error);
gboolean clear_saved_prints (FpDevice *dev,
GError **error);
FpPrint * print_create_template (FpDevice *dev,
FpFinger finger,
const gboolean load_existing);