D21379: [UDev Backend] Narrow device queried for
Stefan Brüns
noreply at phabricator.kde.org
Sat Jun 1 22:11:08 BST 2019
bruns added a comment.
In D21379#472418 <https://phabricator.kde.org/D21379#472418>, @broulik wrote:
> For some reason here my `udev_enumerate_add_match_property("ID_MEDIA_PLAYER", null)` doesn't work. If I check for "1" it works but `null` doesn't find any devices. Since the systemd code uses `fnmatch`, we can probably just pass `*` to it to match anything.
`nullptr` only matches when the udev property also has no value (`if (!value && !value_dev) return true;`). `"*"` should work, yes.
The question now is, should we also differnentiate here, i.e. map `QVariant()` to `nullptr`, and use `"*"` for wildcards?
REPOSITORY
R245 Solid
REVISION DETAIL
https://phabricator.kde.org/D21379
To: broulik, #frameworks, davidedmundson, bruns
Cc: apol, kde-frameworks-devel, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190601/df37e8b7/attachment.html>
More information about the Kde-frameworks-devel
mailing list