From e94504c0d57e0cc3f6508c489762d7ffea3242be Mon Sep 17 00:00:00 2001 From: Ashish Gupta Date: Fri, 21 Apr 2017 23:18:15 +0200 Subject: Move port for kolibrios ahead. Look at diff from master and reconcile. --- frontends/kolibrios/kolibri_http.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'frontends/kolibrios/kolibri_http.h') 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 */ -- cgit v1.2.3