[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Wrapping the other way round
From: |
Andreas Rottmann |
Subject: |
Re: Wrapping the other way round |
Date: |
Thu, 16 Jun 2005 18:11:35 +0200 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.4 (gnu/linux) |
address@hidden (Ludovic Courtès) writes:
> Hi,
>
> It's sometimes useful to allow C code to call Scheme code.
>
Yes, prime example being Scheme callbacks.
> While G-Wrap's goal it to wrap C code so that it is callable by
> Scheme code, I can't think of a way it could be useful in generating
> code that wraps things the other way.
>
> However, I'm pretty sure guile-gnome needs it somewhere, but I couldn't
> find an example illustrating this. Idea? Pointers?
>
Wrapping callbacks is not automatically possible with G-Wrap ATM. You
have to manually write some C code to accomplish that. See e.g. [0],
_wrap_g_io_add_watch().
[0]
http://rotty-ipv4.yi.org/cgi-bin/archzoom.cgi/address@hidden/glib--dev--0--patch-10/gnome/gw/glib-support.c
Cheers, Rotty
--
Andreas Rottmann | address@hidden | address@hidden | address@hidden
http://yi.org/rotty | GnuPG Key: http://yi.org/rotty/gpg.asc
Fingerprint | DFB4 4EB4 78A4 5EEE 6219 F228 F92F CFC5 01FD 5B62
v2sw7MYChw5pr5OFma7u7Lw2m5g/l7Di6e6t5BSb7en6g3/5HZa2Xs6MSr1/2p7 hackerkey.com
Any technology not indistinguishable from magic is insufficiently advanced.
-- Terry Pratchett