examples/clear-storage: Cleanup code and use better error handling

This commit is contained in:
Marco Trevisan (Treviño)
2025-02-20 15:34:02 +01:00
parent aa18595ec7
commit 817281f6fd
3 changed files with 28 additions and 9 deletions

View File

@@ -20,13 +20,16 @@
#pragma once
#include <glib.h>
#include <libfprint/fprint.h>
int print_data_save (FpPrint *print,
FpFinger finger,
gboolean update_fingerprint);
FpPrint * print_data_load (FpDevice *dev,
FpFinger finger);
GPtrArray * gallery_data_load (FpDevice *dev);
int clear_saved_prints (void);
gboolean clear_saved_prints (GError **error);
FpPrint * print_create_template (FpDevice *dev,
FpFinger finger,
const gboolean load_existing);