blob: bda97390fb8a226437fbcf0fb806cf4875a91498 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
|