mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
screenshot: Defining the internal API
* src/driver.h: Stub code for new API * src/esx/esx_driver.c, src/libxl/libxl_driver.c, src/lxc/lxc_driver.c, src/openvz/openvz_driver.c, src/phyp/phyp_driver.c, src/qemu/qemu_driver.c, rc/remote/remote_driver.c, rc/test/test_driver.c, src/uml/uml_driver.c, src/vbox/vbox_tmpl.c, src/vmware/vmware_driver.c, src/xen/xen_driver.c, src/xen/xen_driver.h, src/xen/xen_hypervisor.c, src/xen/xen_inotify.c, src/xen/xend_internal.c, src/xen/xm_internal.c, src/xen/xs_internal.c, src/xenapi/xenapi_driver.c: Add dummy entries in driver table for new APIs
This commit is contained in:
parent
6a1fcd9f20
commit
3c38664339
@ -175,6 +175,11 @@ typedef int
|
||||
(*virDrvDomainCoreDump) (virDomainPtr domain,
|
||||
const char *to,
|
||||
int flags);
|
||||
typedef char *
|
||||
(*virDrvDomainScreenshot) (virDomainPtr domain,
|
||||
virStreamPtr stream,
|
||||
unsigned int screen,
|
||||
unsigned int flags);
|
||||
typedef char *
|
||||
(*virDrvDomainGetXMLDesc) (virDomainPtr dom,
|
||||
int flags);
|
||||
@ -568,7 +573,8 @@ struct _virDriver {
|
||||
virDrvDomainGetInfo domainGetInfo;
|
||||
virDrvDomainSave domainSave;
|
||||
virDrvDomainRestore domainRestore;
|
||||
virDrvDomainCoreDump domainCoreDump;
|
||||
virDrvDomainCoreDump domainCoreDump;
|
||||
virDrvDomainScreenshot domainScreenshot;
|
||||
virDrvDomainSetVcpus domainSetVcpus;
|
||||
virDrvDomainSetVcpusFlags domainSetVcpusFlags;
|
||||
virDrvDomainGetVcpusFlags domainGetVcpusFlags;
|
||||
|
@ -4626,6 +4626,7 @@ static virDriver esxDriver = {
|
||||
NULL, /* domainSave */
|
||||
NULL, /* domainRestore */
|
||||
NULL, /* domainCoreDump */
|
||||
NULL, /* domainScreenshot */
|
||||
esxDomainSetVcpus, /* domainSetVcpus */
|
||||
esxDomainSetVcpusFlags, /* domainSetVcpusFlags */
|
||||
esxDomainGetVcpusFlags, /* domainGetVcpusFlags */
|
||||
|
@ -2716,6 +2716,7 @@ static virDriver libxlDriver = {
|
||||
NULL, /* domainSave */
|
||||
NULL, /* domainRestore */
|
||||
NULL, /* domainCoreDump */
|
||||
NULL, /* domainScreenshot */
|
||||
libxlDomainSetVcpus, /* domainSetVcpus */
|
||||
libxlDomainSetVcpusFlags, /* domainSetVcpusFlags */
|
||||
libxlDomainGetVcpusFlags, /* domainGetVcpusFlags */
|
||||
|
@ -2742,6 +2742,7 @@ static virDriver lxcDriver = {
|
||||
NULL, /* domainSave */
|
||||
NULL, /* domainRestore */
|
||||
NULL, /* domainCoreDump */
|
||||
NULL, /* domainScreenshot */
|
||||
NULL, /* domainSetVcpus */
|
||||
NULL, /* domainSetVcpusFlags */
|
||||
NULL, /* domainGetVcpusFlags */
|
||||
|
@ -1594,6 +1594,7 @@ static virDriver openvzDriver = {
|
||||
NULL, /* domainSave */
|
||||
NULL, /* domainRestore */
|
||||
NULL, /* domainCoreDump */
|
||||
NULL, /* domainScreenshot */
|
||||
openvzDomainSetVcpus, /* domainSetVcpus */
|
||||
openvzDomainSetVcpusFlags, /* domainSetVcpusFlags */
|
||||
openvzDomainGetVcpusFlags, /* domainGetVcpusFlags */
|
||||
|
@ -3755,6 +3755,7 @@ static virDriver phypDriver = {
|
||||
NULL, /* domainSave */
|
||||
NULL, /* domainRestore */
|
||||
NULL, /* domainCoreDump */
|
||||
NULL, /* domainScreenshot */
|
||||
phypDomainSetCPU, /* domainSetVcpus */
|
||||
phypDomainSetVcpusFlags, /* domainSetVcpusFlags */
|
||||
phypDomainGetVcpusFlags, /* domainGetVcpusFlags */
|
||||
|
@ -7170,6 +7170,7 @@ static virDriver qemuDriver = {
|
||||
qemudDomainSave, /* domainSave */
|
||||
qemuDomainRestore, /* domainRestore */
|
||||
qemudDomainCoreDump, /* domainCoreDump */
|
||||
NULL, /* domainScreenshot */
|
||||
qemudDomainSetVcpus, /* domainSetVcpus */
|
||||
qemudDomainSetVcpusFlags, /* domainSetVcpusFlags */
|
||||
qemudDomainGetVcpusFlags, /* domainGetVcpusFlags */
|
||||
|
@ -6425,6 +6425,7 @@ static virDriver remote_driver = {
|
||||
remoteDomainSave, /* domainSave */
|
||||
remoteDomainRestore, /* domainRestore */
|
||||
remoteDomainCoreDump, /* domainCoreDump */
|
||||
NULL, /* domainScreenshot */
|
||||
remoteDomainSetVcpus, /* domainSetVcpus */
|
||||
remoteDomainSetVcpusFlags, /* domainSetVcpusFlags */
|
||||
remoteDomainGetVcpusFlags, /* domainGetVcpusFlags */
|
||||
|
@ -5374,6 +5374,7 @@ static virDriver testDriver = {
|
||||
testDomainSave, /* domainSave */
|
||||
testDomainRestore, /* domainRestore */
|
||||
testDomainCoreDump, /* domainCoreDump */
|
||||
NULL, /* domainScreenshot */
|
||||
testSetVcpus, /* domainSetVcpus */
|
||||
testDomainSetVcpusFlags, /* domainSetVcpusFlags */
|
||||
testDomainGetVcpusFlags, /* domainGetVcpusFlags */
|
||||
|
@ -2180,6 +2180,7 @@ static virDriver umlDriver = {
|
||||
NULL, /* domainSave */
|
||||
NULL, /* domainRestore */
|
||||
NULL, /* domainCoreDump */
|
||||
NULL, /* domainScreenshot */
|
||||
NULL, /* domainSetVcpus */
|
||||
NULL, /* domainSetVcpusFlags */
|
||||
NULL, /* domainGetVcpusFlags */
|
||||
|
@ -8569,6 +8569,7 @@ virDriver NAME(Driver) = {
|
||||
vboxDomainSave, /* domainSave */
|
||||
NULL, /* domainRestore */
|
||||
NULL, /* domainCoreDump */
|
||||
NULL, /* domainScreenshot */
|
||||
vboxDomainSetVcpus, /* domainSetVcpus */
|
||||
vboxDomainSetVcpusFlags, /* domainSetVcpusFlags */
|
||||
vboxDomainGetVcpusFlags, /* domainGetVcpusFlags */
|
||||
|
@ -934,6 +934,7 @@ static virDriver vmwareDriver = {
|
||||
NULL, /* domainSave */
|
||||
NULL, /* domainRestore */
|
||||
NULL, /* domainCoreDump */
|
||||
NULL, /* domainScreenshot */
|
||||
NULL, /* domainSetVcpus */
|
||||
NULL, /* domainSetVcpusFlags */
|
||||
NULL, /* domainGetVcpusFlags */
|
||||
|
@ -2135,6 +2135,7 @@ static virDriver xenUnifiedDriver = {
|
||||
xenUnifiedDomainSave, /* domainSave */
|
||||
xenUnifiedDomainRestore, /* domainRestore */
|
||||
xenUnifiedDomainCoreDump, /* domainCoreDump */
|
||||
NULL, /* domainScreenshot */
|
||||
xenUnifiedDomainSetVcpus, /* domainSetVcpus */
|
||||
xenUnifiedDomainSetVcpusFlags, /* domainSetVcpusFlags */
|
||||
xenUnifiedDomainGetVcpusFlags, /* domainGetVcpusFlags */
|
||||
|
@ -93,6 +93,7 @@ struct xenUnifiedDriver {
|
||||
virDrvDomainSave domainSave;
|
||||
virDrvDomainRestore domainRestore;
|
||||
virDrvDomainCoreDump domainCoreDump;
|
||||
virDrvDomainScreenshot domainScreenshot;
|
||||
virDrvDomainPinVcpu domainPinVcpu;
|
||||
virDrvDomainGetVcpus domainGetVcpus;
|
||||
virDrvListDefinedDomains listDefinedDomains;
|
||||
|
@ -824,6 +824,7 @@ struct xenUnifiedDriver xenHypervisorDriver = {
|
||||
NULL, /* domainSave */
|
||||
NULL, /* domainRestore */
|
||||
NULL, /* domainCoreDump */
|
||||
NULL, /* domainScreenshot */
|
||||
xenHypervisorPinVcpu, /* domainPinVcpu */
|
||||
xenHypervisorGetVcpus, /* domainGetVcpus */
|
||||
NULL, /* listDefinedDomains */
|
||||
|
@ -72,6 +72,7 @@ struct xenUnifiedDriver xenInotifyDriver = {
|
||||
NULL, /* domainSave */
|
||||
NULL, /* domainRestore */
|
||||
NULL, /* domainCoreDump */
|
||||
NULL, /* domainScreenshot */
|
||||
NULL, /* domainPinVcpu */
|
||||
NULL, /* domainGetVcpus */
|
||||
NULL, /* listDefinedDomains */
|
||||
|
@ -3864,6 +3864,7 @@ struct xenUnifiedDriver xenDaemonDriver = {
|
||||
xenDaemonDomainSave, /* domainSave */
|
||||
xenDaemonDomainRestore, /* domainRestore */
|
||||
xenDaemonDomainCoreDump, /* domainCoreDump */
|
||||
NULL, /* domainScreenshot */
|
||||
xenDaemonDomainPinVcpu, /* domainPinVcpu */
|
||||
xenDaemonDomainGetVcpus, /* domainGetVcpus */
|
||||
xenDaemonListDefinedDomains, /* listDefinedDomains */
|
||||
|
@ -103,6 +103,7 @@ struct xenUnifiedDriver xenXMDriver = {
|
||||
NULL, /* domainSave */
|
||||
NULL, /* domainRestore */
|
||||
NULL, /* domainCoreDump */
|
||||
NULL, /* domainScreenshot */
|
||||
xenXMDomainPinVcpu, /* domainPinVcpu */
|
||||
NULL, /* domainGetVcpus */
|
||||
xenXMListDefinedDomains, /* listDefinedDomains */
|
||||
|
@ -65,6 +65,7 @@ struct xenUnifiedDriver xenStoreDriver = {
|
||||
NULL, /* domainSave */
|
||||
NULL, /* domainRestore */
|
||||
NULL, /* domainCoreDump */
|
||||
NULL, /* domainScreenshot */
|
||||
NULL, /* domainPinVcpu */
|
||||
NULL, /* domainGetVcpus */
|
||||
NULL, /* listDefinedDomains */
|
||||
|
@ -1816,6 +1816,7 @@ static virDriver xenapiDriver = {
|
||||
NULL, /* domainSave */
|
||||
NULL, /* domainRestore */
|
||||
NULL, /* domainCoreDump */
|
||||
NULL, /* domainScreenshot */
|
||||
xenapiDomainSetVcpus, /* domainSetVcpus */
|
||||
xenapiDomainSetVcpusFlags, /* domainSetVcpusFlags */
|
||||
xenapiDomainGetVcpusFlags, /* domainGetVcpusFlags */
|
||||
|
Loading…
x
Reference in New Issue
Block a user