Binding it as a [Compact] Class rather than Struct is probably what you're looking for: https://wiki.gnome.org/Projects/Vala/LegacyBindings#Classes
Chris 2016-08-08 5:49 GMT-07:00 mar...@saepia.net <mar...@saepia.net>: > Hello, > > I am writing VAPI to the Java Native Interface. > > I have there JavaVM struct. > > In my function I get pointer to one. > > I would like to call its member function, like this: > > (*vm)->GetEnv(...) > > When I define my VAPI in such way > > [CCode (cname = "JavaVM")] > public struct JavaVM { > [CCode (cname = "GetEnv")] > public int get_env(out unowned Env env, Version version); > } > > I am getting C Code > > GetEnv(vm, param1, param2) > > instead of > > (*vm)->GetEnv(param1, param2) > > How can I write VAPI to achieve the second result in the C code? > > Marcin > _______________________________________________ > vala-list mailing list > vala-list@gnome.org > https://mail.gnome.org/mailman/listinfo/vala-list > -- Chris Daley Pacific Northwest e: chebiza...@gmail.com w: http://chrisdaley.biz m: +1-971-703-9251 s: chebizarro tw: chebizarro tz: PDT _______________________________________________ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list