💾 Archived View for gemini.rmf-dev.com › repo › Vaati › Vgmi › files › e16a8d795242f4eadc6f8777c6e6d… captured on 2023-12-28 at 15:44:54. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

Go Back

0 /*

1 * ISC License

2 * Copyright (c) 2023 RMF <rawmonk@firemail.cc>

3 */

4 enum {

5 STATE_ONGOING,

6 STATE_COMPLETED,

7 STATE_CANCELED,

8 STATE_ABANDONED,

9 STATE_FAILED,

10 STATE_ENDED

11 };

12

13 struct secure;

14 struct rect;

15

16 struct request {

17 unsigned short port;

18 int protocol;

19 char url[MAX_URL];

20 char name[MAX_URL];

21 char meta[MAX_URL];

22 void *addr;

23 char *data;

24 size_t length;

25 int state;

26 int error;

27 int scroll;

28 int selected;

29 int status;

30 struct request *next;

31 struct page page;

32 };

33

34 int request_process(struct request*, struct secure*, const char*);

35 int request_cancel(struct request*);

36 int request_scroll(struct request*, int, struct rect);

37 int request_follow(struct request*, const char*, char*, size_t);

38 int request_free(struct request*);

39 int request_free_ref(struct request req);

40