On Wed, Jun 30, 2010 at 07:37:27PM -0700, steven765(a)yahoo.com wrote:
I think so, but I'm locked out at home. I'll have to try at
school tomorrow. It gave me a remote error, but with the correct directory so fingers
crossed thanks!
btw might you or anyone know what I have to include to start a clean project of my own?
So if I want to just build an application that uses the API with nothing else but
what's necessary?
If you're talking about a C application, you're pretty much describing
hellolibvirt. I tried to put enough in there to demonstrate a couple
of different calls, but hopefully not so much that it's overwhelming.
If it seems like there's a lot there, cut some of it out. You don't
need the showDomains function, for example. Remove it, compile and
see what happens.
Dave
Thanks,
Steve
--- On Wed, 6/30/10, Justin Clift <justin(a)salasaga.org> wrote:
> From: Justin Clift <justin(a)salasaga.org>
> Subject: Re: [libvirt-users] C API example
> To: "Dave Allan" <dallan(a)redhat.com>
> Cc: steven765(a)yahoo.com, libvirt-users(a)redhat.com
> Date: Wednesday, June 30, 2010, 10:09 PM
> On 07/01/2010 11:54 AM, Dave Allan
> wrote:
> <snip>
> > ./hellolibvirt \
> >
> qemu+unix:///system?socket=/var/run/libvirt/libvirt-sock
>
> Thanks Dave. The +unix:// and ?socket=xxx bits are
> what I'd not been picking up on. Should be good now.
>
> Steven, is it working for you?
>
> Regards and best wishes,
>
> Justin Clift
>
> -- Salasaga - Open Source eLearning IDE
>
http://www.salasaga.org
>