A clone of btpd with my configuration changes.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

34 lignes
956 B

  1. #ifndef BTPD_CONTENT_H
  2. #define BTPD_CONTENT_H
  3. void cm_init(void);
  4. void cm_create(struct torrent *tp, const char *mi);
  5. void cm_kill(struct torrent *tp);
  6. void cm_start(struct torrent *tp, int force_test);
  7. void cm_stop(struct torrent * tp);
  8. int cm_active(struct torrent *tp);
  9. int cm_error(struct torrent *tp);
  10. int cm_started(struct torrent *tp);
  11. int cm_full(struct torrent *tp);
  12. off_t cm_content(struct torrent *tp);
  13. uint32_t cm_pieces(struct torrent *tp);
  14. uint8_t *cm_get_piece_field(struct torrent *tp);
  15. uint8_t *cm_get_block_field(struct torrent *tp, uint32_t piece);
  16. int cm_has_piece(struct torrent *tp, uint32_t piece);
  17. int cm_put_bytes(struct torrent *tp, uint32_t piece, uint32_t begin,
  18. const uint8_t *buf, size_t len);
  19. int cm_get_bytes(struct torrent *tp, uint32_t piece, uint32_t begin,
  20. size_t len, uint8_t **buf);
  21. void cm_prealloc(struct torrent *tp, uint32_t piece);
  22. void cm_test_piece(struct torrent *tp, uint32_t piece);
  23. #endif