Re: what does _IMPLEMENT_INTERFACE do?



On Thu, 2014-02-27 at 15:32 +1300, Ian Martin wrote:
Hi,
Trying to understand gmmproc better.  What is the difference between 
declaring a public parent to a class, and the _IMPLEMENTS_INTERFACE m4 call?

It causes lines like this to be added in the .cc file:
  Buildable::add_interface(get_type());
which results in a call to g_type_add_interface_static(), telling the
GObject/GType system that our custom GType implements the interface.


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



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