<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
I am wondering the same thing, but I believe that comes from the
glue/auto-creation of the Java code with the API.<br>
<br>
See <a class="moz-txt-link-freetext" href="https://www.virtualbox.org/ticket/11316">https://www.virtualbox.org/ticket/11316</a><br>
<br>
<div class="moz-cite-prefix">On 14/01/2013 09:52, gal wrote:<br>
</div>
<blockquote cite="mid:50F3C750.2050508@csl-int.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
<div class="moz-cite-prefix">Using value() method of the enum and
converting to long worked... <br>
Is there a reason the value() method returns int and the
IMedium::createBaseStorage demands long?<br>
Thanks,<br>
Gal.<br>
<br>
<br>
<br>
<br>
<br>
<br>
On 01/13/2013 09:39 PM, Maxime Dor wrote:<br>
</div>
<blockquote cite="mid:50F30D63.7080803@altherian.org" type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
See inline answers<br>
<br>
<div class="moz-cite-prefix">On 13/01/2013 16:52, gal wrote:<br>
</div>
<blockquote cite="mid:50F2D83F.8070908@csl-int.com" type="cite">
<style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
Hello,<br>
I use the JAVA API. <br>
<br>
In order to create a harddisk I use vbox.createHardDisk and
then IMedium::createBaseStorage method.<br>
<br>
First, the method createBaseStorage requires two long values.
the second value seems to be a value which comes from the
enumaration MediumVariant. Is there a way to extract the long
value of a medium variant from the enumeration? I used fixed
values from the source code...<br>
</blockquote>
You can use the value() method on the Enum value I believe<br>
<blockquote cite="mid:50F2D83F.8070908@csl-int.com" type="cite">
<br>
Is there a way to know ( using the API ), before trying to
create a disk file on the host that there is enough space to
generate the disk on that partition ? (e.g. when specifying
full location, r/o location, fixed disk which is larger than
the actual space left on that partition etc... )?<br>
<br>
</blockquote>
Never tryed that, maybe sopmeone has a better answer for you.<br>
<blockquote cite="mid:50F2D83F.8070908@csl-int.com" type="cite">
Thanks,<br>
Gal.<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
vbox-dev mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://www.virtualbox.org/mailman/listinfo/vbox-dev">https://www.virtualbox.org/mailman/listinfo/vbox-dev</a>
</pre>
</blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
vbox-dev mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://www.virtualbox.org/mailman/listinfo/vbox-dev">https://www.virtualbox.org/mailman/listinfo/vbox-dev</a>
</pre>
</blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
vbox-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</a>
<a class="moz-txt-link-freetext" href="https://www.virtualbox.org/mailman/listinfo/vbox-dev">https://www.virtualbox.org/mailman/listinfo/vbox-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>