-
-
Notifications
You must be signed in to change notification settings - Fork 366
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2221 from aquette/nutscanner-trim-output
nut-scanner USB: disable some output results
- Loading branch information
Showing
15 changed files
with
246 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* 2012 - 2024 Arnaud Quette <[email protected]> | ||
* 2016 - EATON - IP addressed XML scan | ||
* 2016 - 2021 - EATON - Various threads-related improvements | ||
* 2023 - Jim Klimov <[email protected]> | ||
* 2023 - 2024 - Jim Klimov <[email protected]> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
@@ -144,10 +144,24 @@ typedef struct nutscan_xml { | |
char *peername; /* Hostname or NULL for broadcast mode */ | ||
} nutscan_xml_t; | ||
|
||
/* USB scan options structure */ | ||
typedef struct nutscan_usb { | ||
/* Hardware link related values below are not reliable for run-time | ||
* matching (they can change over time) but can be useful if e.g. | ||
* "serial" is not available or unique */ | ||
int report_bus; | ||
int report_busport; | ||
int report_device; | ||
|
||
/* The value is not currently used for device matching, but might be | ||
* used later, and it is available from discovery */ | ||
int report_bcdDevice; | ||
} nutscan_usb_t; | ||
|
||
/* Scanning */ | ||
nutscan_device_t * nutscan_scan_snmp(const char * start_ip, const char * stop_ip, useconds_t usec_timeout, nutscan_snmp_t * sec); | ||
|
||
nutscan_device_t * nutscan_scan_usb(void); | ||
nutscan_device_t * nutscan_scan_usb(nutscan_usb_t * scanopts); | ||
|
||
/* If "ip" == NULL, do a broadcast scan */ | ||
/* If sec->usec_timeout <= 0 then the common usec_timeout arg overrides it */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.