Manual Reference Pages - NUTSCAN_ADD_DEVICE_TO_DEVICE (3)
nutscan_add_device_to_device - Concatenate two devices structure.
nutscan_device_t * nutscan_add_device_to_device(nutscan_device_t * first, nutscan_device_t * second);
The nutscan_device_t contains the following variables:
char * driver;
char * port;
struct nutscan_device * prev;
struct nutscan_device * next;
This is a double linked list of device. Each device is described by its type, its driver name, its port and any number of optional data.
The nutscan_add_device_to_device() concatenates first and second devices to a unique device. No new device is created, the two linked list are simply linked to each other. So first and second devices are likely to be modified by this function.
The nutscan_add_device_to_device() functions returns a pointer to a device containg both passed devices. Note that its not a new device, so it is either first or second which is returned.
nutscan_scan_usb(3), nutscan_scan_xml_http(3), nutscan_scan_nut(3), nutscan_scan_avahi(3), nutscan_scan_ipmi(3), nutscan_scan_snmp(3), nutscan_display_ups_conf(3), nutscan_display_parsable(3), nutscan_new_device(3), nutscan_free_device(3), nutscan_add_option_to_device(3)
|Network UPS Tools 2&.7&.3&. ||NUTSCAN_ADD_DEVICE_T (3) ||03/02/2016 |
Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.