Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
libfprint
fprintd
Commits
3a0152e1
Commit
3a0152e1
authored
May 14, 2008
by
Bastien Nocera
Committed by
Daniel Drake
May 16, 2008
Browse files
Fix _get_error() in the manager
Fix wrong assumption of semantics when fp_discover_devs() returns NULL.
parent
5dafd66e
Changes
3
Hide whitespace changes
Inline
Side-by-side
po/POTFILES.in
View file @
3a0152e1
src/main.c
src/manager.c
src/fprintd.h
View file @
3a0152e1
...
...
@@ -31,6 +31,7 @@ GQuark fprint_error_quark(void);
/* Errors */
#define FPRINT_ERROR fprint_error_quark()
typedef
enum
{
FPRINT_ERROR_INTERNAL
,
FPRINT_ERROR_DISCOVER_PRINTS
,
FPRINT_ERROR_PRINT_NOT_FOUND
,
FPRINT_ERROR_PRINT_LOAD
,
...
...
src/manager.c
View file @
3a0152e1
...
...
@@ -19,6 +19,7 @@
#include
<dbus/dbus-glib-bindings.h>
#include
<glib.h>
#include
<glib/gi18n.h>
#include
<libfprint/fprint.h>
#include
<glib-object.h>
...
...
@@ -79,7 +80,8 @@ fprint_manager_init (FprintManager *manager)
int
i
=
0
;
if
(
!
discovered_devs
)
{
priv
->
last_error
=
g_error_new
(
0
,
0
,
"NO DEVICES AVAILABLE: FIXME"
);
priv
->
last_error
=
g_error_new
(
FPRINT_ERROR
,
FPRINT_ERROR_INTERNAL
,
_
(
"An internal error occurred in libfprint"
));
return
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment