mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-26 18:41:17 +00:00
send-key: Defining the public API
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@cn.fujitsu.com>
This commit is contained in:
parent
a8f12a16c8
commit
973564094f
@ -1566,6 +1566,33 @@ char * virStorageVolGetXMLDesc (virStorageVolPtr pool,
|
||||
|
||||
char * virStorageVolGetPath (virStorageVolPtr vol);
|
||||
|
||||
/**
|
||||
* virKeycodeSet:
|
||||
*
|
||||
* Enum to specify which keycode mapping is in use for virDomainSendKey().
|
||||
*/
|
||||
typedef enum {
|
||||
VIR_KEYCODE_SET_LINUX = 0,
|
||||
VIR_KEYCODE_SET_XT = 1,
|
||||
VIR_KEYCODE_SET_ATSET1 = 2,
|
||||
VIR_KEYCODE_SET_ATSET2 = 3,
|
||||
VIR_KEYCODE_SET_ATSET3 = 4,
|
||||
} virKeycodeSet;
|
||||
|
||||
/**
|
||||
* VIR_DOMAIN_SEND_KEY_MAX_KEYS:
|
||||
*
|
||||
* Maximum number of keycodes that can be sent in one virDomainSendKey() call.
|
||||
*/
|
||||
#define VIR_DOMAIN_SEND_KEY_MAX_KEYS 16
|
||||
|
||||
int virDomainSendKey(virDomainPtr domain,
|
||||
unsigned int codeset,
|
||||
unsigned int holdtime,
|
||||
unsigned int *keycodes,
|
||||
unsigned int nkeycodes,
|
||||
unsigned int flags);
|
||||
|
||||
/*
|
||||
* Deprecated calls
|
||||
*/
|
||||
|
@ -362,6 +362,7 @@ skip_impl = (
|
||||
'virNodeDeviceListCaps',
|
||||
'virConnectBaselineCPU',
|
||||
'virDomainRevertToSnapshot',
|
||||
'virDomainSendKey',
|
||||
)
|
||||
|
||||
|
||||
|
@ -452,7 +452,8 @@ LIBVIRT_0.9.2 {
|
||||
|
||||
LIBVIRT_0.9.3 {
|
||||
global:
|
||||
virDomainPinVcpuFlags;
|
||||
virDomainPinVcpuFlags;
|
||||
virDomainSendKey;
|
||||
} LIBVIRT_0.9.2;
|
||||
|
||||
# .... define new API here using predicted next version number ....
|
||||
|
Loading…
Reference in New Issue
Block a user