This commit is contained in:
Rongsong Shen 2026-07-23 12:35:10 +08:00
commit ff1be48001
38 changed files with 2292 additions and 35 deletions

View file

@ -931,3 +931,33 @@ int xcecli_jobinfo(xcecli_ctx_t c, uint64_t jobid, xce_job_t** job)
rc = XCECLI_FAILOVER_CALL_COUNT(ctx, 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);
}