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

arnaud.champion at devatom.fr arnaud.champion at devatom.fr
Wed Oct 20 11:44:56 UTC 2010


?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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20101020/7da99349/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Rename-functions-by-creating-more-classes-for-each-t.patch
Type: application/octet-stream
Size: 298460 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20101020/7da99349/attachment-0001.obj>


More information about the libvir-list mailing list