On Thu, May 12, 2011 at 06:29:08PM +0200, Michal Privoznik wrote:
Add public API for taking screenshots of current domain console.
* include/libvirt/libvirt.h.in: add virDomainScreenshot
* src/libvirt_public.syms: Export new symbol
---
include/libvirt/libvirt.h.in | 8 ++++++++
src/libvirt_public.syms | 1 +
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/include/libvirt/libvirt.h.in b/include/libvirt/libvirt.h.in
index 0e1e27a..1d6b276 100644
--- a/include/libvirt/libvirt.h.in
+++ b/include/libvirt/libvirt.h.in
@@ -670,6 +670,14 @@ int virDomainCoreDump (virDomainPtr
domain,
int flags);
/*
+ * Screenshot of current domain console
+ */
+char * virDomainScreenshot (virDomainPtr domain,
+ virStreamPtr stream,
+ unsigned int screen,
+ unsigned int flags);
+
+/*
* Domain runtime information
*/
int virDomainGetInfo (virDomainPtr domain,
diff --git a/src/libvirt_public.syms b/src/libvirt_public.syms
index ababf39..a5a93ba 100644
--- a/src/libvirt_public.syms
+++ b/src/libvirt_public.syms
@@ -439,6 +439,7 @@ LIBVIRT_0.9.0 {
LIBVIRT_0.9.2 {
global:
virDomainInjectNMI;
+ virDomainScreenshot;
} LIBVIRT_0.9.0;
ACK
Daniel
--
|:
http://berrange.com -o-
http://www.flickr.com/photos/dberrange/ :|
|:
http://libvirt.org -o-
http://virt-manager.org :|
|:
http://autobuild.org -o-
http://search.cpan.org/~danberr/ :|
|:
http://entangle-photo.org -o-
http://live.gnome.org/gtk-vnc :|