16 off_t in_order
, out_order
;
19 /* TODO: zjistit proc curl potrbeuje funkcni ptr na range az do konce provedeni requestu */
24 pthread_mutex_t async_lock
;
28 int request(CURL
*conn
, char *url
, int head
, struct stat
*st
, struct grow
*data
, size_t size
, off_t offset
);
29 int request_open_async(struct handle
*h
, off_t offset
, size_t size
);
30 void request_close_async(struct handle
*h
);
31 int request_perf_async(struct handle
*h
, size_t todo
, int *done
);
32 #define request_done(h) (!(h)->mult)