2013-11-24 17:00:12 +02:00
'\" t
. \" Title: libnutclient_devices
. \" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
. \" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
2014-04-22 21:39:47 +03:00
. \" Date: 02/15/2014
2013-11-24 17:00:12 +02:00
. \" Manual: NUT Manual
2014-04-22 21:39:47 +03:00
. \" Source: Network UPS Tools 2.7.1.5
2013-11-24 17:00:12 +02:00
. \" Language: English
. \"
2014-04-22 21:39:47 +03:00
.TH "LIBNUTCLIENT_DEVICES" "3" "02/15/2014" "Network UPS Tools 2\&.7\&.1\&." "NUT Manual"
2013-11-24 17:00:12 +02:00
. \" -----------------------------------------------------------------
. \" * Define some portability stuff
. \" -----------------------------------------------------------------
. \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
. \" http://bugs.debian.org/507673
. \" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
. \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n (.g .ds Aq \(aq
.el .ds Aq '
. \" -----------------------------------------------------------------
. \" * set default formatting
. \" -----------------------------------------------------------------
. \" disable hyphenation
.nh
. \" disable justification (adjust text to left margin only)
.ad l
. \" -----------------------------------------------------------------
. \" * MAIN CONTENT STARTS HERE *
. \" -----------------------------------------------------------------
.SH "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
.SH "SYNOPSIS"
.sp
.nf
#include <nutclient\& .h>
.fi
.sp
.nf
typedef void* NUTCLIENT_t;
.fi
.sp
.nf
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);
.fi
.SH "DESCRIPTION"
.sp
These functions allow to manage devices\& .
.sp
The \fB nutclient_get_devices()\fR function retrieve the list of devices monitored by a client\& . The returned strarr must be freed by \fI strarr_free\fR \& .
.sp
The \fB nutclient_has_device()\fR function test if a device is monitored by a client\& .
.sp
The \fB nutclient_get_device_description()\fR function retrieve the device description\& . The returned description string must be freed\& .
.sp
\fI dev\fR is the device name\& .
.SH "SEE ALSO"
.sp
\fB libnutclient\fR (3) \fB libnutclient_commands\fR (3) \fB libnutclient_devices\fR (3) \fB libnutclient_general\fR (3) \fB libnutclient_variables\fR (3)