Re: Wrapping vfuncs with GError parameters



On Thu, 2007-11-01 at 10:43 +0100, Murray Cumming wrote:
> On Thu, 2007-11-01 at 00:57 +0100, Marko Anastasov wrote:
> > I've looked a bit and didn't find a case of wrapping a C virtual
> > function which takes a GError**, which is what needs to be done
> > in giomm. How should I approach this?
> 
> For now, you can just wrap it with a GError** parameter, like the C
> func..
> 
> Wrapping it as an exception would take some deeper thought. But I guess
> you could just look at what default signal handlers do - they are really
> the same as vfuncs.

Sorry. Of course there are no signals with exceptions so far.

If we really want to wrap this, I guess we'd have to think about what
the API would look like and how it would be used.

-- 
murrayc murrayc com
www.murrayc.com
www.openismus.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]