提交 3c386643 编写于 作者: M Michal Privoznik

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
上级 6a1fcd9f
...@@ -175,6 +175,11 @@ typedef int ...@@ -175,6 +175,11 @@ typedef int
(*virDrvDomainCoreDump) (virDomainPtr domain, (*virDrvDomainCoreDump) (virDomainPtr domain,
const char *to, const char *to,
int flags); int flags);
typedef char *
(*virDrvDomainScreenshot) (virDomainPtr domain,
virStreamPtr stream,
unsigned int screen,
unsigned int flags);
typedef char * typedef char *
(*virDrvDomainGetXMLDesc) (virDomainPtr dom, (*virDrvDomainGetXMLDesc) (virDomainPtr dom,
int flags); int flags);
...@@ -568,7 +573,8 @@ struct _virDriver { ...@@ -568,7 +573,8 @@ struct _virDriver {
virDrvDomainGetInfo domainGetInfo; virDrvDomainGetInfo domainGetInfo;
virDrvDomainSave domainSave; virDrvDomainSave domainSave;
virDrvDomainRestore domainRestore; virDrvDomainRestore domainRestore;
virDrvDomainCoreDump domainCoreDump; virDrvDomainCoreDump domainCoreDump;
virDrvDomainScreenshot domainScreenshot;
virDrvDomainSetVcpus domainSetVcpus; virDrvDomainSetVcpus domainSetVcpus;
virDrvDomainSetVcpusFlags domainSetVcpusFlags; virDrvDomainSetVcpusFlags domainSetVcpusFlags;
virDrvDomainGetVcpusFlags domainGetVcpusFlags; virDrvDomainGetVcpusFlags domainGetVcpusFlags;
......
...@@ -4626,6 +4626,7 @@ static virDriver esxDriver = { ...@@ -4626,6 +4626,7 @@ static virDriver esxDriver = {
NULL, /* domainSave */ NULL, /* domainSave */
NULL, /* domainRestore */ NULL, /* domainRestore */
NULL, /* domainCoreDump */ NULL, /* domainCoreDump */
NULL, /* domainScreenshot */
esxDomainSetVcpus, /* domainSetVcpus */ esxDomainSetVcpus, /* domainSetVcpus */
esxDomainSetVcpusFlags, /* domainSetVcpusFlags */ esxDomainSetVcpusFlags, /* domainSetVcpusFlags */
esxDomainGetVcpusFlags, /* domainGetVcpusFlags */ esxDomainGetVcpusFlags, /* domainGetVcpusFlags */
......
...@@ -2716,6 +2716,7 @@ static virDriver libxlDriver = { ...@@ -2716,6 +2716,7 @@ static virDriver libxlDriver = {
NULL, /* domainSave */ NULL, /* domainSave */
NULL, /* domainRestore */ NULL, /* domainRestore */
NULL, /* domainCoreDump */ NULL, /* domainCoreDump */
NULL, /* domainScreenshot */
libxlDomainSetVcpus, /* domainSetVcpus */ libxlDomainSetVcpus, /* domainSetVcpus */
libxlDomainSetVcpusFlags, /* domainSetVcpusFlags */ libxlDomainSetVcpusFlags, /* domainSetVcpusFlags */
libxlDomainGetVcpusFlags, /* domainGetVcpusFlags */ libxlDomainGetVcpusFlags, /* domainGetVcpusFlags */
......
...@@ -2742,6 +2742,7 @@ static virDriver lxcDriver = { ...@@ -2742,6 +2742,7 @@ static virDriver lxcDriver = {
NULL, /* domainSave */ NULL, /* domainSave */
NULL, /* domainRestore */ NULL, /* domainRestore */
NULL, /* domainCoreDump */ NULL, /* domainCoreDump */
NULL, /* domainScreenshot */
NULL, /* domainSetVcpus */ NULL, /* domainSetVcpus */
NULL, /* domainSetVcpusFlags */ NULL, /* domainSetVcpusFlags */
NULL, /* domainGetVcpusFlags */ NULL, /* domainGetVcpusFlags */
......
...@@ -1594,6 +1594,7 @@ static virDriver openvzDriver = { ...@@ -1594,6 +1594,7 @@ static virDriver openvzDriver = {
NULL, /* domainSave */ NULL, /* domainSave */
NULL, /* domainRestore */ NULL, /* domainRestore */
NULL, /* domainCoreDump */ NULL, /* domainCoreDump */
NULL, /* domainScreenshot */
openvzDomainSetVcpus, /* domainSetVcpus */ openvzDomainSetVcpus, /* domainSetVcpus */
openvzDomainSetVcpusFlags, /* domainSetVcpusFlags */ openvzDomainSetVcpusFlags, /* domainSetVcpusFlags */
openvzDomainGetVcpusFlags, /* domainGetVcpusFlags */ openvzDomainGetVcpusFlags, /* domainGetVcpusFlags */
......
...@@ -3755,6 +3755,7 @@ static virDriver phypDriver = { ...@@ -3755,6 +3755,7 @@ static virDriver phypDriver = {
NULL, /* domainSave */ NULL, /* domainSave */
NULL, /* domainRestore */ NULL, /* domainRestore */
NULL, /* domainCoreDump */ NULL, /* domainCoreDump */
NULL, /* domainScreenshot */
phypDomainSetCPU, /* domainSetVcpus */ phypDomainSetCPU, /* domainSetVcpus */
phypDomainSetVcpusFlags, /* domainSetVcpusFlags */ phypDomainSetVcpusFlags, /* domainSetVcpusFlags */
phypDomainGetVcpusFlags, /* domainGetVcpusFlags */ phypDomainGetVcpusFlags, /* domainGetVcpusFlags */
......
...@@ -7170,6 +7170,7 @@ static virDriver qemuDriver = { ...@@ -7170,6 +7170,7 @@ static virDriver qemuDriver = {
qemudDomainSave, /* domainSave */ qemudDomainSave, /* domainSave */
qemuDomainRestore, /* domainRestore */ qemuDomainRestore, /* domainRestore */
qemudDomainCoreDump, /* domainCoreDump */ qemudDomainCoreDump, /* domainCoreDump */
NULL, /* domainScreenshot */
qemudDomainSetVcpus, /* domainSetVcpus */ qemudDomainSetVcpus, /* domainSetVcpus */
qemudDomainSetVcpusFlags, /* domainSetVcpusFlags */ qemudDomainSetVcpusFlags, /* domainSetVcpusFlags */
qemudDomainGetVcpusFlags, /* domainGetVcpusFlags */ qemudDomainGetVcpusFlags, /* domainGetVcpusFlags */
......
...@@ -6425,6 +6425,7 @@ static virDriver remote_driver = { ...@@ -6425,6 +6425,7 @@ static virDriver remote_driver = {
remoteDomainSave, /* domainSave */ remoteDomainSave, /* domainSave */
remoteDomainRestore, /* domainRestore */ remoteDomainRestore, /* domainRestore */
remoteDomainCoreDump, /* domainCoreDump */ remoteDomainCoreDump, /* domainCoreDump */
NULL, /* domainScreenshot */
remoteDomainSetVcpus, /* domainSetVcpus */ remoteDomainSetVcpus, /* domainSetVcpus */
remoteDomainSetVcpusFlags, /* domainSetVcpusFlags */ remoteDomainSetVcpusFlags, /* domainSetVcpusFlags */
remoteDomainGetVcpusFlags, /* domainGetVcpusFlags */ remoteDomainGetVcpusFlags, /* domainGetVcpusFlags */
......
...@@ -5374,6 +5374,7 @@ static virDriver testDriver = { ...@@ -5374,6 +5374,7 @@ static virDriver testDriver = {
testDomainSave, /* domainSave */ testDomainSave, /* domainSave */
testDomainRestore, /* domainRestore */ testDomainRestore, /* domainRestore */
testDomainCoreDump, /* domainCoreDump */ testDomainCoreDump, /* domainCoreDump */
NULL, /* domainScreenshot */
testSetVcpus, /* domainSetVcpus */ testSetVcpus, /* domainSetVcpus */
testDomainSetVcpusFlags, /* domainSetVcpusFlags */ testDomainSetVcpusFlags, /* domainSetVcpusFlags */
testDomainGetVcpusFlags, /* domainGetVcpusFlags */ testDomainGetVcpusFlags, /* domainGetVcpusFlags */
......
...@@ -2180,6 +2180,7 @@ static virDriver umlDriver = { ...@@ -2180,6 +2180,7 @@ static virDriver umlDriver = {
NULL, /* domainSave */ NULL, /* domainSave */
NULL, /* domainRestore */ NULL, /* domainRestore */
NULL, /* domainCoreDump */ NULL, /* domainCoreDump */
NULL, /* domainScreenshot */
NULL, /* domainSetVcpus */ NULL, /* domainSetVcpus */
NULL, /* domainSetVcpusFlags */ NULL, /* domainSetVcpusFlags */
NULL, /* domainGetVcpusFlags */ NULL, /* domainGetVcpusFlags */
......
...@@ -8569,6 +8569,7 @@ virDriver NAME(Driver) = { ...@@ -8569,6 +8569,7 @@ virDriver NAME(Driver) = {
vboxDomainSave, /* domainSave */ vboxDomainSave, /* domainSave */
NULL, /* domainRestore */ NULL, /* domainRestore */
NULL, /* domainCoreDump */ NULL, /* domainCoreDump */
NULL, /* domainScreenshot */
vboxDomainSetVcpus, /* domainSetVcpus */ vboxDomainSetVcpus, /* domainSetVcpus */
vboxDomainSetVcpusFlags, /* domainSetVcpusFlags */ vboxDomainSetVcpusFlags, /* domainSetVcpusFlags */
vboxDomainGetVcpusFlags, /* domainGetVcpusFlags */ vboxDomainGetVcpusFlags, /* domainGetVcpusFlags */
......
...@@ -934,6 +934,7 @@ static virDriver vmwareDriver = { ...@@ -934,6 +934,7 @@ static virDriver vmwareDriver = {
NULL, /* domainSave */ NULL, /* domainSave */
NULL, /* domainRestore */ NULL, /* domainRestore */
NULL, /* domainCoreDump */ NULL, /* domainCoreDump */
NULL, /* domainScreenshot */
NULL, /* domainSetVcpus */ NULL, /* domainSetVcpus */
NULL, /* domainSetVcpusFlags */ NULL, /* domainSetVcpusFlags */
NULL, /* domainGetVcpusFlags */ NULL, /* domainGetVcpusFlags */
......
...@@ -2135,6 +2135,7 @@ static virDriver xenUnifiedDriver = { ...@@ -2135,6 +2135,7 @@ static virDriver xenUnifiedDriver = {
xenUnifiedDomainSave, /* domainSave */ xenUnifiedDomainSave, /* domainSave */
xenUnifiedDomainRestore, /* domainRestore */ xenUnifiedDomainRestore, /* domainRestore */
xenUnifiedDomainCoreDump, /* domainCoreDump */ xenUnifiedDomainCoreDump, /* domainCoreDump */
NULL, /* domainScreenshot */
xenUnifiedDomainSetVcpus, /* domainSetVcpus */ xenUnifiedDomainSetVcpus, /* domainSetVcpus */
xenUnifiedDomainSetVcpusFlags, /* domainSetVcpusFlags */ xenUnifiedDomainSetVcpusFlags, /* domainSetVcpusFlags */
xenUnifiedDomainGetVcpusFlags, /* domainGetVcpusFlags */ xenUnifiedDomainGetVcpusFlags, /* domainGetVcpusFlags */
......
...@@ -93,6 +93,7 @@ struct xenUnifiedDriver { ...@@ -93,6 +93,7 @@ struct xenUnifiedDriver {
virDrvDomainSave domainSave; virDrvDomainSave domainSave;
virDrvDomainRestore domainRestore; virDrvDomainRestore domainRestore;
virDrvDomainCoreDump domainCoreDump; virDrvDomainCoreDump domainCoreDump;
virDrvDomainScreenshot domainScreenshot;
virDrvDomainPinVcpu domainPinVcpu; virDrvDomainPinVcpu domainPinVcpu;
virDrvDomainGetVcpus domainGetVcpus; virDrvDomainGetVcpus domainGetVcpus;
virDrvListDefinedDomains listDefinedDomains; virDrvListDefinedDomains listDefinedDomains;
......
...@@ -824,6 +824,7 @@ struct xenUnifiedDriver xenHypervisorDriver = { ...@@ -824,6 +824,7 @@ struct xenUnifiedDriver xenHypervisorDriver = {
NULL, /* domainSave */ NULL, /* domainSave */
NULL, /* domainRestore */ NULL, /* domainRestore */
NULL, /* domainCoreDump */ NULL, /* domainCoreDump */
NULL, /* domainScreenshot */
xenHypervisorPinVcpu, /* domainPinVcpu */ xenHypervisorPinVcpu, /* domainPinVcpu */
xenHypervisorGetVcpus, /* domainGetVcpus */ xenHypervisorGetVcpus, /* domainGetVcpus */
NULL, /* listDefinedDomains */ NULL, /* listDefinedDomains */
......
...@@ -72,6 +72,7 @@ struct xenUnifiedDriver xenInotifyDriver = { ...@@ -72,6 +72,7 @@ struct xenUnifiedDriver xenInotifyDriver = {
NULL, /* domainSave */ NULL, /* domainSave */
NULL, /* domainRestore */ NULL, /* domainRestore */
NULL, /* domainCoreDump */ NULL, /* domainCoreDump */
NULL, /* domainScreenshot */
NULL, /* domainPinVcpu */ NULL, /* domainPinVcpu */
NULL, /* domainGetVcpus */ NULL, /* domainGetVcpus */
NULL, /* listDefinedDomains */ NULL, /* listDefinedDomains */
......
...@@ -3864,6 +3864,7 @@ struct xenUnifiedDriver xenDaemonDriver = { ...@@ -3864,6 +3864,7 @@ struct xenUnifiedDriver xenDaemonDriver = {
xenDaemonDomainSave, /* domainSave */ xenDaemonDomainSave, /* domainSave */
xenDaemonDomainRestore, /* domainRestore */ xenDaemonDomainRestore, /* domainRestore */
xenDaemonDomainCoreDump, /* domainCoreDump */ xenDaemonDomainCoreDump, /* domainCoreDump */
NULL, /* domainScreenshot */
xenDaemonDomainPinVcpu, /* domainPinVcpu */ xenDaemonDomainPinVcpu, /* domainPinVcpu */
xenDaemonDomainGetVcpus, /* domainGetVcpus */ xenDaemonDomainGetVcpus, /* domainGetVcpus */
xenDaemonListDefinedDomains, /* listDefinedDomains */ xenDaemonListDefinedDomains, /* listDefinedDomains */
......
...@@ -103,6 +103,7 @@ struct xenUnifiedDriver xenXMDriver = { ...@@ -103,6 +103,7 @@ struct xenUnifiedDriver xenXMDriver = {
NULL, /* domainSave */ NULL, /* domainSave */
NULL, /* domainRestore */ NULL, /* domainRestore */
NULL, /* domainCoreDump */ NULL, /* domainCoreDump */
NULL, /* domainScreenshot */
xenXMDomainPinVcpu, /* domainPinVcpu */ xenXMDomainPinVcpu, /* domainPinVcpu */
NULL, /* domainGetVcpus */ NULL, /* domainGetVcpus */
xenXMListDefinedDomains, /* listDefinedDomains */ xenXMListDefinedDomains, /* listDefinedDomains */
......
...@@ -65,6 +65,7 @@ struct xenUnifiedDriver xenStoreDriver = { ...@@ -65,6 +65,7 @@ struct xenUnifiedDriver xenStoreDriver = {
NULL, /* domainSave */ NULL, /* domainSave */
NULL, /* domainRestore */ NULL, /* domainRestore */
NULL, /* domainCoreDump */ NULL, /* domainCoreDump */
NULL, /* domainScreenshot */
NULL, /* domainPinVcpu */ NULL, /* domainPinVcpu */
NULL, /* domainGetVcpus */ NULL, /* domainGetVcpus */
NULL, /* listDefinedDomains */ NULL, /* listDefinedDomains */
......
...@@ -1816,6 +1816,7 @@ static virDriver xenapiDriver = { ...@@ -1816,6 +1816,7 @@ static virDriver xenapiDriver = {
NULL, /* domainSave */ NULL, /* domainSave */
NULL, /* domainRestore */ NULL, /* domainRestore */
NULL, /* domainCoreDump */ NULL, /* domainCoreDump */
NULL, /* domainScreenshot */
xenapiDomainSetVcpus, /* domainSetVcpus */ xenapiDomainSetVcpus, /* domainSetVcpus */
xenapiDomainSetVcpusFlags, /* domainSetVcpusFlags */ xenapiDomainSetVcpusFlags, /* domainSetVcpusFlags */
xenapiDomainGetVcpusFlags, /* domainGetVcpusFlags */ xenapiDomainGetVcpusFlags, /* domainGetVcpusFlags */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册