Rev 5725 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5725 | Rev 5731 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | }http_t; |
24 | }http_t; |
Line 25... | Line 25... | ||
25 | 25 | ||
26 | int http_init(); |
26 | int http_init(); |
Line 27... | Line 27... | ||
27 | int http_load(char *buf, const char *path); |
27 | int http_load(char *buf, const char *path); |
28 | 28 | ||
29 | http_t* __attribute__ ((stdcall)) http_get(const char *url, http_t *conn, int flags, const char *header); |
29 | http_t* __stdcall http_get(const char *url, http_t *conn, int flags, const char *header); |
Line 30... | Line 30... | ||
30 | int __attribute__ ((stdcall)) http_receive(http_t *conn); |
30 | int __stdcall http_receive(http_t *conn); |
31 | void __attribute__ ((stdcall)) http_free(http_t *conn); |
31 | void __stdcall http_free(http_t *conn); |
32 | 32 | ||
Line 33... | Line 33... | ||
33 | static inline int http_receive_with_retry(http_t *http, int retry_count) |
33 | static inline int http_receive_with_retry(http_t *http, int retry_count) |
34 | { |
34 | { |
35 | int err; |
35 | int err; |
- | 36 | ||
36 | 37 | do |
|
Line 37... | Line 38... | ||
37 | do |
38 | { |
Line 38... | Line 39... | ||
38 | { |
39 | err = http_receive(http); |
39 | if(err = http_receive(http)) |
40 | if(err) |
Line -... | Line 41... | ||
- | 41 | wait_for_event(1); |
|
- | 42 | ||
- | 43 | }while(err && --retry_count); |
|
- | 44 | ||
- | 45 | return err; |
|
- | 46 | } |
|
- | 47 | ||
- | 48 | void __stdcall con_init(unsigned w_w, unsigned w_h, unsigned s_w, unsigned s_h, const char* t); |
|
40 | delay(1); |
49 | void __stdcall con_exit(char bCloseWindow); |