udisks-part-id: Shuffle code to keep udev_device in main()
authorMartin Pitt <martin.pitt@ubuntu.com>
Fri, 12 Mar 2010 16:27:03 +0000 (17:27 +0100)
committerMartin Pitt <martin.pitt@ubuntu.com>
Fri, 12 Mar 2010 16:35:58 +0000 (17:35 +0100)
commit8aa58f68ae3b53f6ba6d8c51b4f66bc8135b4123
tree130b71c9334c2284d0d5ab6d2c7c4615ba10df55
parentb2b116296d9973203c20be1a1060015ebdd1ce39
udisks-part-id: Shuffle code to keep udev_device in main()

Reorder the code to get and keep an udev_device struct in main() and pass it
down to get_part_table_device_file(), instead of temporarily creating them in
that function and get_syspath(). This avoids duplicate lookups and also
allows us to do further queries on the udev_device later on (which we need to
fix bz#26996)
src/probers/part-id.c