X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fgrob-interface.hh;h=773781b76dac3bf4af11f2a9ed7dd8b609bcea99;hb=494716082b964917ca284fad248b1fdee3b40986;hp=11a5acf68d39c3990fc642405181ab0f99fd0458;hpb=bfb10684605084baf1a898be8f42c0e463c5764a;p=lilypond.git diff --git a/lily/include/grob-interface.hh b/lily/include/grob-interface.hh index 11a5acf68d..773781b76d 100644 --- a/lily/include/grob-interface.hh +++ b/lily/include/grob-interface.hh @@ -1,32 +1,33 @@ -/* - interface.hh -- declare Interface +/* + interface.hh -- declare Interface source file of the GNU LilyPond music typesetter - (c) 2002 Han-Wen Nienhuys - - */ + (c) 2002--2005 Han-Wen Nienhuys +*/ #ifndef INTERFACE_HH #define INTERFACE_HH - -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 */