.disconnect_send = tstream_cli_np_disconnect_send,
.disconnect_recv = tstream_cli_np_disconnect_recv,
};
-
-NTSTATUS _tstream_cli_np_existing(TALLOC_CTX *mem_ctx,
- struct cli_state *cli,
- uint16_t fnum,
- struct tstream_context **_stream,
- const char *location)
-{
- struct tstream_context *stream;
- struct tstream_cli_np *cli_nps;
-
- stream = tstream_context_create(mem_ctx,
- &tstream_cli_np_ops,
- &cli_nps,
- struct tstream_cli_np,
- location);
- if (!stream) {
- return NT_STATUS_NO_MEMORY;
- }
- ZERO_STRUCTP(cli_nps);
-
- cli_nps->cli = cli;
- cli_nps->fnum = fnum;
-
- *_stream = stream;
- return NT_STATUS_OK;
-}
#define tstream_cli_np_open_recv(req, mem_ctx, stream) \
_tstream_cli_np_open_recv(req, mem_ctx, stream, __location__)
-NTSTATUS _tstream_cli_np_existing(TALLOC_CTX *mem_ctx,
- struct cli_state *cli,
- uint16_t fnum,
- struct tstream_context **_stream,
- const char *location);
-#define tstream_cli_np_existing(mem_ctx, cli, npipe, stream) \
- _tstream_cli_np_existing(mem_ctx, cli, npipe, stream, __location__)
-
bool tstream_is_cli_np(struct tstream_context *stream);
NTSTATUS tstream_cli_np_use_trans(struct tstream_context *stream);