A clone of btpd with my configuration changes.
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

29 řádky
754 B

  1. #ifndef BTPD_CONTENT_H
  2. #define BTPD_CONTENT_H
  3. void cm_init(void);
  4. int cm_start(struct torrent *tp);
  5. void cm_stop(struct torrent * tp);
  6. int cm_full(struct torrent *tp);
  7. uint8_t *cm_get_piece_field(struct torrent *tp);
  8. uint8_t *cm_get_block_field(struct torrent *tp, uint32_t piece);
  9. uint32_t cm_get_npieces(struct torrent *tp);
  10. int cm_has_piece(struct torrent *tp, uint32_t piece);
  11. int cm_put_bytes(struct torrent *tp, uint32_t piece, uint32_t begin,
  12. const uint8_t *buf, size_t len);
  13. int cm_get_bytes(struct torrent *tp, uint32_t piece, uint32_t begin,
  14. size_t len, uint8_t **buf);
  15. void cm_prealloc(struct torrent *tp, uint32_t piece);
  16. void cm_test_piece(struct torrent *tp, uint32_t piece);
  17. off_t cm_get_size(struct torrent *tp);
  18. #endif