[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] C# bindings (Was: First patch)



?Hi,

so, in fact, strings in Properties/AssemblyInfo.cs are auto generated by Visual Studio. I can change strings values, but I have to know What to put as society and copyright. For the comments in this file, they are also generated by visual Studio and as my installation is in french, comments are in french. I appreciate that you translate them (I'm not fluent in english as you can read ;) )

About DllImport method attributes, they are interpreted at compile time. And we can use a variable or a function return to set the library file name (libvirt-0.dll under windows, and <I don't knowwhat>.so under linux).

Arnaud

--------------------------------------------------
From: "Daniel Veillard" <veillard redhat com>
Sent: Monday, October 18, 2010 3:25 PM
To: <arnaud champion devatom fr>
Cc: <libvir-list redhat com>
Subject: C# bindings (Was: [libvirt] First patch)

On Mon, Oct 18, 2010 at 02:41:26PM +0200, arnaud champion devatom fr wrote:
?Hi,

 Hi Arnaud,

this is my first patch import for libvirt C# bindings. Sorry I
haven't been able to change the mime type for the patch (Windows
Mail doesn't allow this it seems)

 Okay, I can't really test this, but I have a few comments:
  - Properties/AssemblyInfo.cs has comments in french, I could try to
    translate them, probably not urgent, and seems like directive on
    how to generate the binary for C#, so not very urgent
  - Since the COPYING.LIB in the current git is LGPLv2+ and since
    it's referenced, I assume that's the licence intended for this
    contribution
  - in Properties/AssemblyInfo.cs I see references to Microsoft and
    especially "Copyright © Microsoft 2010" do we really want to do
    this ?
  - for each entry point I see
    [DllImport("libvirt-0.dll")]
    public static extern ....
    I have 2 questions:
      - should the DllImport be factored in some ways or is that just
        a C# construct interpreted just at compile time
      - assuming we want to add Mono compatibility it seems the library
        would be named differently on a Linux system, is there a way
        to at least factor out the string of the library being imported
        (maybe in an initialization routine ?)

Anyway, since the git tree was currently empty (except for Licence
files) I commited and pushed the patch (just cleaned up a few trailing
whitespaces). It's there now
 http://libvirt.org/git/?p=libvirt-csharp.git

So the best from now on is to provide patches against git, I suggest to
use this list for further discussions and patches as we do for Java,

 thanks a lot !

Daniel

--
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel veillard com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]