blob: f6917bed26c030cb5db1bebac7e425be9a260802 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#ifndef _UPLINK_H_
#define _UPLINK_H_
#include "../types.h"
#include "globals.h"
extern dnbd3_alt_server_t *_alt_servers[SERVER_MAX_ALTS];
extern int _num_alts;
extern pthread_spinlock_t _alts_lock;
int uplink_get_matching_alt_servers(dnbd3_host_t *host, dnbd3_server_entry_t *output, int size);
int uplink_net_closeness(dnbd3_host_t *host1, dnbd3_host_t *host2);
int uplink_init(dnbd3_image_t *image);
int uplink_request(dnbd3_client_t *client, uint64_t handle, uint64_t start, uint32_t length);
void uplink_shutdown(dnbd3_image_t *image);
#endif /* UPLINK_H_ */
|