[Mono-list] Example C Wrappers
William S Fulton
Mon, 04 Oct 2004 22:58:18 +0100
John Luke wrote:
> On Mon, 04 Oct 2004 10:32:01 -0400, Matthew Metnetsky <firstname.lastname@example.org> wrote:
>>On Mon, 2004-10-04 at 09:35, Cory Nelson wrote:
>>>what type of code are you trying to wrap?
>>Subversion Client API.
>>>On Mon, 04 Oct 2004 09:33:35 -0400, Matthew Metnetsky <email@example.com> wrote:
>>>>I was wondering if anyone could point me to some _good_ articles on
>>>>wrapping C code in C#? I've tried the ?old? documentation in gtk-sharp,
>>>>but it just seems to generate errors for me.
> Jon Pryor wrote a fine interop guide:
> which is also in the monkeyguide still I think Other than that I
> would look on google.
> The gtk-sharp generator will only work with glib-based API's (I don't
> think subversion is one). If anyone finds a problem with it being
> incorrect or out of date please let me know, and point to what exact
> location you are looking at. Then, I will likely fix it.
Subversion uses SWIG http://www.swig.org to provide wrappers for a number of
different languages, but I'm not sure if they have provided the SWIG interface
files for C# yet. Best ask on the subversion mailing list. If they aren't
available, it should be relatively painless to create the .net interface files
off the Java interface files.