1 /* netuser.c - LOGIN/LOGOUT/USERNAME/PASSWORD/MASTER[PRIMARY] handlers for upsd
4 2003 Russell Kroll <rkroll@exploits.org>
5 2005 Arnaud Quette <arnaud.quette@free.fr>
6 2007 Peter Selinger <selinger@users.sourceforge.net>
7 2013 Emilien Kia <kiae.dev@gmail.com>
8 2020-2021 Jim Klimov <jimklimov@gmail.com>
10 This program is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 2 of the License, or
13 (at your option) any later version.
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 #ifndef NUT_NETUSER_H_SEEN
26 #define NUT_NETUSER_H_SEEN 1
34 void net_login(nut_ctype_t
*client
, size_t numarg
, const char **arg
);
35 void net_logout(nut_ctype_t
*client
, size_t numarg
, const char **arg
);
37 /* NOTE: Since NUT 2.8.0 we handle master as alias for primary
38 * Header keyword kept for building older consumers, but
39 * the implementation will warn that it is deprecated.
41 void net_master(nut_ctype_t
*client
, size_t numarg
, const char **arg
);
42 void net_primary(nut_ctype_t
*client
, size_t numarg
, const char **arg
);
44 void net_username(nut_ctype_t
*client
, size_t numarg
, const char **arg
);
45 void net_password(nut_ctype_t
*client
, size_t numarg
, const char **arg
);
53 #endif /* NUT_NETUSER_H_SEEN */