Lines Matching defs:cctx
174 struct doveadm_cmd_context cctx;
198 i_zero(&cctx);
199 cctx.conn_type = conn->conn.type;
200 cctx.input = req->input;
201 cctx.output = req->output;
205 cctx.cmd = req->cmd;
207 if ((cctx.cmd->flags & CMD_FLAG_NO_PRINT) == 0)
212 cctx.argv = array_get(&req->pargv, (unsigned int*)&cctx.argc);
216 cctx.local_ip = conn->conn.local_ip;
217 cctx.local_port = conn->conn.local_port;
218 cctx.remote_ip = conn->conn.remote_ip;
219 cctx.remote_port = conn->conn.remote_port;
221 if (doveadm_cmd_param_str(&cctx, "user", &user))
222 i_info("Executing command '%s' as '%s'", cctx.cmd->name, user);
224 i_info("Executing command '%s'", cctx.cmd->name);
225 client_connection_set_proctitle(&conn->conn, cctx.cmd->name);
226 cctx.cmd->cmd(&cctx);
234 if ((cctx.cmd->flags & CMD_FLAG_NO_PRINT) == 0)