path: keep the udev context around
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 20 Nov 2014 03:36:32 +0000 (13:36 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 25 Nov 2014 06:32:37 +0000 (16:32 +1000)
commit8d24cd530425f3860c4a55a987b9d74f029c8d91
treecb3b016eaf926fb5ebd4e3965eaced237c4e5140
parent92d178f167302665d51b3dba79d18de4c1881bdb
path: keep the udev context around

We need it for each device anyway, keep the ref around. Makes error handling a
bit easier, we don't need to handle failing udev_new() and reduce the danger
of mis-refcounting it.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
src/path.c
src/path.h