]> git.draconx.ca Git - gob-dx.git/commit
Implement chaining of interface methods.
authorNick Bowler <nbowler@draconx.ca>
Thu, 6 Feb 2020 05:08:08 +0000 (00:08 -0500)
committerNick Bowler <nbowler@draconx.ca>
Fri, 7 Feb 2020 02:24:45 +0000 (21:24 -0500)
commit1b42784146ab0d40637c80cf6064bafe679a5a0a
tree3666e9203bd4995f12a0fcbf6a76ea6654be4f5a
parent43115cbfefb29535b3e9da83ab247a7f24c6994b
Implement chaining of interface methods.

GObject interface methods are very similar to virtual methods.  A class
may wish to override some or all of the interface methods implemented
in a parent class.  When doing so, it can be useful to call the parent
class implementation to offload some of the work.

For ordinary virtual methods, using the "override" keyword causes a
PARENT_HANDLER macro to be defined which can call up to the parent
class implementation.  Let's do exactly the same thing for interface
methods, and expose the parent interface structures (in case the user
wishes to call up to different methods).
NEWS
doc/gob2.1.in
src/main.c
tests/interface.at