From 6ba8c105c541636ee79e20eb7c5547ed6d8117e2 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 9 Sep 2008 14:37:17 +0200 Subject: Add utility function cli_in_chain() This gives a hint whether a function is called from within the middle of a chain. In particular the trans calls don't really like this. (This used to be commit 4252b32db5ef7483f2c5c52312b6e6dc68d1d687) --- source3/include/async_smb.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source3/include/async_smb.h') diff --git a/source3/include/async_smb.h b/source3/include/async_smb.h index e9e10023e3..4e2061813f 100644 --- a/source3/include/async_smb.h +++ b/source3/include/async_smb.h @@ -124,6 +124,7 @@ struct async_req *cli_request_send(TALLOC_CTX *mem_ctx, bool cli_chain_cork(struct cli_state *cli, struct event_context *ev, size_t size_hint); void cli_chain_uncork(struct cli_state *cli); +bool cli_in_chain(struct cli_state *cli); NTSTATUS cli_pull_reply(struct async_req *req, uint8_t *pwct, uint16_t **pvwv, -- cgit