X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fgrob-interface.hh;h=e28716cb6688dd77edcf1fda2ac9cb7cdaa23383;hb=920dccaf627f00ec2d5bbd49ffeb9ad01236da3b;hp=a3194a9a13790417f84f3d2f7d14337ea4813a30;hpb=c659cb200486c2f908703696a1b2873e78c8160a;p=lilypond.git diff --git a/lily/include/grob-interface.hh b/lily/include/grob-interface.hh index a3194a9a13..e28716cb66 100644 --- a/lily/include/grob-interface.hh +++ b/lily/include/grob-interface.hh @@ -1,33 +1,33 @@ -/* - interface.hh -- declare Interface +/* + interface.hh -- declare Interface source file of the GNU LilyPond music typesetter - (c) 2002--2004 Han-Wen Nienhuys - - */ + (c) 2002--2006 Han-Wen Nienhuys +*/ #ifndef INTERFACE_HH #define INTERFACE_HH -#include /* SCM */ - -void add_interface (const char * symbol, - const char * descr, - const char * vars); - -SCM ly_add_interface (SCM, SCM, SCM); - -#define ADD_INTERFACE(cl,a,b,c) \ -bool cl::has_interface(Grob*me)\ -{\ - return me->internal_has_interface (ly_symbol2scm (a));\ -}\ -void cl ## _init_ifaces() {\ - add_interface(a,b,c);\ -}\ -ADD_SCM_INIT_FUNC(cl ## ifaces, cl ## _init_ifaces);\ - +#include "lily-guile.hh" + +#define ADD_INTERFACE(cl, a, b, c) \ + bool cl::has_interface (Grob *me) \ + { \ + return me->internal_has_interface (ly_symbol2scm (a)); \ + } \ + void cl ## _init_ifaces () \ + { \ + add_interface (a, b, c); \ + } \ + ADD_SCM_INIT_FUNC (cl ## ifaces, cl ## _init_ifaces); + +void add_interface (char const *symbol, + char const *descr, + char const *vars); + +SCM ly_add_interface (SCM, SCM, SCM); +SCM ly_all_grob_interfaces (); #endif /* INTERFACE_HH */