mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
remote: Generate virDomainGetBlockPullInfo
It was already generatable but skipped.
This commit is contained in:
parent
7ea9778c8a
commit
6be35f5fef
@ -1737,42 +1737,6 @@ cleanup:
|
||||
return rv;
|
||||
}
|
||||
|
||||
static int
|
||||
remoteDispatchDomainGetBlockPullInfo(struct qemud_server *server ATTRIBUTE_UNUSED,
|
||||
struct qemud_client *client ATTRIBUTE_UNUSED,
|
||||
virConnectPtr conn,
|
||||
remote_message_header *hdr ATTRIBUTE_UNUSED,
|
||||
remote_error * rerr,
|
||||
remote_domain_get_block_pull_info_args *args,
|
||||
remote_domain_get_block_pull_info_ret *ret)
|
||||
{
|
||||
virDomainPtr dom = NULL;
|
||||
virDomainBlockPullInfo tmp;
|
||||
int rv = -1;
|
||||
|
||||
if (!conn) {
|
||||
virNetError(VIR_ERR_INTERNAL_ERROR, "%s", _("connection not open"));
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
if (!(dom = get_nonnull_domain(conn, args->dom)))
|
||||
goto cleanup;
|
||||
|
||||
if (virDomainGetBlockPullInfo(dom, args->path, &tmp, args->flags) < 0)
|
||||
goto cleanup;
|
||||
ret->cur = tmp.cur;
|
||||
ret->end = tmp.end;
|
||||
rv = 0;
|
||||
|
||||
cleanup:
|
||||
if (rv < 0)
|
||||
remoteDispatchError(rerr);
|
||||
if (dom)
|
||||
virDomainFree(dom);
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
||||
/*-------------------------------------------------------------*/
|
||||
|
||||
static int
|
||||
|
@ -2671,38 +2671,6 @@ done:
|
||||
return rv;
|
||||
}
|
||||
|
||||
static int remoteDomainGetBlockPullInfo(virDomainPtr domain,
|
||||
const char *path,
|
||||
virDomainBlockPullInfoPtr info,
|
||||
unsigned int flags)
|
||||
{
|
||||
int rv = -1;
|
||||
remote_domain_get_block_pull_info_args args;
|
||||
remote_domain_get_block_pull_info_ret ret;
|
||||
struct private_data *priv = domain->conn->privateData;
|
||||
|
||||
remoteDriverLock(priv);
|
||||
|
||||
make_nonnull_domain(&args.dom, domain);
|
||||
args.path = (char *)path;
|
||||
args.flags = flags;
|
||||
|
||||
if (call(domain->conn, priv, 0, REMOTE_PROC_DOMAIN_GET_BLOCK_PULL_INFO,
|
||||
(xdrproc_t)xdr_remote_domain_get_block_pull_info_args,
|
||||
(char *)&args,
|
||||
(xdrproc_t)xdr_remote_domain_get_block_pull_info_ret,
|
||||
(char *)&ret) == -1)
|
||||
goto done;
|
||||
|
||||
info->cur = ret.cur;
|
||||
info->end = ret.end;
|
||||
rv = 0;
|
||||
|
||||
done:
|
||||
remoteDriverUnlock(priv);
|
||||
return rv;
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
static virDrvOpenStatus ATTRIBUTE_NONNULL (1)
|
||||
|
@ -1003,7 +1003,7 @@ struct remote_domain_get_block_pull_info_args {
|
||||
unsigned int flags;
|
||||
};
|
||||
|
||||
struct remote_domain_get_block_pull_info_ret {
|
||||
struct remote_domain_get_block_pull_info_ret { /* insert@2 */
|
||||
unsigned hyper cur;
|
||||
unsigned hyper end;
|
||||
};
|
||||
@ -2420,7 +2420,7 @@ enum remote_procedure {
|
||||
REMOTE_PROC_DOMAIN_BLOCK_PULL_ALL = 230, /* autogen autogen */
|
||||
|
||||
REMOTE_PROC_DOMAIN_BLOCK_PULL_ABORT = 231, /* autogen autogen */
|
||||
REMOTE_PROC_DOMAIN_GET_BLOCK_PULL_INFO = 232, /* skipgen skipgen */
|
||||
REMOTE_PROC_DOMAIN_GET_BLOCK_PULL_INFO = 232, /* autogen autogen */
|
||||
REMOTE_PROC_DOMAIN_EVENT_BLOCK_PULL = 233, /* skipgen skipgen */
|
||||
REMOTE_PROC_DOMAIN_GET_CONTROL_INFO = 234 /* autogen autogen */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user