A clone of btpd with my configuration changes.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

22 行
484 B

  1. #ifndef BTPD_IF_H
  2. #define BTPD_IF_H
  3. #include <sys/types.h>
  4. #include <sys/socket.h>
  5. #include <sys/un.h>
  6. struct ipc {
  7. struct sockaddr_un addr;
  8. };
  9. int ipc_open(const char *key, struct ipc **out);
  10. int ipc_close(struct ipc *ipc);
  11. int btpd_add(struct ipc *ipc, char **path, unsigned npaths, char **out);
  12. int btpd_del(struct ipc *ipc, uint8_t (*hash)[20],
  13. unsigned nhashes, char **out);
  14. int btpd_die(struct ipc *ipc);
  15. int btpd_stat(struct ipc *ipc, char **out);
  16. #endif