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

NAME

6       nutscan_add_option_to_device - Add option data to the specified device.
7

SYNOPSIS

9       #include <nut-scan.h>
10
11       void nutscan_add_option_to_device(
12              nutscan_device_t * device,
13              char * option_name,
14              char * value);
15

DESCRIPTION

17       The nutscan_device_t contains the following variables:
18
19           nutscan_device_type_t   type;
20           char *          driver;
21           char *          port;
22           nutscan_options_t       opt;
23           struct nutscan_device * prev;
24           struct nutscan_device * next;
25
26       This is a double linked list of device. Each device is described by its
27       type, its driver name, its port and any number of optional data.
28
29       The nutscan_add_option_to_device() adds an optional data in the given
30       device. Optional data are made of an option_name and an associated
31       value. Copies of option_name and value are stored in the device, so the
32       caller can safely free both of the original strings used as arguments.
33

NOTES

35       Technically, the function is currently defined in nutscan-device.h
36       file.
37

SEE ALSO

39       nutscan_scan_usb(3), nutscan_scan_xml_http_range(3),
40       nutscan_scan_nut(3), nutscan_scan_avahi(3), nutscan_scan_ipmi(3),
41       nutscan_scan_snmp(3), nutscan_display_ups_conf(3),
42       nutscan_display_parsable(3), nutscan_new_device(3),
43       nutscan_free_device(3), nutscan_add_device_to_device(3)
44
45
46
47Network UPS Tools 2.8.0           04/26/2022           NUTSCAN_ADD_OPTION_T(3)
Impressum