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       typedef char** strarr;
16
17       strarr nutclient_get_devices(NUTCLIENT_t client);
18
19       int nutclient_has_device(NUTCLIENT_t client, const char* dev);
20
21       char* nutclient_get_device_description(NUTCLIENT_t client, const char* dev);
22

DESCRIPTION

24       These functions allow to manage devices.
25
26       •   The nutclient_get_devices() function retrieves the list of devices
27           monitored by a client.
28
29           The returned strarr must be freed by strarr_free.
30
31       •   The nutclient_has_device() function tests if a device is monitored
32           by a client.
33
34       •   The nutclient_get_device_description() function retrieves the
35           device description.
36
37           The returned description string must be freed.
38
39       Common arguments:
40
41dev is the device name.
42

SEE ALSO

44       libnutclient(3) libnutclient_commands(3) libnutclient_devices(3)
45       libnutclient_general(3) libnutclient_variables(3)
46
47
48
49Network UPS Tools 2.8.0           04/26/2022           LIBNUTCLIENT_DEVICES(3)
Impressum