Skip to content
Snippets Groups Projects
Commit e54151a4 authored by Pierre-Yves David's avatar Pierre-Yves David
Browse files

discovery: support optional callback for information

Right now, the discovery process offered by `filter_known_objects`
returns all results after the discovery is complete. The new callback
provides a way to get information "in real time" which is useful for at
least a couple of planned use case in the SWH scanner:
- displaying progress information while processing
- update a graphical UI in real time.

This simple callback fits this need without too much troubles.

For some reason, mypy complained about the existing type hint in this
file for unclear reason. So I fixed them.
parent 1a59d42f
No related branches found
Tags debian/upstream/0.0.34
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment