manager: Use GEnum to register DBus errors from FprintError

Given that mk_genenum already parses FprintError, add the nick metadata
to the errors so that it matches the wanted DBus error and automatically
generate the errors list.

In this way we'll have to only touch one definition to get everything
updated
This commit is contained in:
Marco Trevisan (Treviño)
2020-11-06 19:19:24 +01:00
committed by Benjamin Berg
parent 4c78012103
commit 4e707f0d31
3 changed files with 33 additions and 29 deletions

View File

@ -30,7 +30,6 @@
#include <errno.h>
#include "fprintd.h"
#include "fprintd-enums.h"
#include "storage.h"
static const char *FINGERS_NAMES[] = {