mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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);
|
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
|
* Deprecated calls
|
||||||
*/
|
*/
|
||||||
|
@ -362,6 +362,7 @@ skip_impl = (
|
|||||||
'virNodeDeviceListCaps',
|
'virNodeDeviceListCaps',
|
||||||
'virConnectBaselineCPU',
|
'virConnectBaselineCPU',
|
||||||
'virDomainRevertToSnapshot',
|
'virDomainRevertToSnapshot',
|
||||||
|
'virDomainSendKey',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -453,6 +453,7 @@ LIBVIRT_0.9.2 {
|
|||||||
LIBVIRT_0.9.3 {
|
LIBVIRT_0.9.3 {
|
||||||
global:
|
global:
|
||||||
virDomainPinVcpuFlags;
|
virDomainPinVcpuFlags;
|
||||||
|
virDomainSendKey;
|
||||||
} LIBVIRT_0.9.2;
|
} LIBVIRT_0.9.2;
|
||||||
|
|
||||||
# .... define new API here using predicted next version number ....
|
# .... define new API here using predicted next version number ....
|
||||||
|
Loading…
Reference in New Issue
Block a user