diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-03-25 15:00:38 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-03-29 18:11:16 +0200 |
commit | 4f41b53487ac9bc96c7960e8edab464558656373 (patch) | |
tree | 50a7e9cd9752249821e384ee35d0a8b6e3466622 /source3/include | |
parent | dc09b12681ea0e6d4c2b0f1c99dfeb1f23019c65 (diff) | |
download | samba-4f41b53487ac9bc96c7960e8edab464558656373.tar.gz samba-4f41b53487ac9bc96c7960e8edab464558656373.tar.bz2 samba-4f41b53487ac9bc96c7960e8edab464558656373.zip |
s3:rpc_client: add rpccli_is_connected()
metze
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/client.h | 3 | ||||
-rw-r--r-- | source3/include/proto.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/source3/include/client.h b/source3/include/client.h index 72cea4a82c..c8b90634d4 100644 --- a/source3/include/client.h +++ b/source3/include/client.h @@ -110,6 +110,9 @@ struct rpc_cli_transport { */ NTSTATUS (*trans_recv)(struct tevent_req *req, TALLOC_CTX *mem_ctx, uint8_t **prdata, uint32_t *prdata_len); + + bool (*is_connected)(void *priv); + void *priv; }; diff --git a/source3/include/proto.h b/source3/include/proto.h index 96ca32e228..a70707b809 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -5291,6 +5291,7 @@ NTSTATUS rpc_pipe_bind(struct rpc_pipe_client *cli, struct cli_pipe_auth_data *auth); unsigned int rpccli_set_timeout(struct rpc_pipe_client *cli, unsigned int timeout); +bool rpccli_is_connected(struct rpc_pipe_client *rpc_cli); bool rpccli_get_pwd_hash(struct rpc_pipe_client *cli, uint8_t nt_hash[16]); NTSTATUS rpccli_anon_bind_data(TALLOC_CTX *mem_ctx, struct cli_pipe_auth_data **presult); |