Verify bittorrent .torrent metainfo files.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
362B

  1. #ifndef VERIFY_H
  2. #define VERIFY_H
  3. #include "metainfo.h"
  4. /* Verify torrent files here */
  5. /*
  6. * Verify files inside a torrent file
  7. * If append folder is 1, and torrent is a multifile one,
  8. * the torrent's name will be appended to data_dir
  9. * Returns 0 if success, -num if error
  10. */
  11. int verify(metainfo_t* metai, const char* data_dir, int append_folder);
  12. #endif