Commit 76103f61 authored by Thomas Milius's avatar Thomas Milius
Browse files

Replace module because of errors extracted to a separate file

parent ee8daa85
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
#include "dns.h" #include "dns.h"
#include "config.h" #include "config.h"
#include "security.h" #include "security.h"
#include "Httperror.h"
static volatile int callback_pending_flag = 0; static volatile int callback_pending_flag = 0;
...@@ -58,31 +59,6 @@ int __errno; ...@@ -58,31 +59,6 @@ int __errno;
#endif #endif
#endif #endif
/*************************************************************/
/* So the real error number that we have to return is: */
/*************************************************************/
#define HTTP_ERROR_NUM (ERROR_BASE+HTTP_OFFSET)
/*************************************************************/
/* The error message definitions */
/*************************************************************/
typedef enum {
HTTP_HOST_NOT_FOUND = HTTP_ERROR_NUM + 0, /* DNS lookup failed */
HTTP_HOST_CONNECT_ERROR = HTTP_ERROR_NUM + 1, /* connect() failed */
HTTP_DATA_READ_ERROR = HTTP_ERROR_NUM + 2, /* unexpected read error on socket */
HTTP_GENERAL_ERROR = HTTP_ERROR_NUM + 3, /* Misc. - not helpful */
HTTP_BAD_SESSION_ERROR = HTTP_ERROR_NUM + 4, /* Failed to locate session in session table */
HTTP_CONNECTION_FAILED = HTTP_ERROR_NUM + 5, /* Failed to establish connection */
HTTP_METHOD_UNSUPPORTED = HTTP_ERROR_NUM + 6, /* Unknown method in R2 */
HTTP_METHOD_INIT_ERR = HTTP_ERROR_NUM + 7, /* Failed to start a fetch completely */
HTTP_BAD_URL_PARSE = HTTP_ERROR_NUM + 8, /* Unable to parse URL (URL module too old?) */
HTTP_PROXY_NOT_FOUND = HTTP_ERROR_NUM + 9, /* Unable to contact the proxy */
HTTP_NO_SECURITY = HTTP_ERROR_NUM + 10 /* No SSL support present */
} http_internal_error_codes;
/* Sets clibrary_realloc_routine_is_buggy non-zero if RISC OS 3.1 or earlier (ie. ROM realloc is broken) */ /* Sets clibrary_realloc_routine_is_buggy non-zero if RISC OS 3.1 or earlier (ie. ROM realloc is broken) */
static int clibrary_realloc_routine_is_buggy; static int clibrary_realloc_routine_is_buggy;
static void module_check_os_version(void) static void module_check_os_version(void)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment