mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
fpi-context: Make fpi_get_driver_types to return an array
No need to create one all the times and the fill it with what we need.
This commit is contained in:
@@ -96,11 +96,9 @@ print_driver (const FpDeviceClass *cls)
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
g_autoptr(GArray) drivers = g_array_new (FALSE, FALSE, sizeof (GType));
|
||||
g_autoptr(GArray) drivers = fpi_get_driver_types ();
|
||||
guint i;
|
||||
|
||||
fpi_get_driver_types (drivers);
|
||||
|
||||
printed = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
|
||||
|
||||
for (i = 0; i < drivers->len; i++)
|
||||
|
||||
Reference in New Issue
Block a user