summaryrefslogtreecommitdiff
path: root/frontends/kolibrios/kolibri_http.h
diff options
context:
space:
mode:
authorAshish Gupta <ashmew2@gmail.com>2017-04-21 23:18:15 +0200
committerAshish Gupta <ashmew2@gmail.com>2017-06-10 08:25:29 +0200
commitdbe64238302aab07de75d520f9a85fa2856e8ce7 (patch)
tree7380272e351b5f146c9331a712978c95502434f6 /frontends/kolibrios/kolibri_http.h
parentefdd93541042bcae19fb09d56d2a0a61252d0fd2 (diff)
downloadnetsurf-dbe64238302aab07de75d520f9a85fa2856e8ce7.tar.gz
netsurf-dbe64238302aab07de75d520f9a85fa2856e8ce7.tar.bz2
Move port for kolibrios ahead.
Look at diff from master and reconcile.
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 */