main: introduce -D cmdline option, don't auto-scan for devices
authorGerhard Sittig <gerhard.sittig@gmx.net>
Wed, 24 Jan 2018 20:11:50 +0000 (21:11 +0100)
committerUwe Hermann <uwe@hermann-uwe.de>
Fri, 26 Jan 2018 16:35:31 +0000 (17:35 +0100)
commit1d6e35dcef7686faec065cb775bd211fa47f2b73
tree4feb93674e536a2dcf1876f2b110666c5fe0cf6e
parentb732b48fafdb5d237248a56764e184e10281a712
main: introduce -D cmdline option, don't auto-scan for devices

Add a -D command line option which skips auto-detection of devices upon
startup. This can speedup program startup for setups with known devices,
and allows to skip the scan for troubled drivers which might break the
startup phase.

This -D option can be combined with -d specs, either presence or absence
of -d is acceptable when -D is specified. Users still can interactively
scan for and use devices after program startup.

This resolves bug #1116.
main.cpp
pv/devicemanager.cpp
pv/devicemanager.hpp