libnutclient_devices(3)

libnutclient_devices3

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

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 (see libnutclient_general(3)).

• 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 by free(3).

Common arguments:

• dev is the device name.

Releases

6 releases since Debian 9 (Stretch); the text changed 3 times.

  1. 9–11
  2. 12
  3. 13
  4. Arch

From nut 2.8.5-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.