D21379: [UDev Backend] Narrow subsystems queried for cameras
Stefan BrĂ¼ns
noreply at phabricator.kde.org
Fri May 24 15:35:31 BST 2019
bruns added a comment.
sd[a-z] is subsystem "block"
sg[0-9] is susbsystem "scsi_generic"
none of the ID_GPHOTO2==1 devices is a tty or dvb device
INLINE COMMENTS
> udevqtclient.h:53
> DeviceList devicesBySubsystem(const QString &subsystem);
> + DeviceList devicesBySubsystemsAndProperties(const QStringList &subsystems, const QVariantMap &properties);
> Device deviceByDeviceFile(const QString &deviceFile);
This definitely needs some documentation
- values in subsystems form a union (ORed)
- key/values in properties form a union (ORed)
- both unions are intersected (ANDed)
i.e. in the camera case, (usb || dvb || tty) && (ID_GPHOTO2==1)
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/20190524/84defa99/attachment.html>
More information about the Kde-frameworks-devel
mailing list