2018-08-11 06:53:53 +00:00
|
|
|
#ifndef NETDISKERROR_H
|
|
|
|
#define NETDISKERROR_H
|
|
|
|
|
|
|
|
enum NetDiskError {
|
|
|
|
OPERATION_SUCCESSFUL = 0,
|
2018-08-12 23:45:08 +00:00
|
|
|
|
2018-08-13 01:51:09 +00:00
|
|
|
NETDISK_NOT_PRESENT = 100,
|
|
|
|
DISK_ALREADY_MOUNTED,
|
|
|
|
NO_DIBS_AVAILABLE,
|
2018-08-12 23:45:08 +00:00
|
|
|
OUT_OF_MEMORY,
|
2018-08-11 06:53:53 +00:00
|
|
|
|
|
|
|
/* SetURL errors */
|
2018-08-12 23:45:08 +00:00
|
|
|
URL_TOO_LONG = 200,
|
2018-08-11 06:53:53 +00:00
|
|
|
INVALID_CHARACTER_IN_URL,
|
|
|
|
BAD_URL_SYNTAX,
|
|
|
|
UNSUPPORTED_URL_SCHEME,
|
|
|
|
AUTHENTICATION_NOT_SUPPORTED,
|
|
|
|
FRAGMENT_NOT_SUPPORTED,
|
|
|
|
INVALID_PORT_NUMBER,
|
|
|
|
NO_HOST_SPECIFIED,
|
|
|
|
IPV6_NOT_SUPPORTED,
|
|
|
|
HOSTNAME_TOO_LONG,
|
|
|
|
NAME_LOOKUP_FAILED,
|
|
|
|
|
|
|
|
/* StartTCPConnection and DoHTTPRequest errors */
|
2018-08-12 23:45:08 +00:00
|
|
|
NETWORK_ERROR = 300,
|
2018-08-11 06:53:53 +00:00
|
|
|
NO_RESPONSE,
|
|
|
|
INVALID_RESPONSE,
|
|
|
|
EXCESSIVE_REDIRECTS,
|
|
|
|
UNSUPPORTED_RESPONSE,
|
|
|
|
UNSUPPORTED_HEADER_VALUE,
|
|
|
|
REDIRECT_ERROR,
|
|
|
|
NOT_DESIRED_CONTENT,
|
|
|
|
DIFFERENT_LENGTH, /* Might be considered successful later */
|
|
|
|
|
2018-08-12 23:45:08 +00:00
|
|
|
/* Error values of 4xx and 5xx mean we got the corresponding HTTP error */
|
|
|
|
HTTP_ERROR = 400,
|
|
|
|
|
2018-08-11 06:53:53 +00:00
|
|
|
/* File format errors */
|
2018-08-12 23:45:08 +00:00
|
|
|
UNSUPPORTED_2IMG_FILE = 600,
|
2018-08-13 06:28:32 +00:00
|
|
|
NOT_MULTIPLE_OF_BLOCK_SIZE
|
2018-08-11 06:53:53 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|