table of contents
- Tumbleweed 2.8.3-1.1
- Leap-16.0
- Leap-15.6
LIBNUTCLIENT_VARIABL(3) | NUT Manual | LIBNUTCLIENT_VARIABL(3) |
NAME¶
libnutclient_variables, nutclient_get_device_variables, nutclient_get_device_rw_variables, nutclient_has_device_variable, nutclient_get_device_variable_description, nutclient_get_device_variable_values, nutclient_set_device_variable_value, nutclient_set_device_variable_values - Variable related functions in Network UPS Tools high-level client access library
SYNOPSIS¶
#include <nutclient.h>
typedef void* NUTCLIENT_t;
typedef char** strarr;
strarr nutclient_get_device_variables(NUTCLIENT_t client,
const char* dev);
strarr nutclient_get_device_rw_variables(NUTCLIENT_t client,
const char* dev);
int nutclient_has_device_variable(NUTCLIENT_t client,
const char* dev, const char* var);
char* nutclient_get_device_variable_description(NUTCLIENT_t client,
const char* dev, const char* var);
strarr nutclient_get_device_variable_values(NUTCLIENT_t client,
const char* dev, const char* var);
void nutclient_set_device_variable_value(NUTCLIENT_t client,
const char* dev, const char* var, const char* value);
void nutclient_set_device_variable_values(NUTCLIENT_t client,
const char* dev, const char* var, const strarr values);
DESCRIPTION¶
These functions allow to manage variables of devices.
The returned strarr must be freed by strarr_free (see libnutclient_general(3)).
The returned strarr must be freed by strarr_free (see libnutclient_general(3)).
Return 1 if supported and 0 if not.
The returned string must be freed by free(3).
The returned strarr must be freed by strarr_free (see libnutclient_general(3)).
Common arguments:
SEE ALSO¶
libnutclient(3) libnutclient_devices(3) libnutclient_general(3)
07/03/2025 | Network UPS Tools 2.8.3 |