diff options
author | Amitay Isaacs <amitay@gmail.com> | 2017-04-18 16:44:29 +1000 |
---|---|---|
committer | Martin Schwenke <martins@samba.org> | 2017-06-07 16:05:26 +0200 |
commit | 8e3ed87cacca41f113072d9b8eb6ff328ee73ba1 (patch) | |
tree | 612a91f0664c543a4fb083c638baf08b46530db2 /ctdb/client/client.h | |
parent | 1469cfb0bebb4a8f89f02b30a7d6ecd53e4a88da (diff) | |
download | samba-8e3ed87cacca41f113072d9b8eb6ff328ee73ba1.tar.gz |
ctdb-client: Add async api for detaching a database
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'ctdb/client/client.h')
-rw-r--r-- | ctdb/client/client.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ctdb/client/client.h b/ctdb/client/client.h index 928fcd52d29..64fe75da5a0 100644 --- a/ctdb/client/client.h +++ b/ctdb/client/client.h @@ -689,7 +689,14 @@ int ctdb_attach(struct tevent_context *ev, const char *db_name, uint8_t db_flags, struct ctdb_db_context **out); -int ctdb_detach(TALLOC_CTX *mem_ctx, struct tevent_context *ev, +struct tevent_req *ctdb_detach_send(TALLOC_CTX *mem_ctx, + struct tevent_context *ev, + struct ctdb_client_context *client, + struct timeval timeout, uint32_t db_id); + +bool ctdb_detach_recv(struct tevent_req *req, int *perr); + +int ctdb_detach(struct tevent_context *ev, struct ctdb_client_context *client, struct timeval timeout, uint32_t db_id); |