forked from KolibriOS/kolibrios
fix Liza
git-svn-id: svn://kolibrios.org@7283 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
873fc290d5
commit
0774269503
@ -28,6 +28,7 @@
|
||||
#include "..\lib\patterns\http_downloader.h"
|
||||
|
||||
_http http = {0, 0, 0, 0, 0, 0, 0};
|
||||
DOWNLOADER downloader;
|
||||
|
||||
char homepage[] = FROM "html\\homepage.htm""\0";
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
dword libHTTP = #alibHTTP;
|
||||
char alibHTTP[] = "/sys/lib/http.obj";
|
||||
|
||||
dword http_lib_init = #aLib_init;
|
||||
dword http_lib_init = #aHTTPinit;
|
||||
dword http_get = #aHTTPget;
|
||||
dword http_head = #aHTTPhead;
|
||||
dword http_post = #aHTTPpost;
|
||||
@ -25,7 +25,7 @@ dword uri_escape = #aURIescape;
|
||||
dword uri_unescape = #aURIunescape;
|
||||
$DD 2 dup 0
|
||||
|
||||
char aLib_init[] = "lib_init";
|
||||
char aHTTPinit[] = "lib_init";
|
||||
char aHTTPget[] = "get";
|
||||
char aHTTPhead[] = "head";
|
||||
char aHTTPpost[] = "post";
|
||||
|
@ -12,7 +12,7 @@
|
||||
dword network_lib = #a_network_lib;
|
||||
char a_network_lib[]="/sys/lib/network.obj";
|
||||
|
||||
dword network_lib_init = #aLib_init;
|
||||
dword network_lib_init = #aInet_init;
|
||||
dword inet_addr = #aInet_addr; //"192.168.0.1" -> dword IP
|
||||
dword inet_ntoa = #aInet_ntoa;
|
||||
dword getaddrinfo = #aGetaddrinfo;
|
||||
@ -22,7 +22,7 @@ dword getaddrinfo_abort = #aGetaddrinfo_abort;
|
||||
dword freeaddrinfo = #aFreeaddrinfo;
|
||||
$DD 2 dup 0
|
||||
|
||||
char aLib_init[] = "lib_init";
|
||||
char aInet_init[] = "lib_init";
|
||||
char aInet_addr[] = "inet_addr";
|
||||
char aInet_ntoa[] = "inet_ntoa";
|
||||
char aGetaddrinfo[] = "getaddrinfo";
|
||||
|
@ -90,7 +90,7 @@ struct DOWNLOADER {
|
||||
dword Start();
|
||||
void Stop();
|
||||
bool MonitorProgress();
|
||||
} downloader;
|
||||
};
|
||||
|
||||
dword DOWNLOADER::Start(dword _url)
|
||||
{
|
||||
|
@ -16,20 +16,22 @@
|
||||
//*.obj libraries
|
||||
#include "../lib/obj/box_lib.h"
|
||||
#include "../lib/obj/network.h"
|
||||
#include "../lib/obj/http.h"
|
||||
#include "../lib/obj/libio.h"
|
||||
#include "../lib/obj/libimg.h"
|
||||
#include "../lib/obj/netcode.h"
|
||||
#include "../lib/obj/iconv.h"
|
||||
//patternts
|
||||
#include "..\lib\patterns\history.h"
|
||||
#include "../lib/patterns/history.h"
|
||||
#include "../lib/patterns/http_downloader.h"
|
||||
//images
|
||||
byte letter_icons[sizeof(file "img/letter_icons.raw")] = FROM "img/letter_icons.raw";
|
||||
#include "img/letter_icons.h"
|
||||
|
||||
struct mockup
|
||||
{
|
||||
dword transfer;
|
||||
} http = {0};
|
||||
_http http = {0};
|
||||
bool old_tag_parser_mode = false;
|
||||
bool debug_mode = false;
|
||||
char accept_language[]= "Accept-Language: ru\n";
|
||||
|
||||
//connection algorithm
|
||||
enum {
|
||||
|
Loading…
Reference in New Issue
Block a user