Re: [Vala] How to define copy and destroy functions in vapi
- From: Jan Hudec <bulb ucw cz>
- To: Jürg Billeter <j bitron ch>
- Cc: vala-list gnome org
- Subject: Re: [Vala] How to define copy and destroy functions in vapi
- Date: Sun, 13 Sep 2009 22:35:58 +0200
On Sun, Sep 13, 2009 at 20:47:22 +0200, Jürg Billeter wrote:
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.
Thanks. I'll try it out.
--
Jan 'Bulb' Hudec <bulb ucw cz>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]