12 lines
386 B
C
12 lines
386 B
C
#ifndef DAT_FETCH_H
|
|||
|
|
#define DAT_FETCH_H
|
||
|
|
|
||
|
|
#include <stdint.h>
|
||
|
|
|
||
|
|
/* Fetch the public metadata and content feeds for a Dat key into root/.dat.
|
||
|
|
* The fetch uses the configured Cesspool network and persists verified sparse
|
||
|
|
* feed blocks so a later Dillo request can resume it. */
|
||
|
|
int dat_fetch_archive(const char *root, const uint8_t metadata_key[32],
|
||
|
|
unsigned timeout_ms);
|
||
|
|
|
||
|
|
#endif
|