File: neterr.h

package info (click to toggle)
nut 2.7.2-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 10,220 kB
  • ctags: 8,034
  • sloc: ansic: 66,197; sh: 12,738; python: 2,196; cpp: 1,710; makefile: 1,335; perl: 702; xml: 10
file content (35 lines) | stat: -rw-r--r-- 1,538 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/* network error definitions for consistency */

#define NUT_ERR_ACCESS_DENIED		"ACCESS-DENIED"
#define NUT_ERR_UNKNOWN_UPS		"UNKNOWN-UPS"
#define NUT_ERR_VAR_NOT_SUPPORTED	"VAR-NOT-SUPPORTED"
#define NUT_ERR_CMD_NOT_SUPPORTED	"CMD-NOT-SUPPORTED"
#define NUT_ERR_INVALID_ARGUMENT	"INVALID-ARGUMENT"
#define NUT_ERR_INSTCMD_FAILED		"INSTCMD-FAILED"
#define NUT_ERR_SET_FAILED		"SET-FAILED"
#define NUT_ERR_READONLY		"READONLY"
#define NUT_ERR_TOO_LONG		"TOO-LONG"
#define NUT_ERR_FEATURE_NOT_SUPPORTED	"FEATURE-NOT-SUPPORTED"
#define NUT_ERR_FEATURE_NOT_CONFIGURED	"FEATURE-NOT-CONFIGURED"
#define NUT_ERR_ALREADY_SSL_MODE	"ALREADY-SSL-MODE"

/* errors which are only used by top-level upsd functions */

#define NUT_ERR_DRIVER_NOT_CONNECTED	"DRIVER-NOT-CONNECTED"
#define NUT_ERR_DATA_STALE		"DATA-STALE"
#define NUT_ERR_ALREADY_LOGGED_IN	"ALREADY-LOGGED-IN"
#define NUT_ERR_INVALID_PASSWORD	"INVALID-PASSWORD"
#define NUT_ERR_ALREADY_SET_PASSWORD	"ALREADY-SET-PASSWORD"
#define NUT_ERR_INVALID_USERNAME	"INVALID-USERNAME"
#define NUT_ERR_ALREADY_SET_USERNAME	"ALREADY-SET-USERNAME"
#define NUT_ERR_USERNAME_REQUIRED	"USERNAME-REQUIRED"
#define NUT_ERR_PASSWORD_REQUIRED	"PASSWORD-REQUIRED"
#define NUT_ERR_UNKNOWN_COMMAND		"UNKNOWN-COMMAND"

/* errors which are only used with the old functions */

#define NUT_ERR_VAR_UNKNOWN		"VAR-UNKNOWN"
#define NUT_ERR_UNKNOWN_TYPE		"UNKNOWN-TYPE"
#define NUT_ERR_UNKNOWN_INSTCMD		"UNKNOWN-INSTCMD"
#define NUT_ERR_MISSING_ARGUMENT	"MISSING-ARGUMENT"
#define NUT_ERR_INVALID_VALUE		"INVALID-VALUE"