2011/5/25 Lai Jiangshan <laijs(a)cn.fujitsu.com>:
Add public virDomainSendKey() and enum libvirt_keycode_set
for the @codeset.
Python version of virDomainSendKey() has not been implemented yet,
it will be done soon.
Signed-off-by: Lai Jiangshan <laijs(a)fujitsu.com>
---
include/libvirt/libvirt.h.in | 7 +++++++
include/libvirt/virtkeys.h | 23 +++++++++++++++++++++++
python/generator.py | 1 +
src/libvirt_public.syms | 1 +
4 files changed, 32 insertions(+), 0 deletions(-)
diff --git a/include/libvirt/libvirt.h.in b/include/libvirt/libvirt.h.in
index 7cd6e13..9167dbc 100644
--- a/include/libvirt/libvirt.h.in
+++ b/include/libvirt/libvirt.h.in
@@ -2617,6 +2617,13 @@ int virDomainOpenConsole(virDomainPtr dom,
int virDomainInjectNMI(virDomainPtr domain, unsigned int flags);
+int virDomainSendKey(virDomainPtr domain,
+ unsigned int codeset,
+ unsigned int holdtime,
+ unsigned int nkeycodes,
+ unsigned int *keycodes,
+ unsigned int flags);
+
This should have nkeycodes and keycodes renamed and reordered to match
the common pattern:
keycodes, keycodeslen
Matthias