Subversion Repositories Kolibri OS

Rev

Rev 8339 | Rev 8839 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8339 Rev 8392
Line 1... Line 1...
1
#define MEMSIZE 1024*50
1
#define MEMSIZE 1024*50
Line 2... Line -...
2
 
-
 
3
#include "../lib/io.h"
2
 
4
#include "../lib/gui.h"
3
#include "../lib/gui.h"
Line 5... Line 4...
5
#include "../lib/copyf.h"
4
#include "../lib/copyf.h"
6
 
-
 
7
#include "../lib/obj/libini.h"
5
 
8
#include "../lib/obj/libio.h"
6
#include "../lib/obj/libini.h"
9
#include "../lib/obj/libimg.h"
7
#include "../lib/obj/libimg.h"
Line 10... Line 8...
10
#include "../lib/obj/http.h"
8
#include "../lib/obj/http.h"
Line 56... Line 54...
56
 
54
 
57
void main()
55
void main()
58
{
56
{
59
	int btn;
57
	int btn;
60
	sensor progress;
-
 
61
	load_dll(libio, #libio_init,1);
58
	sensor progress;
62
	load_dll(libimg, #libimg_init,1);
59
	load_dll(libimg, #libimg_init,1);
63
	load_dll(libHTTP,   #http_lib_init,1);
60
	load_dll(libHTTP,   #http_lib_init,1);
64
	@SetEventMask(EVM_REDRAW + EVM_KEY + EVM_BUTTON + EVM_STACK);
61
	@SetEventMask(EVM_REDRAW + EVM_KEY + EVM_BUTTON + EVM_STACK);
65
	loop() switch(@WaitEventTimeout(300))
62
	loop() switch(@WaitEventTimeout(300))
Line 125... Line 122...
125
dword GetFreeSpaceOfRamdisk()
122
dword GetFreeSpaceOfRamdisk()
126
{
123
{
127
	dword rdempty = malloc(1440*1024);
124
	dword rdempty = malloc(1440*1024);
128
	CreateFile(0, 1440*1024, rdempty, "/rd/1/rdempty");
125
	CreateFile(0, 1440*1024, rdempty, "/rd/1/rdempty");
129
	free(rdempty);
126
	free(rdempty);
130
	file_size stdcall ("/rd/1/rdempty");
127
	rdempty = get_file_size("/rd/1/rdempty");
131
	rdempty = EBX;
-
 
132
	DeleteFile("/rd/1/rdempty");
128
	DeleteFile("/rd/1/rdempty");
133
	return rdempty;
129
	return rdempty;
134
}
130
}
Line 135... Line 131...
135
 
131