mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-24 06:27:17 +00:00
[host] app: do not try to use deprecated interfaces automatically
This commit is contained in:
parent
989fe2bb0b
commit
90398bc04f
@ -112,6 +112,8 @@ typedef struct CaptureInterface
|
|||||||
{
|
{
|
||||||
const char * shortName;
|
const char * shortName;
|
||||||
const bool asyncCapture;
|
const bool asyncCapture;
|
||||||
|
const bool deprecated;
|
||||||
|
|
||||||
const char * (*getName )(void);
|
const char * (*getName )(void);
|
||||||
void (*initOptions )(void);
|
void (*initOptions )(void);
|
||||||
|
|
||||||
|
@ -894,8 +894,18 @@ int app_main(int argc, char * argv[])
|
|||||||
CaptureInterface * iface = NULL;
|
CaptureInterface * iface = NULL;
|
||||||
for(int i = 0; CaptureInterfaces[i]; ++i)
|
for(int i = 0; CaptureInterfaces[i]; ++i)
|
||||||
{
|
{
|
||||||
if (*ifaceName && strcasecmp(ifaceName, CaptureInterfaces[i]->shortName))
|
if (*ifaceName)
|
||||||
|
{
|
||||||
|
if (strcasecmp(ifaceName, CaptureInterfaces[i]->shortName) != 0)
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
/* do not try to init deprecated interfaces unless they are explicity
|
||||||
|
selected in the host configuration */
|
||||||
|
if (CaptureInterfaces[i]->deprecated)
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
iface = CaptureInterfaces[i];
|
iface = CaptureInterfaces[i];
|
||||||
DEBUG_INFO("Trying : %s", iface->getName());
|
DEBUG_INFO("Trying : %s", iface->getName());
|
||||||
|
Loading…
Reference in New Issue
Block a user