forked from KolibriOS/kolibrios
Fix C to ASM http lib bridge
git-svn-id: svn://kolibrios.org@6898 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
7efe02d623
commit
712eb4cd4b
@ -16,15 +16,20 @@ virtual at 0
|
||||
http_msg http_msg
|
||||
end virtual
|
||||
|
||||
public init_network as '_kolibri_http_init'
|
||||
public init_network as '_init_network_asm'
|
||||
|
||||
;;; Returns 0 on success. -1 on failure.
|
||||
|
||||
proc init_network
|
||||
pusha
|
||||
mcall 68,11
|
||||
stdcall dll.Load, @IMPORT
|
||||
popa
|
||||
test eax, eax
|
||||
jnz error
|
||||
|
||||
mov eax, 0
|
||||
ret
|
||||
|
||||
error:
|
||||
mov eax, -1
|
||||
ret
|
||||
endp
|
||||
|
||||
@ -33,7 +38,7 @@ endp
|
||||
library lib_http, 'http.obj'
|
||||
|
||||
import lib_http, \
|
||||
HTTP_get , 'get' , \
|
||||
HTTP_get , 'get' , \
|
||||
HTTP_head , 'head' , \
|
||||
HTTP_post , 'post' , \
|
||||
HTTP_find_header_field , 'find_header_field' , \
|
||||
|
Loading…
Reference in New Issue
Block a user