Re: [Vala] Too many arguments in generated code



/usr/local/include/skeltrack-0.1/skeltrack-joint.h:84:22: note: expected ‘SkeltrackJointId’ but argument is of type ‘struct SkeltrackJoint *’

I assume that you bound SkeltrackJoint as struct Skeltrack.Joint? In that case Vala will put the return value in the argument list:

SomeStruct foo () { return some_struct }
becomes
void foo (SomeStruct *result)
in the generated c code

So in your case I would bind Joint as
[Compact]
[CCode (copy_function="...", free_function="...")]
class Skeltrack.Joint {...}



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