2013-11-24 15:00:12 +00:00
|
|
|
LIBNUTCLIENT_DEVICES(3)
|
|
|
|
=======================
|
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
|
|
|
|
2022-06-29 10:37:36 +00:00
|
|
|
libnutclient_devices, nutclient_get_devices, nutclient_has_device,
|
|
|
|
nutclient_get_device_description -
|
|
|
|
Device related functions in Network UPS Tools high-level client access
|
|
|
|
library
|
2013-11-24 15:00:12 +00:00
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
|
|
|
|
|
|
|
#include <nutclient.h>
|
|
|
|
|
|
|
|
typedef void* NUTCLIENT_t;
|
|
|
|
|
2022-06-29 10:37:36 +00:00
|
|
|
typedef char** strarr;
|
|
|
|
|
2013-11-24 15:00:12 +00:00
|
|
|
strarr nutclient_get_devices(NUTCLIENT_t client);
|
2022-06-29 10:37:36 +00:00
|
|
|
|
2013-11-24 15:00:12 +00:00
|
|
|
int nutclient_has_device(NUTCLIENT_t client, const char* dev);
|
2022-06-29 10:37:36 +00:00
|
|
|
|
2013-11-24 15:00:12 +00:00
|
|
|
char* nutclient_get_device_description(NUTCLIENT_t client, const char* dev);
|
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
|
|
|
|
|
|
|
These functions allow to manage devices.
|
|
|
|
|
2022-06-29 10:37:36 +00:00
|
|
|
* The *nutclient_get_devices()* function retrieves the list of devices
|
|
|
|
monitored by a client.
|
|
|
|
+
|
2013-11-24 15:00:12 +00:00
|
|
|
The returned strarr must be freed by 'strarr_free'.
|
|
|
|
|
2022-06-29 10:37:36 +00:00
|
|
|
* The *nutclient_has_device()* function tests if a device is monitored
|
|
|
|
by a client.
|
2013-11-24 15:00:12 +00:00
|
|
|
|
2022-06-29 10:37:36 +00:00
|
|
|
* The *nutclient_get_device_description()* function retrieves the device
|
|
|
|
description.
|
|
|
|
+
|
2013-11-24 15:00:12 +00:00
|
|
|
The returned description string must be freed.
|
|
|
|
|
2022-06-29 10:37:36 +00:00
|
|
|
Common arguments:
|
|
|
|
|
|
|
|
* 'dev' is the device name.
|
2013-11-24 15:00:12 +00:00
|
|
|
|
|
|
|
SEE ALSO
|
|
|
|
--------
|
2022-06-29 10:37:36 +00:00
|
|
|
|
2013-11-24 15:00:12 +00:00
|
|
|
linkman:libnutclient[3]
|
|
|
|
linkman:libnutclient_commands[3]
|
|
|
|
linkman:libnutclient_devices[3]
|
|
|
|
linkman:libnutclient_general[3]
|
|
|
|
linkman:libnutclient_variables[3]
|