summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2010-09-02 10:40:12 +0100
committerDaniel P. Berrange <berrange@redhat.com>2010-09-02 10:48:15 +0100
commiteafe748ae1aa1fe46357b698f90ed5dc98d03971 (patch)
tree5274be8a9f83a50a3f122759c34b4bbdfc59b7fb /examples
parent2e0120280a2eee32a7097f1b62d4d729c0ded413 (diff)
Rename 'OsinfoHypervisor' to 'OsinfoPlatform'
Not all virtualization technologies are hypervisors. Rename the OsinfoHypervisor object to the more general term OsinfoPlatform. * data/libosinfo-dummy-data.xml: Rename 'hypervisor' element to 'platform' * docs/reference/Libosinfo-docs.xml, docs/reference/Libosinfo-docs.xml docs/reference/Libosinfo.types: Update docs for new object name * examples/demo.js, examples/demo.py: Update for object name * osinfo/osinfo_hypervisor.c, osinfo/osinfo_hypervisor.h, osinfo/osinfo_hypervisorlist.c, osinfo/osinfo_hypervisorlist.h, osinfo/osinfo_platform.h, osinfo/osinfo_platformlist.c, osinfo/osinfo_platformlist.h, osinfo/osinfo_platform.c, osinfo/osinfo.h, osinfo/osinfo_db.c , osinfo/osinfo_db.h, osinfo/osinfo_device.c, osinfo/osinfo_devicelink.c, osinfo/osinfo_devicelink.c, osinfo/osinfo_os.h, osinfo/osinfo_loader.c, osinfo/libosinfo.syms, osinfo/Makefile.am: Rename OsinfoHypervisor to OsinfoPlatform * test/Makefile.am, test/test-os.c, test/test-hypervisor.c, test/test-platform.c, test/test-db.c: Update for object name
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/demo.js2
-rwxr-xr-xexamples/demo.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/demo.js b/examples/demo.js
index 16c1989..070c880 100755
--- a/examples/demo.js
+++ b/examples/demo.js
@@ -38,7 +38,7 @@ var drvclass = "network"
//var drvclass = "audio"
var os = db.get_os(osid)
-var hv = db.get_hypervisor(hvid)
+var hv = db.get_platform(hvid)
var filter = new osinfo.Filter()
filter.add_constraint("class", drvclass)
diff --git a/examples/demo.py b/examples/demo.py
index 10a055d..a361db1 100755
--- a/examples/demo.py
+++ b/examples/demo.py
@@ -34,7 +34,7 @@ drvclass = "network"
#drvclass = "audio"
os = db.get_os(osid)
-hv = db.get_hypervisor(hvid)
+hv = db.get_platform(hvid)
fltr = osinfo.Filter()
fltr.add_constraint("class", drvclass)