Re: [Vala] Too many arguments in generated code
- From: Simon Werbeck <simon werbeck googlemail com>
- To: tomw ubilix com
- Cc: Vala List <vala-list gnome org>
- Subject: Re: [Vala] Too many arguments in generated code
- Date: Thu, 05 Apr 2012 15:15:13 +0200
/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]