1NUTSCAN_ADD_DEVICE_T(3)           NUT Manual           NUTSCAN_ADD_DEVICE_T(3)
2
3
4

NAME

6       nutscan_add_device_to_device - Concatenate two devices structure.
7

SYNOPSIS

9       #include <nut-scan.h>
10
11       nutscan_device_t * nutscan_add_device_to_device(nutscan_device_t * first, nutscan_device_t * second);
12

DESCRIPTION

14       The nutscan_device_t contains the following variables:
15
16           nutscan_device_type_t   type;
17           char *          driver;
18           char *          port;
19           nutscan_options_t       opt;
20           struct nutscan_device * prev;
21           struct nutscan_device * next;
22
23       This is a double linked list of device. Each device is described by its
24       type, its driver name, its port and any number of optional data.
25
26       The nutscan_add_device_to_device() concatenates first and second
27       devices to a unique device. No new device is created, the two linked
28       list are simply linked to each other. So first and second devices are
29       likely to be modified by this function.
30

RETURN VALUE

32       The nutscan_add_device_to_device() functions returns a pointer to a
33       device containg both passed devices. Note that it’s not a new device,
34       so it is either first or second which is returned.
35

SEE ALSO

37       nutscan_scan_usb(3), nutscan_scan_xml_http(3), nutscan_scan_nut(3),
38       nutscan_scan_avahi(3), nutscan_scan_ipmi(3), nutscan_scan_snmp(3),
39       nutscan_display_ups_conf(3), nutscan_display_parsable(3),
40       nutscan_new_device(3), nutscan_free_device(3),
41       nutscan_add_option_to_device(3)
42
43
44
45Network UPS Tools 2.7.3.          03/02/2016           NUTSCAN_ADD_DEVICE_T(3)
Impressum