[libvirt] [PATCH] C#Bindings patch, rename classes

Matthias Bolte matthias.bolte at googlemail.com
Wed Oct 20 16:30:07 UTC 2010


2010/10/20  <arnaud.champion at devatom.fr>:
> Hi,
>
> here is a new patch. It propose to separate types of function by classes.
> For example :
>
> all virConnect[*] (virConnectOpen, virConnectNumOfDomains, etc...) functions
> are in the virConnect class.
> all virDomain[*] (virDomainCreate, virDomainDestroy, etc...) function are in
> the virDomain class.
>
> so we have these classes now :
>
> virConnect
> virDomain
> virEvent
> virInterface
> virLibrary
> virNetwork
> virNode
> virSecret
> virStoragePool
> virStorageVol
> virStream
>
> and finally
>
> libvirtError
>
> I know, the name is not correct, but I can't use virError name because
> virError is also a structure name :S don't know how to name it.
>
> This patch also introduce the DllMap configuration directive in Mono
> project, with this, the binary library names are correclty automagically
> changed at runtime (libvirt-0.dll under windows become libvirt.so.0 under
> linux...) so it guarantee the correct work under windows or linux.
>
> Sample code have been updated also to deal with new classes names
>
> Regards,
>
> Arnaud
>

I pushed this patch. You did the re-renaming suggested by Daniel in an
additional patch that I also pushed.

Matthias




More information about the libvir-list mailing list