Re: [Vala] How to define copy and destroy functions in vapi



On Sun, 2009-09-13 at 16:35 +0200, Jan Hudec wrote:
I want to use the GParameter structure (GLib.Parameter in gobject-2.0.vapi).
However, vala requires a copy and destroy functions for it and none are
defined in the gobject header. I can define them (they are simple but not
empty), but how do I tell vala to actually generate them when it needs them?

I've just added two new boolean CCode attributes for structs,
has_copy_function and has_destroy_function, and fixed the GParameter
binding. This should fix the problem.

Jürg




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