Re: [Vala] Binding a C library w/ a message inheritance structure

2010-03-04 Thread Jürg Billeter
Hi, On Thu, 2010-03-04 at 20:26 +0100, Michael 'Mickey' Lauer wrote: > 1.) Where does Vala take that MSMCOMM_REPLY_GET_FIRMWARE_INFO and how > can I fix the problem? Since all the concrete messages inherit from the > base class I would expect this to be a no-op in C, as we're just > ensuring Vala

[Vala] Binding a C library w/ a message inheritance structure

2010-03-04 Thread Michael 'Mickey' Lauer
Hi folks, in one of our projects, we have the following .vapi (see attachement). There's a callback that sends us messages via void callback( int event, Message message ) We then have to cast to the actual type like that: switch ( event ) { case Msmcomm.ResponseType.