Init commit of jobs output/error message peek project.
This commit is contained in:
parent
c772d7e601
commit
d2b47e3985
38 changed files with 2267 additions and 21 deletions
|
|
@ -673,3 +673,33 @@ int xcecli_jobinfo(xcecli_ctx_t c, uint64_t jobid, xce_job_t** job)
|
|||
rc = xce_jobinfo(&(ctx->ctx), jobid, job);
|
||||
return rc;
|
||||
}
|
||||
|
||||
int xcecli_reply_fetchfile(xcecli_ctx_t c, xce_request_t* request,
|
||||
xce_fetchfile_reply_t* freply)
|
||||
{
|
||||
api_ctx_t* ctx = (api_ctx_t*)c;
|
||||
xce_reply_t reply;
|
||||
|
||||
if ((ctx == NULL) || (request == NULL) || (freply == NULL)) {
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
init_reply_by_req(&reply, request);
|
||||
reply.status = freply->error;
|
||||
reply.data_which = RequestReply_data_fetchfilereply;
|
||||
reply.data.fetchfilereply = freply;
|
||||
|
||||
return xce_reply(&(ctx->ep), &(ctx->ctx.myinfo), &reply);
|
||||
}
|
||||
|
||||
int xcecli_fetchfile(xcecli_ctx_t c, xce_fetchfile_t* msg,
|
||||
xce_fetchfile_reply_t** reply)
|
||||
{
|
||||
api_ctx_t* ctx = (api_ctx_t*)c;
|
||||
|
||||
if ((ctx == NULL) || (msg == NULL) || (reply == NULL)) {
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
return xce_fetchfile(&(ctx->ctx), msg, reply);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue