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

NAME

6       libnutclient_devices, nutclient_get_devices, nutclient_has_device,
7       nutclient_get_device_description - Device related functions in Network
8       UPS Tools high-level client access library
9

SYNOPSIS

11       #include <nutclient.h>
12
13       typedef void* NUTCLIENT_t;
14
15       strarr nutclient_get_devices(NUTCLIENT_t client);
16       int nutclient_has_device(NUTCLIENT_t client, const char* dev);
17       char* nutclient_get_device_description(NUTCLIENT_t client, const char* dev);
18

DESCRIPTION

20       These functions allow to manage devices.
21
22       The nutclient_get_devices() function retrieve the list of devices
23       monitored by a client. The returned strarr must be freed by
24       strarr_free.
25
26       The nutclient_has_device() function test if a device is monitored by a
27       client.
28
29       The nutclient_get_device_description() function retrieve the device
30       description. The returned description string must be freed.
31
32       dev is the device name.
33

SEE ALSO

35       libnutclient(3) libnutclient_commands(3) libnutclient_devices(3)
36       libnutclient_general(3) libnutclient_variables(3)
37
38
39
40Network UPS Tools 2.7.3.          03/02/2016           LIBNUTCLIENT_DEVICES(3)
Impressum