torrent-verifier/src/verify.h

15 lines
362 B
C
Raw Normal View History

2021-05-02 21:19:33 +02:00
#ifndef VERIFY_H
#define VERIFY_H
#include "metainfo.h"
/* Verify torrent files here */
/*
* Verify files inside a torrent file
* If append folder is 1, and torrent is a multifile one,
* the torrent's name will be appended to data_dir
* Returns 0 if success, -num if error
*/
int verify(metainfo_t* metai, const char* data_dir, int append_folder);
#endif