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

[libvirt] [libvirt-glib 1/3] Adjust examples for gvir_config_object_get_conf rename



It was renamed to gvir_config_object_to_xml() a long while ago.
---
 examples/conn-test.js | 2 +-
 examples/conn-test.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/conn-test.js b/examples/conn-test.js
index 0225a95..7f9784b 100755
--- a/examples/conn-test.js
+++ b/examples/conn-test.js
@@ -25,7 +25,7 @@ function done(conn, result, data) {
 	    print ("Name " + doms[d].get_name())
 	    var conf = doms[d].get_config(0)
 	    print ("Conf " + conf)
-	    var xml = conf.get_doc()
+	    var xml = conf.to_xml()
 	    print ("XML " + xml)
 	    print ("Info " + doms[d].get_info().memory)
 	}
diff --git a/examples/conn-test.py b/examples/conn-test.py
index 446d7d6..deeaa26 100644
--- a/examples/conn-test.py
+++ b/examples/conn-test.py
@@ -33,7 +33,7 @@ def done(conn, result, data):
             except Exception, e:
                 print "Document is not valid according to %s: %s: %s" % (conf.get_schema(), str(e), str(type(e)))
 
-            xml = conf.get_doc()
+            xml = conf.to_xml()
             print ("XML " + xml)
             print ("Info " + str(d.get_info().memory))
 
-- 
1.8.2.1


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