Taowei
1157d85c12
vbox: Rewrite vboxDomainSnapshotNum
2014-08-15 09:25:12 +02:00
Taowei
72c23d65c1
vbox: Rewrite vboxDomainSnapshotGetXMLDesc
2014-08-15 09:25:12 +02:00
Taowei
677ecdc070
vbox: Rewrite vboxDomainSnapshotCreateXML
...
The vboxDomainSnapshotCreateXML integrated the snapshot redefine
with this patch:
http://www.redhat.com/archives/libvir-list/2014-May/msg00589.html
This patch introduced vboxSnapshotRedefine in vboxUniformedAPI to
enable the features.
This patch replace all version specified APIs to the uniformed api,
then, moving the whole implementation to vbox_common.c. As there
is only API level changes, the behavior of the function doesn't
change.
Some old version's defects has brought to the new one. The already
known things are:
*goto cleanup in a loop without releasing the pointers in the
loop.
*When function failed after machine unregister, no roll back
to recovery it and the virtual machine would disappear.
2014-08-15 09:25:12 +02:00
Taowei
2ad7b494a9
vbox: Rewrite vboxDomainDetachDeviceFlags
2014-08-15 09:25:12 +02:00
Taowei
fa12d7c300
vbox: Rewrite vboxDomainDetachDevice
2014-08-15 09:25:12 +02:00
Taowei
6be94596a8
vbox: Rewrite vboxDomainUpdateDeviceFlags
...
Since vboxDomainAttachDeviceImple not used in vbox_tmpl.c, it has
been deleted.
2014-08-15 09:25:12 +02:00
Taowei
5877687765
vbox: Rewrite vboxDomainAttachDeviceFlags
2014-08-15 09:25:12 +02:00
Taowei
2b5e727413
vbox: Rewrite vboxDomainAttachDevice
2014-08-15 09:25:11 +02:00
Taowei
400bdccb2a
vbox: Rewrite vboxDomainUndefine
2014-08-15 09:25:11 +02:00
Taowei
4eaa78be7a
vbox: Rewrite vboxConnectNumOfDefinedDomains
2014-08-15 09:25:11 +02:00
Taowei
4ebae5e8b6
vbox: Rewrite vboxConnectListDefinedDomains
2014-08-15 09:25:11 +02:00
Taowei
3611c4000c
vbox: Rewrite vboxDomainGetXMLDesc
2014-08-15 09:25:11 +02:00
Taowei
696ad27977
vbox: Rewrite vboxDomainGetMaxVcpus
2014-08-15 09:25:11 +02:00
Taowei
e9f17c5330
vbox: Rewrite vboxDomainGetVcpusFlags
2014-08-15 09:25:11 +02:00
Taowei
35cb445a51
vbox: Rewrite vboxDomainSetVcpus
2014-08-15 09:25:11 +02:00
Taowei
da3b862aad
vbox: Rewrite vboxDomainSetVcpusFlags
2014-08-15 09:25:11 +02:00
Taowei
97d8a17bf5
vbox: Rewrite vboxDomainGetState
2014-08-15 09:25:11 +02:00
Taowei
b412975345
vbox: Rewrite vboxDomainGetInfo
2014-08-15 09:25:11 +02:00
Taowei
2cd7a218de
vbox: Rewrite vboxDomainSetMemory
2014-08-15 09:25:11 +02:00
Taowei
0ba1c21471
vbox: Rewrite vboxDomainGetOSType
2014-08-15 09:25:11 +02:00
Taowei
40b733e7e2
vbox: Rewrite vboxDomainDestroy
2014-08-15 09:25:11 +02:00
Taowei
25d807d42a
vbox: Rewrite vboxDomainDestroyFlags
2014-08-15 09:25:11 +02:00
Taowei
14babb4981
vbox: Rewrite vboxDomainReboot
2014-08-15 09:25:11 +02:00
Taowei
502c43ee44
vbox: Rewrite vboxDomainShutdown
2014-08-15 09:25:11 +02:00
Taowei
67533a8148
vbox: Rewrite vboxDomainShutdownFlags
2014-08-15 09:25:11 +02:00
Taowei
395ecc456e
vbox: Rewrite vboxDomainResume
2014-08-15 09:25:11 +02:00
Taowei
8b89505a20
vbox: Rewrite vboxDomainSuspend
2014-08-15 09:25:10 +02:00
Taowei
caba5247fd
vbox: Rewrite vboxDomainIsUpdated
2014-08-15 09:25:10 +02:00
Taowei
c9537d13b0
vbox: Rewrite vboxDomainIsPersistent
2014-08-15 09:25:10 +02:00
Taowei
fa2f9abcc1
vbox: Rewrite vboxDomainIsActive
2014-08-15 09:25:10 +02:00
Taowei
2ba3ccbb88
vbox: Rewrite vboxDomainLookupByName
2014-08-15 09:25:10 +02:00
Taowei
856ceb8cb3
vbox: Rewrite vboxDomainCreateXML
2014-08-15 09:25:10 +02:00
Taowei
e979ad3991
vbox: Rewrite vboxDomainCreate
2014-08-15 09:25:10 +02:00
Taowei
815d17398c
vbox: Rewrite vboxDomainCreateWithFlags
2014-08-15 09:25:10 +02:00
Taowei
34364df3c6
vbox: Rewrite vboxDomainDefineXML
2014-08-15 09:25:10 +02:00
Taowei
e60e8da4cb
vbox: Rewrite vboxDomainUndefineFlags
2014-08-15 09:25:10 +02:00
Taowei
e89a93c071
vbox: Rewrite vboxDomainLookupByUUID
2014-08-15 09:25:10 +02:00
Taowei
9dd4f8eded
vbox: Rewrite vboxDomainLookupById
2014-08-15 09:25:10 +02:00
Taowei
5f15b511e9
vbox: Rewrite vboxConnectNumOfDomains
2014-08-15 09:25:10 +02:00
Taowei
0958334ac0
vbox: Rewrite vboxConnectListDomains
2014-08-15 09:25:10 +02:00
Taowei
30a95f30ef
vbox: Rewrite vboxConnectGetCapabilities
2014-08-15 09:25:10 +02:00
Taowei
82513be8ba
vbox: Rewrite vboxConnectGetMaxVcpus
2014-08-15 09:25:10 +02:00
Taowei
427931ae0c
vbox: Rewrite vboxConnectIsAlive
2014-08-15 09:25:10 +02:00
Taowei
16dcbaf09b
vbox: Rewrite vboxConnectIsEncrypted
2014-08-15 09:25:10 +02:00
Taowei
3a959b36fd
vbox: Rewrite vboxConnectIsSecure
2014-08-15 09:25:10 +02:00
Taowei
86142d8e9a
vbox: Rewrite vboxConnectGetHostname
2014-08-15 09:25:09 +02:00
Taowei
6e906ffa91
vbox: Rewrite vboxConnectGetVersion
2014-08-15 09:25:09 +02:00
Taowei
7e052265c9
vbox: Rewrite vboxDomainSave
...
All vbox objects are child objects from the nsISupports in vbox's
C++ API version. Since the CAPI is generated from the C++ API, I
kept their relationship here, by the definitations below:
typedef struct nsISupports nsISupports;
typedef nsISupports IVirtualBox;
typedef nsISupports ISession;
and so on...
So, when calling the API from nsISupports, we don't need to do
typecasting, and things work still work well.
2014-08-15 09:25:09 +02:00
Taowei
c6084f19d0
vbox: Rewrite vboxConnectClose
2014-08-15 09:25:09 +02:00
Taowei
7f0f415b87
vbox: Begin to rewrite, vboxConnectOpen
...
Introduce vbox_uniformed_api to deal with version conflicts. Use
vbox_install_api to register the currect vboxUniformedAPI with
vbox version.
vboxConnectOpen has been rewritten.
2014-08-15 09:25:09 +02:00