nut-debian/docs/man/libnutclient_devices.txt

57 lines
1.2 KiB
Plaintext
Raw Normal View History

2013-11-24 17:00:12 +02:00
LIBNUTCLIENT_DEVICES(3)
=======================
NAME
----
2022-07-10 10:23:45 +03: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 17:00:12 +02:00
SYNOPSIS
--------
#include <nutclient.h>
typedef void* NUTCLIENT_t;
2022-07-10 10:23:45 +03:00
typedef char** strarr;
2013-11-24 17:00:12 +02:00
strarr nutclient_get_devices(NUTCLIENT_t client);
2022-07-10 10:23:45 +03:00
2013-11-24 17:00:12 +02:00
int nutclient_has_device(NUTCLIENT_t client, const char* dev);
2022-07-10 10:23:45 +03:00
2013-11-24 17:00:12 +02:00
char* nutclient_get_device_description(NUTCLIENT_t client, const char* dev);
DESCRIPTION
-----------
These functions allow to manage devices.
2022-07-10 10:23:45 +03:00
* The *nutclient_get_devices()* function retrieves the list of devices
monitored by a client.
+
2013-11-24 17:00:12 +02:00
The returned strarr must be freed by 'strarr_free'.
2022-07-10 10:23:45 +03:00
* The *nutclient_has_device()* function tests if a device is monitored
by a client.
2013-11-24 17:00:12 +02:00
2022-07-10 10:23:45 +03:00
* The *nutclient_get_device_description()* function retrieves the device
description.
+
2013-11-24 17:00:12 +02:00
The returned description string must be freed.
2022-07-10 10:23:45 +03:00
Common arguments:
* 'dev' is the device name.
2013-11-24 17:00:12 +02:00
SEE ALSO
--------
2022-07-10 10:23:45 +03:00
2013-11-24 17:00:12 +02:00
linkman:libnutclient[3]
linkman:libnutclient_commands[3]
linkman:libnutclient_devices[3]
linkman:libnutclient_general[3]
linkman:libnutclient_variables[3]