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(nutscan_device_t * device,char * option_name, char * value);
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_option_to_device() adds an optional data in the given
27       devcie. Optional data are made of an option_name and an associated
28       value. Copies of option_name and value are stored in the device, so the
29       caller can safely free both of them.
30

SEE ALSO

32       nutscan_scan_usb(3), nutscan_scan_xml_http(3), nutscan_scan_nut(3),
33       nutscan_scan_avahi(3), nutscan_scan_ipmi(3), nutscan_scan_snmp(3),
34       nutscan_display_ups_conf(3), nutscan_display_parsable(3),
35       nutscan_new_device(3), nutscan_free_device(3),
36       nutscan_add_device_to_device(3)
37
38
39
40Network UPS Tools 2.7.3.          03/02/2016           NUTSCAN_ADD_OPTION_T(3)
Impressum