[fprint] [PATCH 8/8] lib: disable fprint-list-udev-rules logic - for now.
Kunal Gangakhedkar
kunal.gangakhedkar at gmail.com
Mon Oct 8 07:39:32 PDT 2012
With ENABLE_DYNAMIC_DRIVERS, fprint_get_drivers() is of no use - at least
in its current incarnation.
Guard the code with ENABLE_DYNAMIC_DRIVERS - so that it runs only
when buidling libfprint with statically linked drivers.
This can go away with alternative implementation for fprint_get_drivers()
when ENABLE_DYNAMIC_DRIVERS is on.
Signed-off-by: Kunal Gangakhedkar <kunal.gangakhedkar at gmail.com>
---
libfprint/fprint-list-udev-rules.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libfprint/fprint-list-udev-rules.c b/libfprint/fprint-list-udev-rules.c
index 791a457..6f7e2a0 100644
--- a/libfprint/fprint-list-udev-rules.c
+++ b/libfprint/fprint-list-udev-rules.c
@@ -85,6 +85,7 @@ int main (int argc, char **argv)
struct fp_driver **list;
guint i;
+#ifndef ENABLE_DYNAMIC_DRIVERS
list = fprint_get_drivers ();
printed = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
@@ -96,6 +97,7 @@ int main (int argc, char **argv)
print_driver (&whitelist);
g_hash_table_destroy (printed);
+#endif /* ENABLE_DYNAMIC_DRIVERS */
return 0;
}
--
1.7.9.5
More information about the fprint
mailing list