summaryrefslogtreecommitdiff
path: root/frontends/kolibrios/kolibri_http.h
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/kolibrios/kolibri_http.h')
-rw-r--r--frontends/kolibrios/kolibri_http.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/frontends/kolibrios/kolibri_http.h b/frontends/kolibrios/kolibri_http.h
index c53ef9a99..9c9fea11e 100644
--- a/frontends/kolibrios/kolibri_http.h
+++ b/frontends/kolibrios/kolibri_http.h
@@ -31,7 +31,7 @@ struct http_msg{
char * content_ptr;
unsigned int content_length;
unsigned int content_received;
- unsigned int http_header;
+ char http_header;
};
/* C - assembly wrapper to initialize and load the http.obj DLL at runtime */
@@ -43,7 +43,7 @@ extern int (*http_receive_asm)(struct http_msg *) __attribute__((__stdcall__));
extern void (*http_disconnect_asm)(struct http_msg *) __attribute__((__stdcall__));
extern void (*http_free_asm)(struct http_msg *) __attribute__((__stdcall__));
extern struct http_msg* (*http_head_asm)(char *, struct http_msg *, unsigned int, char *) __attribute__((__stdcall__));
-extern struct http_post* (*http_post_asm)(char *, struct http_msg *, unsigned int, char *, char *, unsigned int) __attribute__((__stdcall__));
+extern struct http_msg* (*http_post_asm)(char *, struct http_msg *, unsigned int, char *, char *, unsigned int) __attribute__((__stdcall__));
extern int (*http_send_asm)(struct http_msg *, char *, unsigned int) __attribute__((__stdcall__));
extern char * (*http_find_header_field_asm)(struct http_msg *, char *) __attribute__((__stdcall__));
extern char * (*http_escape_asm)(char *, unsigned int) __attribute__((__stdcall__));
@@ -75,6 +75,8 @@ int kolibri_http_init(void);
#define HTTP_TIMEOUT_ERROR 1 << 19
#define HTTP_TRANSFER_FAILED 1 << 20
+#define HTTP_ERRORS 0x001F0000 /* (1 << 16) | (1 << 17) | (1 << 18) | (1 << 19) | (1 << 20) */
+
void http_send(struct http_msg *handle, char *data, int remaining_length);
#endif /* KOLIBRI_HTTP_H */