Add clear-storage example

This commit is contained in:
Abhinav Baid
2024-05-23 00:41:40 +01:00
committed by Marco Trevisan (Treviño)
parent fa5828f8c0
commit aa18595ec7
4 changed files with 202 additions and 0 deletions

View File

@@ -26,6 +26,7 @@
#include "storage.h"
#include <errno.h>
#include <glib/gstdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
@@ -208,6 +209,12 @@ gallery_data_load (FpDevice *dev)
return gallery;
}
int
clear_saved_prints (void)
{
return g_remove (STORAGE_FILE);
}
FpPrint *
print_create_template (FpDevice *dev, FpFinger finger, gboolean load_existing)
{