diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-12-14 18:18:13 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-12-15 15:26:05 +0100 |
commit | 07ba35adcbb9feb551125034f091e8d4cb4aa0e8 (patch) | |
tree | bc98ebb2f0eeb6a83ac56c81f43d053a9612ec23 /source3/libsmb | |
parent | c0f9e963b66fa8c97a4c0ea38367443dd6127509 (diff) | |
download | samba-07ba35adcbb9feb551125034f091e8d4cb4aa0e8.tar.gz samba-07ba35adcbb9feb551125034f091e8d4cb4aa0e8.tar.bz2 samba-07ba35adcbb9feb551125034f091e8d4cb4aa0e8.zip |
s3:libsmb: add tstream_cli_np_get_cli_state()
metze
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/cli_np_tstream.c | 8 | ||||
-rw-r--r-- | source3/libsmb/cli_np_tstream.h | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/source3/libsmb/cli_np_tstream.c b/source3/libsmb/cli_np_tstream.c index 1cab1ed460..409b40dab4 100644 --- a/source3/libsmb/cli_np_tstream.c +++ b/source3/libsmb/cli_np_tstream.c @@ -248,6 +248,14 @@ unsigned int tstream_cli_np_set_timeout(struct tstream_context *stream, return cli_set_timeout(cli_nps->cli, timeout); } +struct cli_state *tstream_cli_np_get_cli_state(struct tstream_context *stream) +{ + struct tstream_cli_np *cli_nps = tstream_context_data(stream, + struct tstream_cli_np); + + return cli_nps->cli; +} + struct tstream_cli_np_writev_state { struct tstream_context *stream; struct tevent_context *ev; diff --git a/source3/libsmb/cli_np_tstream.h b/source3/libsmb/cli_np_tstream.h index 01dab085e0..b7def34c48 100644 --- a/source3/libsmb/cli_np_tstream.h +++ b/source3/libsmb/cli_np_tstream.h @@ -51,4 +51,6 @@ NTSTATUS tstream_cli_np_use_trans(struct tstream_context *stream); unsigned int tstream_cli_np_set_timeout(struct tstream_context *stream, unsigned int timeout); +struct cli_state *tstream_cli_np_get_cli_state(struct tstream_context *stream); + #endif /* _CLI_NP_TSTREAM_H_ */ |