Re: libseed-list handling gpointer args/returns
- From: "Alan Knowles" <alan akbkhome com>
- To: "Jonatan Liljedahl" <libseed-list-bounces gnome org>
- Cc: libseed-list gnome org
- Subject: Re: libseed-list handling gpointer args/returns
- Date: Thu, 29 Jul 2010 06:52:18 +0800
The whole pointer/ in out, memory handling needs quite some though.
I've not come up with a idea for a solution that solves all, or even most scenarios without breaking stuff.
It needs some trial and error probably
my guess is that the solution might be only allowing GObjects to be stored in gpointer data - and wrap JS values up in GValues
I've no idea how badly that might affect memory usage though...
Regards
Alan
--- On 29/Jul/2010, Jonatan Liljedahl wrote:
> many functions in GLib take gpointer as args or return values, for
> example GLib.async_queue_push(queue, data).
>
> but this doesn't work currently, it gives errors like "ArgumentError
> Unable to make argument 2 for function: async_queue_push."
>
> There is a hack in seed_gi_make_argument() that allows strings to be
> passed, but this doesn't seem to work either (async_queue_pop() don't
> seem to return a pushed string, but undefined)
>
> it should be possible and perhaps even simple to just wrap seed
> objects/values in these cases.
>
> what function does the gvalue-to-seed conversion of the return value?
>
> /Jonatan
> _______________________________________________
> libseed-list mailing list
> libseed-list gnome org
> http://mail.gnome.org/mailman/listinfo/libseed-list
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]