Subversion Repositories Kolibri OS

Rev

Rev 6495 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
6422 ashmew2 1
format coff
2
use32                                   ; Tell compiler to use 32 bit instructions
3
 
4
section '.flat' code			; Keep this line before includes or GCC messes up call addresses
5
 
6459 punk_joker 6
include '../../../programs/struct.inc'
7
include '../../../programs/proc32.inc'
8
include '../../../programs/macros.inc'
6422 ashmew2 9
purge section,mov,add,sub
10
 
6459 punk_joker 11
include '../../../programs/network.inc'
12
include '../../../programs/develop/libraries/http/http.inc'
13
include '../../../programs/dll.inc'
6422 ashmew2 14
 
15
virtual at 0
16
        http_msg http_msg
17
end virtual
18
 
6495 punk_joker 19
public init_network as '_kolibri_http_init'
6422 ashmew2 20
 
21
;;; Returns 0 on success. -1 on failure.
22
 
23
proc init_network
6535 siemargl 24
	pusha
6422 ashmew2 25
	mcall 68,11
26
	stdcall dll.Load, @IMPORT
6535 siemargl 27
	popa
6422 ashmew2 28
	ret
29
endp
30
 
31
@IMPORT:
32
 
33
library lib_http,               'http.obj'
34
 
35
import  lib_http, \
36
	HTTP_get                , 'get'                 , \
37
        HTTP_head               , 'head'                , \
38
        HTTP_post               , 'post'                , \
39
        HTTP_find_header_field  , 'find_header_field'   , \
40
        HTTP_send               , 'send'                , \
41
        HTTP_receive            , 'receive'             , \
42
        HTTP_disconnect         , 'disconnect'          , \
43
        HTTP_free               , 'free'                , \
44
        HTTP_escape             , 'escape'              , \
45
        HTTP_unescape           , 'unescape'
46
 
47
public HTTP_get as '_http_get_asm'
48
public HTTP_head as '_http_head_asm'
49
public HTTP_post as '_http_post_asm'
50
public HTTP_find_header_field as '_http_find_header_field_asm'
51
public HTTP_send as '_http_send_asm'
52
public HTTP_receive as '_http_receive_asm'
53
public HTTP_disconnect as '_http_disconnect_asm'
54
public HTTP_free as '_http_free_asm'
55
public HTTP_escape as '_http_escape_asm'
56
public HTTP_unescape as '_http_unescape_asm'