From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M7BLR-0007UB-Fs for qemu-devel@nongnu.org; Thu, 21 May 2009 12:42:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M7BLM-0007En-Kb for qemu-devel@nongnu.org; Thu, 21 May 2009 12:42:12 -0400 Received: from [199.232.76.173] (port=47156 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M7BLM-0007EG-AQ for qemu-devel@nongnu.org; Thu, 21 May 2009 12:42:08 -0400 Received: from mail-bw0-f175.google.com ([209.85.218.175]:44555) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M7BLL-0003Y9-Hi for qemu-devel@nongnu.org; Thu, 21 May 2009 12:42:08 -0400 Received: by bwz23 with SMTP id 23so1051936bwz.34 for ; Thu, 21 May 2009 09:42:00 -0700 (PDT) MIME-Version: 1.0 Date: Thu, 21 May 2009 18:41:59 +0200 Message-ID: <3f0d98a60905210941r1be8b00ct7124500adad2b9da@mail.gmail.com> From: Francesco Latino Content-Type: multipart/alternative; boundary=00504502bad0a7c873046a6ed25f Subject: [Qemu-devel] qemu-io capabilities exposed through APIs List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --00504502bad0a7c873046a6ed25f Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit hello, I am writing a C code that discovers and browses virtual images on a KVM server. I can discover virtual images with libvirt API. I can correctly read (bytes - by - bytes ) virtual images with qemu-io -c "read -v 0 512" command line. But I prefer to perform this step by calling a library and not the qemu-io command line. Are the qemu-io capabilites exposed through a shared object I can dynamically load at runtime ? I mean I need something like the libvirt virDomainBlockPeek. Ex: sectors = qemu_read_sector_from_image () -> which works just like qemu-io -c "read -v " Thanks, Francesco --00504502bad0a7c873046a6ed25f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
hello,

I am writing a C code that discovers and browses virtual = images on a KVM server.
I can discover virtual images with libvirt API.<= br>I can correctly read (bytes - by - bytes ) virtual images with qemu-io -= c "read -v 0 512" command line.

But I prefer to perform this step by calling a library and not the qemu= -io command line.

Are the qemu-io capabilites exposed through a shar= ed object I can dynamically load at runtime ?

I mean I need somethin= g like the libvirt virDomainBlockPeek.
=A0
Ex:
sectors =3D qemu_read_sector_from_image () -> which works = just like qemu-io -c "read -v "


Thanks,
Francesco --00504502bad0a7c873046a6ed25f--