<div dir="ltr">Thank you.<div>And the SDKRef.pdf is really useful to me.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-06-02 21:52 GMT+08:00 Frank Mehnert <span dir="ltr"><<a href="mailto:frank.mehnert@oracle.com" target="_blank">frank.mehnert@oracle.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Taowei,<br>
<div><div class="h5"><br>
On Monday 02 June 2014 12:28:35 Taowei Luo wrote:<br>
> Hi, I'm developing the vbox drivers for libvirt, with the vbox c api.<br>
><br>
> I have a question. Is there any type conflict in vbox C API between<br>
> different versions?<br>
><br>
> For example, I have a var type named nsresult. In some C API versions, It<br>
> defines nsresult as type PRUint32. Is it true that all nsresults (in<br>
> different versions) will be defined as the same type PRUint32?<br>
><br>
> I know it may be false for structs which have function pointers. But in<br>
> other cases, especially basic types, is the type compatible with all c api<br>
> versions?<br>
<br>
</div></div>nsresult is always PRUint32. Note that this code is always a status<br>
code and will never include any pointer or similar. Values bigger<br>
than 0x80000000 are used for errors, NS_OK is defined as 0.<br>
<br>
In general, the API will not differ between VBox versions of the same<br>
stable branch but the API might change with a new major release. For<br>
example, VBox 4.3.2 and 4.3.4 have the same API while VBox 4.2.2 and<br>
4.3.2 differ a bit. Usually the changes between different API versions<br>
are small and all changes are documented in section 12 of the VirtualBox<br>
SDK documentation (SDKRef.pdf, not UserManual.pdf!)<br>
<br>
Kind regards,<br>
<br>
Frank<br>
--<br>
Dr.-Ing. Frank Mehnert | Software Development Director, VirtualBox<br>
ORACLE Deutschland B.V. & Co. KG | Werkstr. 24 | 71384 Weinstadt, Germany<br>
<br>
Hauptverwaltung: Riesstr. 25, D-80992 München<br>
Registergericht: Amtsgericht München, HRA 95603<br>
Geschäftsführer: Jürgen Kunz<br>
<br>
Komplementärin: ORACLE Deutschland Verwaltung B.V.<br>
Hertogswetering 163/167, 3543 AS Utrecht, Niederlande<br>
Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697<br>
Geschäftsführer: Alexander van der Ven, Astrid Kepper, Val Maher<br>
<br>
_______________________________________________<br>
vbox-dev mailing list<br>
<a href="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</a><br>
<a href="https://www.virtualbox.org/mailman/listinfo/vbox-dev" target="_blank">https://www.virtualbox.org/mailman/listinfo/vbox-dev</a><br>
</blockquote></div><br></div>