A clone of btpd with my configuration changes.
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.

22 lines
477 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