mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
snapshot: RPC for new query APIs
Pretty straightforward. * src/remote/remote_protocol.x (remote_domain_snapshot_is_current_args) (remote_domain_snapshot_is_current_ret) (remote_domain_snapshot_has_metadata_args) (remote_domain_snapshot_has_metadata_ret): New structs. (REMOTE_PROC_DOMAIN_SNAPSHOT_IS_CURRENT) (REMOTE_PROC_DOMAIN_SNAPSHOT_HAS_METADATA): New RPC calls. * src/remote/remote_driver.c (remote_driver): Call them. * src/remote_protocol-structs: Regenerate.
This commit is contained in:
parent
757c47635d
commit
a2bc4a0c69
@ -5082,6 +5082,8 @@ static virDriver remote_driver = {
|
||||
.domainSnapshotGetParent = remoteDomainSnapshotGetParent, /* 0.9.7 */
|
||||
.domainSnapshotCurrent = remoteDomainSnapshotCurrent, /* 0.8.0 */
|
||||
.domainRevertToSnapshot = remoteDomainRevertToSnapshot, /* 0.8.0 */
|
||||
.domainSnapshotIsCurrent = remoteDomainSnapshotIsCurrent, /* 0.9.13 */
|
||||
.domainSnapshotHasMetadata = remoteDomainSnapshotHasMetadata, /* 0.9.13 */
|
||||
.domainSnapshotDelete = remoteDomainSnapshotDelete, /* 0.8.0 */
|
||||
.qemuDomainMonitorCommand = remoteQemuDomainMonitorCommand, /* 0.8.3 */
|
||||
.qemuDomainAttach = qemuDomainAttach, /* 0.9.4 */
|
||||
|
@ -2305,6 +2305,24 @@ struct remote_domain_snapshot_current_ret {
|
||||
remote_nonnull_domain_snapshot snap;
|
||||
};
|
||||
|
||||
struct remote_domain_snapshot_is_current_args {
|
||||
remote_nonnull_domain_snapshot snap;
|
||||
unsigned int flags;
|
||||
};
|
||||
|
||||
struct remote_domain_snapshot_is_current_ret {
|
||||
int current;
|
||||
};
|
||||
|
||||
struct remote_domain_snapshot_has_metadata_args {
|
||||
remote_nonnull_domain_snapshot snap;
|
||||
unsigned int flags;
|
||||
};
|
||||
|
||||
struct remote_domain_snapshot_has_metadata_ret {
|
||||
int metadata;
|
||||
};
|
||||
|
||||
struct remote_domain_revert_to_snapshot_args {
|
||||
remote_nonnull_domain_snapshot snap;
|
||||
unsigned int flags;
|
||||
@ -2782,7 +2800,10 @@ enum remote_procedure {
|
||||
REMOTE_PROC_DOMAIN_PM_WAKEUP = 267, /* autogen autogen */
|
||||
REMOTE_PROC_DOMAIN_EVENT_TRAY_CHANGE = 268, /* autogen autogen */
|
||||
REMOTE_PROC_DOMAIN_EVENT_PMWAKEUP = 269, /* autogen autogen */
|
||||
REMOTE_PROC_DOMAIN_EVENT_PMSUSPEND = 270 /* autogen autogen */
|
||||
REMOTE_PROC_DOMAIN_EVENT_PMSUSPEND = 270, /* autogen autogen */
|
||||
|
||||
REMOTE_PROC_DOMAIN_SNAPSHOT_IS_CURRENT = 271, /* autogen autogen */
|
||||
REMOTE_PROC_DOMAIN_SNAPSHOT_HAS_METADATA = 272 /* autogen autogen */
|
||||
|
||||
/*
|
||||
* Notice how the entries are grouped in sets of 10 ?
|
||||
|
@ -1756,6 +1756,20 @@ struct remote_domain_snapshot_current_args {
|
||||
struct remote_domain_snapshot_current_ret {
|
||||
remote_nonnull_domain_snapshot snap;
|
||||
};
|
||||
struct remote_domain_snapshot_is_current_args {
|
||||
remote_nonnull_domain_snapshot snap;
|
||||
u_int flags;
|
||||
};
|
||||
struct remote_domain_snapshot_is_current_ret {
|
||||
int current;
|
||||
};
|
||||
struct remote_domain_snapshot_has_metadata_args {
|
||||
remote_nonnull_domain_snapshot snap;
|
||||
u_int flags;
|
||||
};
|
||||
struct remote_domain_snapshot_has_metadata_ret {
|
||||
int metadata;
|
||||
};
|
||||
struct remote_domain_revert_to_snapshot_args {
|
||||
remote_nonnull_domain_snapshot snap;
|
||||
u_int flags;
|
||||
@ -2192,4 +2206,6 @@ enum remote_procedure {
|
||||
REMOTE_PROC_DOMAIN_EVENT_TRAY_CHANGE = 268,
|
||||
REMOTE_PROC_DOMAIN_EVENT_PMWAKEUP = 269,
|
||||
REMOTE_PROC_DOMAIN_EVENT_PMSUSPEND = 270,
|
||||
REMOTE_PROC_DOMAIN_SNAPSHOT_IS_CURRENT = 271,
|
||||
REMOTE_PROC_DOMAIN_SNAPSHOT_HAS_METADATA = 272,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user