nutclient_has_device(3)

nutclient_has_device3

Device related functions in network ups tools high-level client access library

Part of libnutclient_devices(3).

Usage

#include <nutclient.h>
typedef void* NUTCLIENT_t;
typedef char** strarr;
strarr nutclient_get_devices(NUTCLIENT_t client);
int nutclient_has_device(NUTCLIENT_t client, const char* dev);
char* nutclient_get_device_description(NUTCLIENT_t client, const char* dev);

Overview

These functions allow to manage devices.

• The nutclient_get_devices() function retrieves the list of devices monitored by a client.

The returned strarr must be freed by strarr_free.

• The nutclient_has_device() function tests if a device is monitored by a client.

• The nutclient_get_device_description() function retrieves the device description.

The returned description string must be freed.

Common arguments:

• dev is the device name.

Releases

5 releases since Debian 9 (Stretch); the text changed 2 times.

  1. 9–11
  2. 12
  3. 13

From libnutclient-dev 2.8.1-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.