Re: [Vala] exposing the unref and ref member for gtypeinstance classes?
- From: Jürg Billeter <j bitron ch>
- To: Yu Feng <rainwoodman gmail com>
- Cc: vala-list <vala-list gnome org>
- Subject: Re: [Vala] exposing the unref and ref member for gtypeinstance classes?
- Date: Sun, 11 Jan 2009 15:07:51 +0100
Hi Yu,
On Sat, 2009-01-10 at 13:11 -0500, Yu Feng wrote:
Is it possible to expose ref and unref member of gtypeinstance classes?
They will be useful with GHashTable.new_full
I am currently using a dirty workaround like this:
class A {
public static extern void unref(void*);
}
HashTable<T, A>.new_full(..., ..., ...,A.unref);
My plan was to implicitly pass the unref function to the generic
constructor in this case, just like it is already done for GObject based
generic classes such as Gee.HashMap.
Jürg
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]