/* Where (if anywhere) this is mounted under DFS. */
char *dfs_mountpoint;
- struct tevent_queue *outgoing;
-
struct {
+ struct tevent_queue *outgoing;
struct tevent_req **pending;
} conn;
iov[0].iov_len = talloc_get_size(buf);
iov_count = 1;
}
- subreq = writev_send(state, state->ev, state->cli->outgoing,
+ subreq = writev_send(state, state->ev, state->cli->conn.outgoing,
state->cli->fd, false, iov, iov_count);
if (subreq == NULL) {
return NT_STATUS_NO_MEMORY;
bool cli_has_async_calls(struct cli_state *cli)
{
- return ((tevent_queue_length(cli->outgoing) != 0)
+ return ((tevent_queue_length(cli->conn.outgoing) != 0)
|| (talloc_array_length(cli->conn.pending) != 0));
}
goto error;
}
- cli->outgoing = tevent_queue_create(cli, "cli_outgoing");
- if (cli->outgoing == NULL) {
+ cli->conn.outgoing = tevent_queue_create(cli, "cli_outgoing");
+ if (cli->conn.outgoing == NULL) {
goto error;
}
cli->conn.pending = NULL;
iov[0].iov_base = state->nbt;
iov[0].iov_len = sizeof(state->nbt);
- subreq = writev_send(state, state->ev, state->cli->outgoing,
+ subreq = writev_send(state, state->ev, state->cli->conn.outgoing,
state->cli->fd, false, iov, num_iov);
if (subreq == NULL) {
return NT_STATUS_NO_MEMORY;