LIBNUTCLIENT_DEVICES(3)
π LIBNUTCLIENT_DEVICES π
okay so bestie, this is a page from the NUT Manual (that's Network UPS Tools, not the other kind of nut, stay focused π
). We're in libnutclient_devices territory β the device-related functions in the Network UPS Tools high-level client access library. Grab a snack, this one's short and sweet. π
β¨ NAME β¨
libnutclient_devices, nutclient_get_devices, nutclient_has_device, nutclient_get_device_description β device 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_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);
like. the whole squad is right there in the header. iconic. π
β¨ DESCRIPTION β¨
These functions let you manage devices. That's the vibe. That's the whole assignment. πΈ
- The
nutclient_get_devices()function retrieves the list of devices monitored by a client. π
the returnedstrarrmust be freed bystrarr_free(peeplibnutclient_general(3)) β no cap, if you don't free it that memory is just gone, bestie. π
- The
nutclient_has_device()function tests if a device is monitored by a client. Like a lil vibe check for devices. β - The
nutclient_get_device_description()function retrieves the device description. π
the returned description string must be freed byfree(3). yes, this one uses plainfree, notstrarr_free. they're different, don't @ me, that's just the lore. π
π Common arguments π
devis the device name. π·οΈ
β¨ SEE ALSO β¨
libnutclient(3)libnutclient_commands(3)libnutclient_devices(3)libnutclient_general(3)libnutclient_variables(3)
and that's the whole page, bestie, you ate it fr fr π₯ go forth and monitor your devices. this was Network UPS Tools 2.8.5, dated 10/07/2026 β mwah, sending you the biggest π«Ά π β¨
π¦ where this page comes from
- fedora 43: nut-devel 2.8.5-9.fc43 Β· GPL-2.0-or-later AND GPL-3.0-or-later
- fedora 43: nut-devel 2.8.5-9.fc43 Β· GPL-2.0-or-later AND GPL-3.0-or-later
- fedora 44: nut-devel 2.8.5-9.fc44 Β· GPL-2.0-or-later AND GPL-3.0-or-later
- fedora 44: nut-devel 2.8.5-9.fc44 Β· GPL-2.0-or-later AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms