Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(src): Allow listing devices of concrete types #189

Merged
merged 3 commits into from
Jan 20, 2024

Conversation

ondrejholy
Copy link
Contributor

Currently, the "list" command returns all discovered devices. This includes also devices without host services like printers. That is a problem for some API clients (i.e. gvfs). Let's add an optional argument to specify concrete type.

Fixes: #178

@ondrejholy ondrejholy force-pushed the wip/oholy/list-type branch 2 times, most recently from 3a3c535 to d77e0bb Compare December 12, 2023 14:51
ondrejholy and others added 3 commits January 20, 2024 17:14
Currently, the "list" command returns all discovered devices. This
includes also devices without host services like printers. That is a
problem for some API clients (i.e. gvfs). Let's add an optional
argument to specify concrete type.

Fixes: christgau#178
@christgau christgau force-pushed the wip/oholy/list-type branch from a94c052 to b5aca43 Compare January 20, 2024 16:17
@christgau christgau merged commit 62dfbe3 into christgau:master Jan 20, 2024
3 checks passed
gnomesysadmins pushed a commit to GNOME/gvfs that referenced this pull request Feb 19, 2024
The wsdd backend enumerates also printers and other unwanted devices now.
It is now possible to request just devices of concrete types thanks to the
christgau/wsdd#189 request. Let's specify the
`pub:Computer` type to filter out those unwanted devices.

Related: https://gitlab.gnome.org/GNOME/gvfs/-/merge_requests/186#note_1854469
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

List also service types
2 participants