mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-07 20:13:44 +00:00
qmpclient-qga : add qga option at object creation
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
parent
693d12a2c0
commit
d64ee87e73
@ -20,7 +20,7 @@ use Data::Dumper;
|
|||||||
# Note: kvm can onyl handle 1 connection, so we close connections asap
|
# Note: kvm can onyl handle 1 connection, so we close connections asap
|
||||||
|
|
||||||
sub new {
|
sub new {
|
||||||
my ($class, $eventcb) = @_;
|
my ($class, $eventcb, $qga) = @_;
|
||||||
|
|
||||||
my $mux = new IO::Multiplex;
|
my $mux = new IO::Multiplex;
|
||||||
|
|
||||||
@ -34,6 +34,7 @@ sub new {
|
|||||||
}, $class;
|
}, $class;
|
||||||
|
|
||||||
$self->{eventcb} = $eventcb if $eventcb;
|
$self->{eventcb} = $eventcb if $eventcb;
|
||||||
|
$self->{qga} = $qga if $qga;
|
||||||
|
|
||||||
$mux->set_callback_object($self);
|
$mux->set_callback_object($self);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user