[libvirt] [PATCH]: API Change patch for VBox 3.0.6

2009-09-14 Thread Pritesh Kothari
Hi All,

VirtualBox 3.0.6 was released few days ago and there were some minor API 
changes in it. I have created a patch for the same and posting it here.

Regards,
Pritesh
commit 72088db113ce5837cce91616ebbf64dcd1a2b0ee
Author: Pritesh Kothari pritesh.koth...@sun.com
Date:   Mon Sep 14 09:05:38 2009 +0200

libvirt: API Changes for VBox 3.0.6

diff --git a/src/vbox/vbox_CAPI_v3_0.h b/src/vbox/vbox_CAPI_v3_0.h
index 13b4d4d..0644dd9 100644
--- a/src/vbox/vbox_CAPI_v3_0.h
+++ b/src/vbox/vbox_CAPI_v3_0.h
@@ -899,6 +899,7 @@ struct nsIEventQueue {
 
 
 struct IVirtualBoxErrorInfo;
+struct ILocalOwner;
 struct IVirtualBoxCallback;
 struct IDHCPServer;
 struct IVirtualBox;
@@ -954,6 +955,7 @@ struct IPerformanceMetric;
 struct IPerformanceCollector;
 
 typedef struct IVirtualBoxErrorInfo IVirtualBoxErrorInfo;
+typedef struct ILocalOwner ILocalOwner;
 typedef struct IVirtualBoxCallback IVirtualBoxCallback;
 typedef struct IDHCPServer IDHCPServer;
 typedef struct IVirtualBox IVirtualBox;
@@ -1840,6 +1842,30 @@ struct IVirtualBoxErrorInfo
 /* End of struct IVirtualBoxErrorInfo Declaration */
 
 
+/* Start of struct ILocalOwner Declaration */
+#define ILOCALOWNER_IID_STR 308FF42A-DC45-49D4-A950-B1EEE5E00BB5
+#define ILOCALOWNER_IID { \
+0x308FF42A, 0xDC45, 0x49D4, \
+{ 0xA9, 0x50, 0xB1, 0xEE, 0xE5, 0xE0, 0x0B, 0xB5 } \
+}
+struct ILocalOwner_vtbl
+{
+struct nsISupports_vtbl nsisupports;
+
+nsresult (*SetLocalObject)(
+ILocalOwner *pThis,
+nsISupports * object
+);
+
+};
+
+struct ILocalOwner
+{
+struct ILocalOwner_vtbl *vtbl;
+};
+/* End of struct ILocalOwner Declaration */
+
+
 /* Start of struct IVirtualBoxCallback Declaration */
 #define IVIRTUALBOXCALLBACK_IID_STR 2990059f-5bc8-4635-8415-658917cd3186
 #define IVIRTUALBOXCALLBACK_IID { \
@@ -5050,9 +5076,9 @@ struct IInternalSessionControl
 
 
 /* Start of struct ISession Declaration */
-#define ISESSION_IID_STR 12F4DCDB-12B2-4ec1-B7CD-DDD9F6C5BF4D
+#define ISESSION_IID_STR 12F4DCDB-12B2-4EC1-B7CD-DDD9F6C5BF4D
 #define ISESSION_IID { \
-0x12F4DCDB, 0x12B2, 0x4ec1, \
+0x12F4DCDB, 0x12B2, 0x4EC1, \
 { 0xB7, 0xCD, 0xDD, 0xD9, 0xF6, 0xC5, 0xBF, 0x4D } \
 }
 struct ISession_vtbl
@@ -5262,7 +5288,7 @@ struct IPerformanceCollector
 
 
 #define NS_SESSION_CID { \
-0x3C02F46D, 0xC9D2, 0x4f11, \
+0x3C02F46D, 0xC9D2, 0x4F11, \
 { 0xA3, 0x84, 0x53, 0xF0, 0xCF, 0x91, 0x72, 0x14 } \
 }
 #define NS_SESSION_CONTRACTID @virtualbox.org/Session;1
@@ -5271,6 +5297,16 @@ struct IPerformanceCollector
 
 
 
+#define NS_CALLBACKWRAPPER_CID { \
+0x49EE8561, 0x5563, 0x4715, \
+{ 0xB1, 0x8C, 0xA4, 0xB1, 0xA4, 0x90, 0xDA, 0xFE } \
+}
+#define NS_CALLBACKWRAPPER_CONTRACTID @virtualbox.org/CallbackWrapper;1
+/* for compatibility with Win32 */
+#define CLSID_CallbackWrapper (nsCID) NS_CALLBACKWRAPPER_CID
+
+
+
 #endif /* !__cplusplus */
 
 #ifdef IN_VBOXXPCOMC
--
Libvir-list mailing list
Libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


Re: [libvirt] [PATCH]: API Change patch for VBox 3.0.6

2009-09-14 Thread Daniel Veillard
On Mon, Sep 14, 2009 at 09:11:29AM +0200, Pritesh Kothari wrote:
 Hi All,
 
 VirtualBox 3.0.6 was released few days ago and there were some minor API 
 changes in it. I have created a patch for the same and posting it here.

  Okay, since you promised me on IRC this was really risk free and
fully tested, I applied it so 0.7.1 can have support for the new
release,

  thanks !

Daniel

-- 
Daniel Veillard  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
dan...@veillard.com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/

--
Libvir-list mailing list
Libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list