[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH]: Add MIGRATE_LIVE definition to ruby-libvirt bindings



Attached is a trivial patch to add the MIGRATE_LIVE flag into the ruby-libvirt
bindings.

Signed-off-by: Chris Lalancette <clalance redhat com>

diff -r e1f0ee0c9a4e ext/libvirt/_libvirt.c
--- a/ext/libvirt/_libvirt.c	Fri Jun 20 15:45:05 2008 -0400
+++ b/ext/libvirt/_libvirt.c	Mon Jul 07 17:23:06 2008 +0200
@@ -1850,6 +1850,8 @@
     DEF_DOMSTATE(CRASHED);
 #undef DEF_DOMSTATE
 
+    rb_define_const(c_domain, "MIGRATE_LIVE", INT2NUM(VIR_MIGRATE_LIVE));
+
     rb_define_method(c_domain, "migrate", libvirt_dom_migrate, 5);
     rb_define_attr(c_domain, "connection", 1, 0);
     rb_define_method(c_domain, "shutdown", libvirt_dom_shutdown, 0);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]