g-wrap and glib container types...

Rob Browning rlb@cs.utexas.edu
07 Nov 2000 13:55:47 -0600

Robert Graham Merkel <rgmerk@mira.net> writes:

> Yep, that makes sense.
> However, one minor concern, particularly if you want to wrap parts of 
> glib itself.  A lot of those functions are access functions that take
> a pointer to a glib container and return a void * (a gpointer,
> actually) that is a pointer to an entry in the container.
> Can we pass the returned gpointer to functions that take, say, 
> Account *?

After talking with Bill, I'm going to implement
gwp:pointer-token-coerce that'll take a pointer-token and produce a
new pointer-token that's of the requested type. i.e.:

  (gwp:pointer-token-coerce pt 'Account*)

This will be used to implement things like

  (gwp:glib-list->list foo 'Account*)

OK.  It seems like we have agreement.  I'll get on it.  Shouldn't take
too long.

I still have to deal with your enum patch, but I'll do that while
working on this.

Rob Browning <rlb@cs.utexas.edu> PGP=E80E0D04F521A094 532B97F5D64E3930