summaryrefslogtreecommitdiff
path: root/sys-auth/fprintd/files/fprintd-0.8.1-fno-common.patch
blob: ba4574fce60d5e9cc09dbaf7f71974a096c0137c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
--- a/src/device.c
+++ b/src/device.c
@@ -47,6 +47,7 @@ static char *fingers[] = {
 	"right-little-finger"
 };
 
+extern struct storage store;
 extern DBusGConnection *fprintd_dbus_conn;
 
 static void fprint_device_claim(FprintDevice *rdev,
--- a/src/file_storage.c
+++ b/src/file_storage.c
@@ -44,6 +44,7 @@
 #define FP_FINGER_IS_VALID(finger) \
 	((finger) >= LEFT_THUMB && (finger) <= RIGHT_LITTLE)
 
+extern struct storage store;
 static char *get_path_to_storedir(uint16_t driver_id, uint32_t devtype, char *base_store)
 {
 	char idstr[5];
--- a/src/main.c
+++ b/src/main.c
@@ -34,6 +34,7 @@
 #include "storage.h"
 #include "file_storage.h"
 
+struct storage store;
 extern DBusGConnection *fprintd_dbus_conn;
 static gboolean no_timeout = FALSE;
 static gboolean g_fatal_warnings = FALSE;
--- a/src/storage.h
+++ b/src/storage.h
@@ -41,10 +41,7 @@ struct storage {
 	storage_discover_prints discover_prints;
 };
 
-typedef struct storage fp_storage;
-
-/* The currently setup store */
-fp_storage store;
+extern struct storage store;
 
 #endif