diff options
| author | Richard Nyberg <rnyberg@murmeldjur.se> | 2005-06-24 09:51:38 +0000 |
|---|---|---|
| committer | Richard Nyberg <rnyberg@murmeldjur.se> | 2005-06-24 09:51:38 +0000 |
| commit | dd0d462afae75ff243f8cd1528963f9ad489706d (patch) | |
| tree | 2ef874a1fe5212245814d16f4c9b389524aed9d1 /cli/btpd_if.h | |
| download | btpd-dd0d462afae75ff243f8cd1528963f9ad489706d.tar.gz btpd-dd0d462afae75ff243f8cd1528963f9ad489706d.zip | |
Import btpd-0.1.
git-svn-id: file:///home/rnyberg/svngit/btpd/releases/0.1@1 76a1f634-46fa-0310-9943-bd1476092a85
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 |