From c970a0b61182435de534f39b32e8f29f5ef7b42f Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Thu, 22 Jan 2004 03:38:37 +0000 Subject: "" svn path=/trunk/; revision=1285 --- externals/grill/py/source/main.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'externals/grill/py/source/main.h') diff --git a/externals/grill/py/source/main.h b/externals/grill/py/source/main.h index b1894571..612c1c45 100644 --- a/externals/grill/py/source/main.h +++ b/externals/grill/py/source/main.h @@ -90,6 +90,8 @@ protected: V Reregister(const C *reg); virtual V Reload() = 0; + V Respond(BL b) { if(respond) { t_atom a[1]; SetBool(a[0],b); ToOutAnything(GetOutAttr(),MakeSymbol("response"),1,a); } } + static BL IsAnything(const t_symbol *s) { return s && s != sym_bang && s != sym_float && s != sym_int && s != sym_symbol && s != sym_list && s != sym_pointer; } enum retval { nothing,atom,sequ /*,tuple,list*/ }; @@ -114,7 +116,7 @@ protected: virtual V m_stop(int argc,const t_atom *argv); - BL detach,shouldexit; + BL detach,shouldexit,respond; I thrcount; I stoptick; Timer stoptmr; @@ -138,6 +140,7 @@ protected: // callbacks FLEXT_ATTRVAR_B(detach) + FLEXT_ATTRVAR_B(respond) FLEXT_CALLBACK_V(m_stop) FLEXT_CALLBACK(m_dir) FLEXT_CALLGET_V(mg_dir) -- cgit v1.2.1