[pve-devel] [PATCH 2/7] qmpclient-qga : add qga option at object creation

Alexandre Derumier aderumier at odiso.com
Sun Mar 17 16:09:02 CET 2013


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/QMPClient.pm |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/PVE/QMPClient.pm b/PVE/QMPClient.pm
index 6782c37..e5d4356 100755
--- a/PVE/QMPClient.pm
+++ b/PVE/QMPClient.pm
@@ -19,7 +19,7 @@ use Data::Dumper;
 # Note: kvm can onyl handle 1 connection, so we close connections asap
 
 sub new {
-    my ($class, $eventcb) = @_;
+    my ($class, $eventcb, $qga) = @_;
 
     my $mux = new IO::Multiplex;
 
@@ -33,6 +33,7 @@ sub new {
     }, $class;
 
     $self->{eventcb} = $eventcb if $eventcb;
+    $self->{qga} = $qga if $qga;
 
     $mux->set_callback_object($self);
 
-- 
1.7.10.4



More information about the pve-devel mailing list