Bug 1013: Don't assume errno is between 0 and 100000
[elinks.git] / src / protocol / bittorrent / bittorrent.h
blobd9c8f40c6318128bb4dc69efad1e3bfdcf52dc55
2 #ifndef EL__PROTOCOL_BITTORRENT_BITTORRENT_H
3 #define EL__PROTOCOL_BITTORRENT_BITTORRENT_H
5 #include "main/module.h"
6 #include "network/state.h"
8 struct string;
9 struct uri;
11 extern struct module bittorrent_protocol_module;
13 uint32_t get_bittorrent_peerwire_max_message_length(void);
14 uint32_t get_bittorrent_peerwire_max_request_length(void);
16 int *get_bittorrent_selection(struct uri *uri, size_t size);
17 void add_bittorrent_selection(struct uri *uri, int *selection, size_t size);
19 void add_bittorrent_message(struct uri *uri, struct connection_state state,
20 struct string *);
22 #endif