[Vala] [VAPI] define class constructor function
- From: fdsdœ Fsfsd <fred_gaudy yahoo fr>
- To: vala-list gnome org
- Subject: [Vala] [VAPI] define class constructor function
- Date: Sat, 29 Nov 2008 12:39:25 +0000 (GMT)
Hi,
I'm trying to create a binding to ImageMagick library. I've made a simple vapi file :
[CCode (cprefix = "", lower_case_cprefix = "", cheader_filename = "ImageMagick/wand/MagickWand..h")]
namespace ImageMagick.Wand {
[Compact]
[CCode (cname="MagickWand", free_function="DestroyMagickWand" )]
public class Wand {
[CCode (cname="MagickGetSize")]
public bool get_size(out ulong width, out ulong height);
}
}
But, instantiation of MagickWand class is made by function NewMagickWand and I don't know how to define this C function as class's constructor.
Any help
would be great.
Thnaks you.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]