Imported Upstream version 2.6.5

This commit is contained in:
Laurent Bigonville 2012-08-12 23:39:31 +02:00
parent fefe62b2bd
commit a1fa151fc7
201 changed files with 7974 additions and 709 deletions

View file

@ -12,14 +12,14 @@ DESCRIPTION
The Network UPS Tools (NUT) *nutscan* library provides the same discovery
related features that are also offered by linkman:nut-scanner[8].
It allows to discover supported NUT devices (USB, SNMP, Eaton XML/HTTP and IPMI)
and NUT servers (using Avahi or the classic connection method).
It enables the discovery of supported NUT devices (USB, SNMP, Eaton XML/HTTP
and IPMI) and NUT servers (using Avahi, or the classic connection method).
DISCOVERY FUNCTIONS
-------------------
First, include the needed header file:
First, include the required header file:
#include <nut-scan.h>
@ -33,10 +33,10 @@ Then, to discover new devices, use the appropriate function:
- linkman:nutscan_scan_ipmi[3] for supported IPMI PSU.
All these functions return a list of devices found, using the nutscan_device_t
structure. This one is described in linkman:nutscan_add_device_to_device[3].
All of these functions return a list of devices found, using the nutscan_device_t
structure. This structure is described in linkman:nutscan_add_device_to_device[3].
Helper functions are also provided to output data using standard format:
Helper functions are also provided to output data using standard formats:
- linkman:nutscan_display_parsable[3] for parsable output,
- linkman:nutscan_display_ups_conf[3] for ups.conf style.
@ -44,16 +44,17 @@ Helper functions are also provided to output data using standard format:
ERROR HANDLING
--------------
There is currently no specific mechanism around error handling.
There is currently no specific mechanism for error handling.
SEE ALSO
--------
linkman:nut-scanner[8],
linkman:nutscan_scan_usb[3], linkman:nutscan_scan_snmp[3]
linkman:nutscan_scan_xml_http[3], linkman:nutscan_scan_nut[3]
linkman:nutscan_scan_avahi[3], linkman:nutscan_scan_ipmi[3]
linkman:nutscan_display_parsable[3], linkman:nutscan_display_ups_conf[3]
linkman:nutscan_new_device[3], linkman:nutscan_free_device[3]
linkman:nutscan_add_device_to_device[3], linkman:nutscan_add_option_to_device[3]
linkman:nutscan_cidr_to_ip[3]
linkman:nutscan_scan_usb[3], linkman:nutscan_scan_snmp[3],
linkman:nutscan_scan_xml_http[3], linkman:nutscan_scan_nut[3],
linkman:nutscan_scan_avahi[3], linkman:nutscan_scan_ipmi[3],
linkman:nutscan_display_parsable[3], linkman:nutscan_display_ups_conf[3],
linkman:nutscan_new_device[3], linkman:nutscan_free_device[3],
linkman:nutscan_add_device_to_device[3], linkman:nutscan_add_option_to_device[3],
linkman:nutscan_cidr_to_ip[3],
http://avahi.org/