enumerator: Ensure client subsystems are implicitly matched
authorRay Strode <rstrode@redhat.com>
Wed, 19 Oct 2016 14:01:45 +0000 (10:01 -0400)
committerBastien Nocera <hadess@hadess.net>
Wed, 2 Nov 2016 17:32:22 +0000 (18:32 +0100)
commit7cf0fde672e6b0eb6c48fc5ab533da948b1ab74a
tree4930f1f2deac5a7d253a0ff45969cae61e3e3d84
parent177ea07f3411353d9eb964b4d9c0812685d71738
enumerator: Ensure client subsystems are implicitly matched

g_udev_client_new takes an optional list of subsystems
(and device types) to filter the udev event stream on. These
subsystems aren't automatically matched for device enumeration,
though, which is unexpected.

This commit changes gudevenumerator to get its udev_enumerate object
from gudevclient with the appropriate subsystem and device matches
already set up.

https://bugzilla.gnome.org/show_bug.cgi?id=773224
gudev/gudevclient.c
gudev/gudevenumerator.c
gudev/gudevprivate.h