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.

52 lignes
1.2 KiB

  1. #ifndef BTCLI_H
  2. #define BTCLI_H
  3. #include <err.h>
  4. #include <errno.h>
  5. #include <getopt.h>
  6. #include <inttypes.h>
  7. #include <limits.h>
  8. #include <math.h>
  9. #include <stdio.h>
  10. #include <stdlib.h>
  11. #include <string.h>
  12. #include <unistd.h>
  13. #include "btpd_if.h"
  14. #include "metainfo.h"
  15. #include "subr.h"
  16. #include "benc.h"
  17. #include "iobuf.h"
  18. #include "queue.h"
  19. extern const char *btpd_dir;
  20. extern struct ipc *ipc;
  21. void btpd_connect(void);
  22. enum ipc_err handle_ipc_res(enum ipc_err err, const char *cmd,
  23. const char *target);
  24. char tstate_char(enum ipc_tstate ts);
  25. int torrent_spec(char *arg, struct ipc_torrent *tp);
  26. void print_rate(long long rate);
  27. void print_size(long long size);
  28. void print_ratio(long long part, long long whole);
  29. void print_percent(long long part, long long whole);
  30. void usage_add(void);
  31. void cmd_add(int argc, char **argv);
  32. void usage_del(void);
  33. void cmd_del(int argc, char **argv);
  34. void usage_list(void);
  35. void cmd_list(int argc, char **argv);
  36. void usage_stat(void);
  37. void cmd_stat(int argc, char **argv);
  38. void usage_kill(void);
  39. void cmd_kill(int argc, char **argv);
  40. void usage_start(void);
  41. void cmd_start(int argc, char **argv);
  42. void usage_stop(void);
  43. void cmd_stop(int argc, char **argv);
  44. #endif