mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
gendispatch: add DomainRestoreParams as requiring conn argument
in preparation for the addition of DomainRestoreParams, add it to the list of methods requiring a conn first argument. Signed-off-by: Claudio Fontana <cfontana@suse.de> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
fbfbcf1729
commit
8583199c8a
@ -637,7 +637,10 @@ elsif ($mode eq "server") {
|
||||
} elsif ($args_member =~ m/^remote_typed_param (\S+)<(\S+)>;/) {
|
||||
push(@vars_list, "virTypedParameterPtr $1 = NULL");
|
||||
push(@vars_list, "int n$1 = 0");
|
||||
if ($call->{ProcName} eq "NodeSetMemoryParameters") {
|
||||
|
||||
# NB: if your new API starts with remote_typed_params, enter it here if you need
|
||||
# the conn arg to be passed first!
|
||||
if ($call->{ProcName} eq "NodeSetMemoryParameters" || $call->{ProcName} eq "DomainRestoreParams") {
|
||||
push(@args_list, $conn_var);
|
||||
}
|
||||
push(@args_list, "$1");
|
||||
|
Loading…
x
Reference in New Issue
Block a user