<pre class="example">
#include <b><guestfs.h></b>
-
+ <span class="comment">/* link with -lguestfs */</span>
<span class="func">main ()</span> {
- <span class="type">guestfs_h *</span>g =
- <span class="func">guestfs_create</span> ();
+ <span class="type">guestfs_h *</span>g = <span class="func">guestfs_create</span> ();
<span class="func">guestfs_add_drive_ro</span> (g,
<span class="str">"fedora-19.img"</span>);
<span class="func">guestfs_launch</span> (g);
<span class="str">"/dev/stdout"</span>);
<span class="func">guestfs_close</span> (g);
}
-
-<span class="comment">/* link with -lguestfs */</span>
</pre>
<style type="text/css">
span.grey { color: #ccc; }
+pre.example { font-size: 90%; }
</style>
-<pre>
+<pre class="example">
$ <b>virt-</b>
virt-alignment-scan <span class="grey">virt-image</span> virt-sparsify
<b>virt-builder</b> virt-inspector virt-sysprep