mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 23:07:44 +00:00
gendispatch: Remember the name of snapshot variable name
Until now, the script assumed that snapshot name is 'snap', but that's going to change. Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
1cefc14f69
commit
576c54f9b1
@ -510,14 +510,14 @@ elsif ($mode eq "server") {
|
||||
push(@args_list, "$2");
|
||||
push(@free_list,
|
||||
" virObjectUnref($2);");
|
||||
} elsif ($args_member =~ m/^remote_nonnull_domain_snapshot /) {
|
||||
} elsif ($args_member =~ m/^remote_nonnull_domain_snapshot (\S+);$/) {
|
||||
push(@vars_list, "virDomainPtr dom = NULL");
|
||||
push(@vars_list, "virDomainSnapshotPtr snapshot = NULL");
|
||||
push(@getters_list,
|
||||
" if (!(dom = get_nonnull_domain(priv->conn, args->snap.dom)))\n" .
|
||||
" if (!(dom = get_nonnull_domain(priv->conn, args->${1}.dom)))\n" .
|
||||
" goto cleanup;\n" .
|
||||
"\n" .
|
||||
" if (!(snapshot = get_nonnull_domain_snapshot(dom, args->snap)))\n" .
|
||||
" if (!(snapshot = get_nonnull_domain_snapshot(dom, args->${1})))\n" .
|
||||
" goto cleanup;\n");
|
||||
push(@args_list, "snapshot");
|
||||
push(@free_list,
|
||||
|
Loading…
Reference in New Issue
Block a user