Init commit of jobs output/error message peek project.

This commit is contained in:
Lei Chen 2026-05-09 16:57:54 +08:00
parent c772d7e601
commit d2b47e3985
38 changed files with 2267 additions and 21 deletions

View file

@ -935,3 +935,26 @@ int xce_clear_reason_req(endpoint_t* ep, xce_clear_reason_t* reason)
return xce_request(ep, &request);
}
int xce_fetchfile_req(endpoint_t* ep, xce_fetchfile_t* msg)
{
/* clang-format off */
xce_request_t request = {
.opcode = OPCode_fetchfile,
.body_which = Request_body_fetchfilemsg,
.body = {
.fetchfilemsg = msg
}
};
/* clang-format on */
if ((ep == NULL) || (msg == NULL)) {
return -EINVAL;
}
if (msg->filepath == NULL || msg->filepath[0] == '\0') {
return -EINVAL;
}
return xce_request(ep, &request);
}