1 // TODO: autogenerate with `enumgen.py`
2 enum Error {
3 #undef ERR_ACCESS_DENIED
4   ERR_ACCESS_DENIED = (-43),
5 #undef ERR_ALREADY_EXISTS
6   ERR_ALREADY_EXISTS = (-14),
7 #undef ERR_ALREADY_EXPIRED
8   ERR_ALREADY_EXPIRED = (-36),
9 #undef ERR_ALREADY_MOUNTED
10   ERR_ALREADY_MOUNTED = (-19),
11 #undef ERR_ALREADY_STARTED
12   ERR_ALREADY_STARTED = (-6),
13 #undef ERR_BAD_HANDLE
14   ERR_BAD_HANDLE = (-42),
15 #undef ERR_BAD_LEN
16   ERR_BAD_LEN = (-32),
17 #undef ERR_BAD_PATH
18   ERR_BAD_PATH = (-18),
19 #undef ERR_BAD_STATE
20   ERR_BAD_STATE = (-31),
21 #undef ERR_BUSY
22   ERR_BUSY = (-33),
23 #undef ERR_CANCELLED
24   ERR_CANCELLED = (-26),
25 #undef ERR_CHANNEL_CLOSED
26   ERR_CHANNEL_CLOSED = (-15),
27 #undef ERR_CHECKSUM_FAIL
28   ERR_CHECKSUM_FAIL = (-28),
29 #undef ERR_CMD_UNKNOWN
30   ERR_CMD_UNKNOWN = (-30),
31 #undef ERR_CRC_FAIL
32   ERR_CRC_FAIL = (-29),
33 #undef ERR_FAULT
34   ERR_FAULT = (-40),
35 #undef ERR_GENERIC
36   ERR_GENERIC = (-1),
37 #undef ERR_I2C_NACK
38   ERR_I2C_NACK = (-35),
39 #undef ERR_INVALID_ARGS
40   ERR_INVALID_ARGS = (-8),
41 #undef ERR_IO
42   ERR_IO = (-20),
43 #undef ERR_NOT_ALLOWED
44   ERR_NOT_ALLOWED = (-17),
45 #undef ERR_NOT_BLOCKED
46   ERR_NOT_BLOCKED = (-12),
47 #undef ERR_NOT_CONFIGURED
48   ERR_NOT_CONFIGURED = (-38),
49 #undef ERR_NOT_DIR
50   ERR_NOT_DIR = (-21),
51 #undef ERR_NOT_ENOUGH_BUFFER
52   ERR_NOT_ENOUGH_BUFFER = (-9),
53 #undef ERR_NOT_FILE
54   ERR_NOT_FILE = (-22),
55 #undef ERR_NOT_FOUND
56   ERR_NOT_FOUND = (-2),
57 #undef ERR_NOT_IMPLEMENTED
58   ERR_NOT_IMPLEMENTED = (-27),
59 #undef ERR_NOT_MOUNTED
60   ERR_NOT_MOUNTED = (-39),
61 #undef ERR_NOT_READY
62   ERR_NOT_READY = (-3),
63 #undef ERR_NOT_SUPPORTED
64   ERR_NOT_SUPPORTED = (-24),
65 #undef ERR_NOT_SUSPENDED
66   ERR_NOT_SUSPENDED = (-10),
67 #undef ERR_NOT_VALID
68   ERR_NOT_VALID = (-7),
69 #undef ERR_NO_MEMORY
70   ERR_NO_MEMORY = (-5),
71 #undef ERR_NO_MSG
72   ERR_NO_MSG = (-4),
73 #undef ERR_NO_RESOURCES
74   ERR_NO_RESOURCES = (-41),
75 #undef ERR_OBJECT_DESTROYED
76   ERR_OBJECT_DESTROYED = (-11),
77 #undef ERR_OFFLINE
78   ERR_OFFLINE = (-16),
79 #undef ERR_OUT_OF_RANGE
80   ERR_OUT_OF_RANGE = (-37),
81 #undef ERR_PARTIAL_WRITE
82   ERR_PARTIAL_WRITE = (-44),
83 #undef ERR_RECURSE_TOO_DEEP
84   ERR_RECURSE_TOO_DEEP = (-23),
85 #undef ERR_THREAD_DETACHED
86   ERR_THREAD_DETACHED = (-34),
87 #undef ERR_TIMED_OUT
88   ERR_TIMED_OUT = (-13),
89 #undef ERR_TOO_BIG
90   ERR_TOO_BIG = (-25),
91 #undef ERR_USER_BASE
92   ERR_USER_BASE = (-16384),
93 #undef NO_ERROR
94   NO_ERROR = (0),
95 };