diff options
Diffstat (limited to 'cli/btpd_if.h')
| -rw-r--r-- | cli/btpd_if.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/cli/btpd_if.h b/cli/btpd_if.h new file mode 100644 index 0000000..bda9739 --- /dev/null +++ b/cli/btpd_if.h @@ -0,0 +1,21 @@ +#ifndef BTPD_IF_H +#define BTPD_IF_H + +#include <sys/types.h> +#include <sys/socket.h> +#include <sys/un.h> + +struct ipc { + struct sockaddr_un addr; +}; + +int ipc_open(const char *key, struct ipc **out); +int ipc_close(struct ipc *ipc); + +int btpd_add(struct ipc *ipc, char **path, unsigned npaths, char **out); +int btpd_del(struct ipc *ipc, uint8_t (*hash)[20], + unsigned nhashes, char **out); +int btpd_die(struct ipc *ipc); +int btpd_stat(struct ipc *ipc, char **out); + +#endif |