diff options
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/async_smb.h | 4 | ||||
-rw-r--r-- | source3/include/proto.h | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/source3/include/async_smb.h b/source3/include/async_smb.h index 6a09bb6001..ed42baef0d 100644 --- a/source3/include/async_smb.h +++ b/source3/include/async_smb.h @@ -90,6 +90,10 @@ struct cli_request { ssize_t received; uint8_t *rcvbuf; } read; + struct { + DATA_BLOB data; + uint16_t num_echos; + } echo; } data; /** diff --git a/source3/include/proto.h b/source3/include/proto.h index f21cc2b17f..abfc79024a 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -4338,8 +4338,11 @@ void cli_sockopt(struct cli_state *cli, const char *options); uint16 cli_setpid(struct cli_state *cli, uint16 pid); bool cli_set_case_sensitive(struct cli_state *cli, bool case_sensitive); bool cli_send_keepalive(struct cli_state *cli); -bool cli_echo(struct cli_state *cli, uint16 num_echos, - unsigned char *data, size_t length); +struct async_req *cli_echo_send(TALLOC_CTX *mem_ctx, struct event_context *ev, + struct cli_state *cli, uint16_t num_echos, + DATA_BLOB data); +NTSTATUS cli_echo_recv(struct async_req *req); +NTSTATUS cli_echo(struct cli_state *cli, uint16_t num_echos, DATA_BLOB data); /* The following definitions come from libsmb/clierror.c */ |