summaryrefslogtreecommitdiffstats
path: root/tests/basic.py
diff options
context:
space:
mode:
authorOsier Yang <jyang@redhat.com>2011-12-15 21:01:33 +0800
committerOsier Yang <jyang@redhat.com>2011-12-15 21:01:33 +0800
commit2bafe73ba23fc8b12b29fd01e253501ffce4886f (patch)
treef7ac703778f1d5c3c6b4859119948d1442a97c7d /tests/basic.py
parentd5d9acdd862c00e5316f6d60abd20cb246af8745 (diff)
downloadlibvirt-python-split-2bafe73ba23fc8b12b29fd01e253501ffce4886f.tar.gz
libvirt-python-split-2bafe73ba23fc8b12b29fd01e253501ffce4886f.tar.xz
libvirt-python-split-2bafe73ba23fc8b12b29fd01e253501ffce4886f.zip
python: Expose blockPeek and memoryPeek in Python binding
A simple example to show how to use it: \#! /usr/bin/python import os import sys import libvirt disk = "/var/lib/libvirt/images/test.img" conn = libvirt.open(None) dom = conn.lookupByName('test') mem_contents = dom.memoryPeek(0, 32, libvirt.VIR_MEMORY_VIRTUAL); sys.stdout.write(mem_contents) % python test.py | hexdump 0000000 1660 0209 0000 0000 0000 0000 0000 0000 0000010 0000 0000 0000 0000 d3a0 01d0 0000 0000 0000020
Diffstat (limited to 'tests/basic.py')
0 files changed, 0 insertions, 0 deletions