Re: [Vala] array of function pointer
- From: "Matías De la Puente" <mfpuente ar gmail com>
- To: picca <picca synchrotron-soleil fr>
- Cc: vala-list gnome org
- Subject: Re: [Vala] array of function pointer
- Date: Thu, 14 Aug 2008 14:34:27 -0300
2008/8/14 picca
<picca synchrotron-soleil fr>
Hello
I am playing with the Gsl.vapi file.
Great!! I think i was the only one..
here the definition of a delegate type in this vapi file (no CCode for now)
static delegate int MultirootF (Vector x, void* params, Vector f);
PS: The real c type of the MultiRootF is
int (*f)(gsl_vector const *x, void* params, gsl_vector *f);
In the binding I have to create a delegate because is the only way that vala point to a function.
MultirootF was the only name that occurred me to use. The importat think is the parameters (Vector, void*, Vector ) and the returned type (int)...
In one of my classes I want an array of this MultirootF
struct my_func {
MultirootF[] fs;
}
For now the c code generated is as simple as
MultiRootF *f;
but the gsl headers do not define this MultirootF type.
So how can I tweak the vapi with CCode to obtain the right result.
Thanks
You are welcome, any opinion is welcome
Frederic.
Matias
PS: you are f7 in the irc?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]