mirror of
				https://github.com/gnif/LookingGlass.git
				synced 2025-10-31 04:31:57 +00:00 
			
		
		
		
	[host] app: do not try to use deprecated interfaces automatically
This commit is contained in:
		| @@ -112,6 +112,8 @@ typedef struct CaptureInterface | ||||
| { | ||||
|   const char * shortName; | ||||
|   const bool   asyncCapture; | ||||
|   const bool   deprecated; | ||||
|  | ||||
|   const char * (*getName        )(void); | ||||
|   void         (*initOptions    )(void); | ||||
|  | ||||
|   | ||||
| @@ -894,8 +894,18 @@ int app_main(int argc, char * argv[]) | ||||
|     CaptureInterface * iface = NULL; | ||||
|     for(int i = 0; CaptureInterfaces[i]; ++i) | ||||
|     { | ||||
|       if (*ifaceName && strcasecmp(ifaceName, CaptureInterfaces[i]->shortName)) | ||||
|         continue; | ||||
|       if (*ifaceName) | ||||
|       { | ||||
|         if (strcasecmp(ifaceName, CaptureInterfaces[i]->shortName) != 0) | ||||
|           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]; | ||||
|       DEBUG_INFO("Trying           : %s", iface->getName()); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Geoffrey McRae
					Geoffrey McRae